RE: su not the same as login

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

 



>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

 

[aaron hirsch]

 

To take on the entire environment you need to use the - .  i.e. su – foo will give you foo’s profile/env…su foo will make you foo, but you will still have your profile/env

 


This e-mail message is intended only for the named recipient(s) above.
It may contain confidential information. If you are not the intended
recipient you are hereby notified that any dissemination, distribution
or copying of this e-mail and any attachment(s) is strictly prohibited.
If you have received this e-mail in error, please immediately notify
the sender by replying to this e-mail and delete the message and any
attachment(s) from your system.


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

  Powered by Linux