Being root

Ray Leventhal ubuntu at swhi.net
Wed Jun 24 13:08:43 UTC 2009


Steven Susbauer wrote:
<snip>
>>
> 
> As a non-n00b that prefers not to use extra keystrokes, I use sudo -i:
> 
>    -i   Simulate initial login, run the shell specified in the passwd(5)
> entry of the user that the command is being run as. The command name
> argument given to the shell begins with a - to tell the shell to run as
> a login shell. sudo attempts to change to that user's home directory
> before running the shell. It also initializes the environment, leaving
> TERM unchanged, setting HOME , SHELL , USER , LOGNAME , and PATH , and
> unsetting all other environment variables.
> 
> 

Duly noted...thanks
-R




More information about the ubuntu-users mailing list