su not the same as login

Steven J Lamb redhattedsheep at adiis.net
Thu Aug 11 20:09:45 UTC 2005


works like magic thanks 


----- Original Message ----- 
From: "Scot L. Harris" <webid at cfl.rr.com>
To: "For users of Fedora Core releases" <fedora-list at redhat.com>
Sent: Thursday, August 11, 2005 10:19 AM
Subject: Re: su not the same as login


> 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
> 
> 
> 
> -- 
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
>




More information about the fedora-list mailing list