Once a friend of mine (who is an experienced Unix/Linux user) told me that setting root's shell to something other than sh (i.e bash or zsh) might create problems, because some script might assume that the shell is sh and do something weird.
However, I think Ubuntu have default root shell set to bash, and Gentoo uses bash too. Can somebody bust the myth?
Yes. If system fails during booting you can log into root shell. If you have separate /usr some shells can fail to successfully start.
I'd advice to create account toor
(uid 0, gid 0) with non-standard shell while left root with default shell.
bash
. I booted in single user mode to fix, but it only worked because /bin/sh
was still linked to FBSD
's fork of bourne
and not bash
. — Oct 03, 2010 at 03:32 zsh
and somehow /usr
is damaged I will have problem? but my system have /bin/sh
pointing to /bin/bash
and bash
itself, why wouldn't sh
be affected? — Oct 03, 2010 at 10:52 zsh
should not be in /usr/bin/
if it is it was installed wrong. all shells should be in /bin
— Oct 23, 2010 at 23:18 /bin
but keeps some files in /usr/share
. Also I clearly stated that problem is during login during boot (when some service fails). — Oct 24, 2010 at 23:54