Be alert for the heimdal port's instance of "su"

Didier Arenzana darenzana at gmail.com
Tue Apr 17 11:59:28 PDT 2007


2007/4/17, Elias Pipping <pipping at macports.org>:
> On Apr 16, 2007, at 11:14 PM, Ryan Schmidt wrote:
>
> > A bit unrelated to your question, but: I've
> > seen others use "sudo su -" but I haven't
> > understood it. Why not use "sudo -s"? Isn't
> > that equivalent?
>
> In addition to what Landon said, you might also
> end up with a different shell,
>
>    sudo -s
>
> takes $SHELL whereas
>
>    sudo su
>
> takes what you se[et] via 'chsh' when logged in
> as root.

Hi,
I believe "sudo -i" does exactly the same as a "sudo su -".

Regards,
Didier.



More information about the macports-users mailing list