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

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



2006. July 28. 17:03, Florent Rougon:
> 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.
>
I'm using testing with
ii  login  4.0.17-2  system login tools

I'd prefer to keep at least the LOGNAME variable the same as the logged 
in user after su-ing.

Daniel

-- 
LeVA



Reply to: