Vote for new Ubuntu Feature---Let's try it again
news at pointerstop.ca
Wed Jan 10 14:06:59 UTC 2007
Jeffrey F. Bloss wrote:
> Robert Aldridge wrote:
>> Try doing 'sudo su' in a terminal (console/Konsole, whatever) when
>> you want to do several commands as root. This promotes you to root
>> until you enter the command 'exit' which drops you back to your user
> The right way to do this is 'sudo -i'. This starts your interactive
> shell and resets the environment to root's, unlike 'sudo su' or even
> 'su -'.
> To be honest, I've never seen anyone use 'sudo su' before.
I would have suggested quotes around "right" :-) The "right" way in most
distros could not be 'sudo -i' because that option doesn't (at least
didn't) exist. A quick check of the various other linux boxen immediately
available to me (one CentOS, one Red Hat, the other I'm not sure...) shows
they don't support -i. So "sudo su" becomes the normal procedure (though
only one of those boxes actually lets me do that).
More information about the ubuntu-users