I just noticed that on OS X 10.6.4 root's shell is set to /bin/sh. Is there a security issue or something with running Bash?
|
|
|
I believe that for Unix compatibility reasons, the default root shell is /bin/sh. See http://en.wikipedia.org/wiki/Bourne_shell At one point, /bin/sh was a zsh shell, I believe. Apple changed it to bash because zsh wasn't POSIX compliant or somesuch. EDIT: The Makefile sourcecode, showing that /bin/sh is built from bash source. EDIT #2: Bored, I checked. It looks like Mac OS X 10.1.5 was the last version to use zsh for /bin/sh. It was changed to bash in 10.2. |
||||
|
|
|
Ubuntu uses dash as the default system shell for speed instead of sh. I guess if it is indeed sh, then it is probably the same reason. There are good reasons here why bash is not really the best choice as the default system shell: https://wiki.ubuntu.com/DashAsBinSh |
|||||
|
|
Isn't /bin/sh Bash? Do a 'ls -lisa' in /bin. Then do a './sh -version' in the directory and sh will identify itself as the GNU bash. |
|||||||||
|
|
Setting root's login/interactive shell to It's perfectly fine to set the root user's interactive shell to be /bin/bash. |
|||
|
|