su

Josh Johnson joshj at linuxmail.org
Thu May 26 07:33:56 EDT 2005


'su -' as opposed to 'su' will be as if you just logged in as root at the 
login prompt. You will be changed to root's home directory and your path 
will be updated. with just 'su' (depending on your set up) your $PATH 
variable (as well as others) are not changed and you stay in the same 
directory. 'sudo' causes a user to do something as the super-user. Like 
'sudo /sbin/shutdown -h now'.

-JoshJ
http://lotuseaters.no-ip.com

On Thu, 26 May 2005, Advent Systems wrote:

> Whats the difference between using: su, su - root, and sudo?
>
> Thanks,
> Bob Randal
>
>



More information about the nflug mailing list