On 8/29/06, Gayal <gayal.rupasinghe@xxxxxxxxx> 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