[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: "su -" and "su" - what is the real difference?



LeVA <leva@az.isten.hu> wrote:

> And can you tell me why the $USER and the $LOGNAME variables gets 
> resetted by su, no matter if I've invoked it with or without the '-' 
> option?

Which suite are you testing this on?

Here, on sarge, using su with the "-" sets USER to root but doesn't
modify LOGNAME.

-- 
Florent



Reply to: