Mate Wierdl <[EMAIL PROTECTED]> writes:

> I do not understand this comment at all. Under RH 5.2, after doing 

> su - alias

> the output of whoami was `alias'.  Now it is still root.  Why do I
> need a valid shell to be able to do this?

I don't know if Red Hat is weird, but under most operating systems if you
su to a user, you get that user's shell.  If you set the shell to
/bin/true, it will then immediately exit, leaving you back as root again.

-- 
Russ Allbery ([EMAIL PROTECTED])             <http://www.eyrie.org/~eagle/>

Reply via email to