[lug] overran / ...again

D. Stimits stimits at attbi.com
Fri Aug 23 22:25:00 MDT 2002


Nate Duehr wrote:
> Ummm, not really specific to root.
> 
> su - <username> ...

Ahh, but "su -" by itself is a shortcut for su -l root. I never said you 
couldn't do more by adding more.

> 
> If I'm logged in as root has similar results as if I typed 
> 
> su - 
> 
> from the regular user....
> 
> ...
> 
>>From the manpage....
> 
> 
> OPTIONS
>        -      make this a login shell
> 
> Nate
> 
> On Wed, 2002-08-21 at 18:50, D. Stimits wrote:
> 
>>Richard Fifarek wrote:
>>
>>>On Thu, 22 Aug 2002, j davis wrote:
>>>
>>>
>>>
>>>>So maybe if someone could tell me how to get roots $PATH when i
>>>>su...thats proably my biggest beef.
>>>
>>>
>>>	Use "su -".  It'll act as if you logged in as root.	
>>
>>FYI, the "-" is specific to root, it is a shortcut to "-l root". The 
>>"-l" argument means login shell, not just the partial assumption of ID. 
>>Equivalent to "su -" is "su -l root".
>>
>>D. Stimits, stimits AT attbi.com
>>




More information about the LUG mailing list