su not the same as login

Scot L. Harris webid at cfl.rr.com
Thu Aug 11 15:19:26 UTC 2005


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






More information about the fedora-list mailing list