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

2007-04-17 Thread Elias Pipping
On Apr 17, 2007, at 8:59 PM, Didier Arenzana wrote: Hi, I believe "sudo -i" does exactly the same as a "sudo su -". Regards, Didier. Close, but there's still a difference: $sudo -i #env SHELL=/bin/sh TERM=screen USER=root SUDO_USER=pipping SUDO_UID=501 PATH=/bin:/sbin:/usr/bi

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

2007-04-17 Thread Didier Arenzana
2007/4/17, Elias Pipping <[EMAIL PROTECTED]>: 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 a

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

2007-04-16 Thread Elias Pipping
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

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

2007-04-16 Thread Landon Fuller
On Apr 16, 2007, at 14:14, Ryan Schmidt wrote: On Apr 16, 2007, at 06:28, Tabitha McNerney wrote: $ sudo su - postgres81 Whoops! That "su" is not the "su" you might be thinking of. That "su" is: /path/to/macports/bin/su as in /opt/local/bin/su installed by the heimdal port. A bit unr

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

2007-04-16 Thread Ryan Schmidt
On Apr 16, 2007, at 06:28, Tabitha McNerney wrote: $ sudo su - postgres81 Whoops! That "su" is not the "su" you might be thinking of. That "su" is: /path/to/macports/bin/su as in /opt/local/bin/su installed by the heimdal port. A bit unrelated to your question, but: I've seen others use

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

2007-04-16 Thread Tabitha McNerney
I can't seem to recall why, but last week a port I was trying to install depended on the heimdal port. So I installed it and went on my merry way ... until today that is, when I ended up doing this for: $ sudo su - postgres81 Whoops! That "su" is not the "su" you might be thinking of. That "su"