I'm running the latest version of Leopard, and I would like to change the default login shell for the "root" user, but the command which works under Unix and Linux doesn't seem to work here.
As root, I have done a vipw to change the shell to /bin/zsh (my preference) on the root line. This change persists in /etc/passwd, and it also gets properly propagated to /etc/master.passwd.
However, every time do an su or a sudo -s, I still get sent into the old /bin/sh shell.
I have completely restarted the system, and this still occurs (the /bin/zsh entry is still there for root in /etc/passwd and /etc/master.passwd after reboot).
/bin/zsh properly appears in /etc/shells, so I know that this is not the problem.
Any ideas?
Thanks in advance.
PS: I have lots of experience with Unix and its derivatives, and I have been a sysadmin for more than a decade for various Unix and Linux systems.
As root, I have done a vipw to change the shell to /bin/zsh (my preference) on the root line. This change persists in /etc/passwd, and it also gets properly propagated to /etc/master.passwd.
However, every time do an su or a sudo -s, I still get sent into the old /bin/sh shell.
I have completely restarted the system, and this still occurs (the /bin/zsh entry is still there for root in /etc/passwd and /etc/master.passwd after reboot).
/bin/zsh properly appears in /etc/shells, so I know that this is not the problem.
Any ideas?
Thanks in advance.
PS: I have lots of experience with Unix and its derivatives, and I have been a sysadmin for more than a decade for various Unix and Linux systems.
.