su not the same as login
Steven J Lamb
redhattedsheep at adiis.net
Mon Aug 15 21:00:14 UTC 2005
thank you for that answer it was very concise and seems to solve the problem
----- Original Message -----
From: aaron hirsch
To: For users of Fedora Core releases
Sent: Monday, August 15, 2005 2:43 PM
Subject: RE: su not the same as login
>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.
------------------------------------------------------------------------------
--
fedora-list mailing list
fedora-list at redhat.com
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20050815/6c3d0abc/attachment-0001.htm>
More information about the fedora-list
mailing list