duck wrote:
robespierre wrote:
Code:
Select all
$ sudo -s
# chmod -x /bin/bash
# ln -f /bin/ksh /bin/sh
fuggeddaboutit....
On linux this will likely break things badly. Remember that these kids have been thinking that sh = bash since they first licked a beige box.
Yeah, duck is right. I'd be cautious about about simply replacing bash with ksh as "sh" on a production machine, especially if it's a multi-user machine. If you can be sure that every script is limited to basic Bourne functions, you'll probably be okay, but ksh and bash are not 100% interchangeable. They are both supersets of sh functionality, but the extra features do not completely overlap each other, and if anything calls a unique function, the results may be quite unexpected.
There is also the problem of scripts which explicitly call /bin/bash, which is usually the "correct" thing to do if you are using superset functionality.