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

Re: Why is su preserving the environment?



Josselin Mouette <joss@debian.org> writes:

> it has been brought to my attention (through #512803) that su does not
> clean the environment at all. [... ] 
>
> Before I work around this specific issue in the fugliest way, shouldn’t
> we prevent su from preserving the environment?

compare this:

 su -c env

to

 su -c env -


the latter command indeed prunes the environment, and calling

 su -c gnome-terminal -

sucessfully fails (heh) with failing to open a display. whats the
problem here?

-- 
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4


Reply to: