[conspire] sudo -i vs sudo su - ? [Was:] Help with GRUB

Rick Moen rick at linuxmafia.com
Wed Nov 4 16:05:31 PST 2009


Quoting Steve M Bibayoff (bibayoff at gmail.com):

> > On reflection, "sudo su -" is probably the method one should favour.
> 
> Reason?

It ensures that the root shell has user root's environment, and thus 
doesn't pick up any silly wack-assed stuff from the non-root user, such
as unsafe additions to $PATH.  

If you're saying that "sudo -i" also does that, fine.  That was not
entirely clear from the manpage snippet I quoted -- whereas it's very
clear that "sudo su -" does it.





More information about the conspire mailing list