Tuesday, May 25, 2010

root, sudo and shells

To start a root shell, starting root's environment and login scripts, use:
sudo -i
This is similar to sudo su - , gives you roots environment configuration.

To start a root shell, but keep the current shell's environment, use:
sudo -s 
This is similar to sudo su

 
 

No comments:

Post a Comment

There was an error in this gadget