Re: su not the same as login

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2005-08-11 at 11:15, Steven J Lamb wrote:
> I know this is most likely a newbie question, however, I have noticed
> that the env that I have after su is not the same as if I have logged
> in as root. how would I fix that


Use a - (dash) after the su command:

su -

This will use roots environment.

Same applies if you su to another user:

su - steven




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux