Re: Why is su preserving the environment?
Josselin Mouette <email@example.com> 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?
su -c env
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
Reinhard Tartler, KeyID 945348A4