On Fri, Sep 15, 2000 at 04:36:39PM -0700, Russ Allbery wrote:
> 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.
AFAIK, RH always had the proper behaviour with su (ie, running that user's
shell). I still have a couple of live RH 5.2 boxen, and they both respect
that. (wether the shell is in /etc/shells or not).
RC
--
+-------------------
| Ricardo Cerqueira
| PGP Key fingerprint - B7 05 13 CE 48 0A BF 1E 87 21 83 DB 28 DE 03 42
| Novis - Engenharia ISP / Rede T�cnica
| P�. Duque Saldanha, 1, 7� E / 1050-094 Lisboa / Portugal
| Tel: +351 2 1010 0000 - Fax: +351 2 1010 4459
PGP signature