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/bin:/usr/sbin PWD=/var/root SHLVL=1 SUDO_COMMAND=/bin/sh HOME=/var/root LOGNAME=root SUDO_GID=501 _=/usr/bin/env is different from $sudo su - #env SHELL=/bin/sh TERM=screen USER=root PATH=/bin:/sbin:/usr/bin:/usr/sbin PWD=/var/root SHLVL=1 HOME=/var/root _=/usr/bin/env because in the former, the variables below are set, too: SUDO_USER=pipping SUDO_UID=501 SUDO_COMMAND=/bin/sh LOGNAME=root SUDO_GID=501 Regards, Elias Pipping