[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: su, su -, sudo
- From: "Ankush Grover" <ankush174 gmail com>
- To: "For users of Fedora Core releases" <fedora-list redhat com>, gayal rupasinghe gmail com
- Cc:
- Subject: Re: su, su -, sudo
- Date: Tue, 29 Aug 2006 12:41:17 +0530
On 8/29/06, Gayal <gayal rupasinghe gmail com> wrote:
Wuts the different between su, su - root and sudo ?
--
hey,
If you use su you will still have the same enviroment, for example the
$PATH variable, as the user who su'd.
If you use su - you will have the envioroment of the user you su'd to.
the diff between "su" and "su -" is "su -" you log in as a root with
the env setting/profile (i.e you really log in as a root). just type
"pwd" and you will be in the root home dir @ /root.
if you "su" only then basically you just "borrow" the root permission
without having all the root env setting/profile . just "su" from your
home dir and type "pwd", you can see that you still in the user dir
i.e /home/user
For sudo read this
http://www.tech-faq.com/sudo.shtml
Regards
Ankush Grover
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]