[SunHELP] root shell

Will Yardley sunhelp at sunhelp.org
Tue Oct 30 15:48:21 CST 2001


Gregory Leblanc wrote:
> On Tue, 2001-10-30 at 13:41, Will Mc Donald wrote:
> > Changing root's shell is a Bad Thing [tm].

> > You should always leave /sbin/sh as root's default shell, it's
> > statically linked and therefore doesn't rely on any external
> > libraries to function correctly. Meaning you still have a fully
> > functional shell in the event of, for instance, /usr not being
> > mounted succesfully on boot.
> 
> It's NOT a bad thing to change root's shell.  It is only a bad thing
> if you change it to a shell that isn't statically linked.  I tend to
> keep a statically linked copy of some functional bourne-style shell
> around for emergency recovery, as I really hate /sbin/sh.

you could also just login as your regular user in normal circumstances
and use sudo to open up a root shell of your choice.  that way you still
have /sbin/sh in event of an emergency.

w

-- 
GPG Public Key:
http://infinitejazz.net/will/pgp/



More information about the SunHELP mailing list