Thread: Installing sudo
View Single Post
  #5   (View Single Post)  
Old 24th October 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

With "set home env" unset (the default), running sudo -s to execute a shell as root, leave the environment set to your normal users' env, including $HOME. Meanning, if you do something like "cd", you go to the normal user's home directory, and not root's.

With "set home env" set, running sudo -s still gets you a root shell, but with root's environment. Similar to logging in as root. IMO, this is the better setup.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote