su not the same as login

aaron hirsch aaronh at uptime.net
Mon Aug 15 19:43:08 UTC 2005


>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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20050815/b0ccee43/attachment-0001.htm>


More information about the fedora-list mailing list