[Pkg-shadow-devel] Why is su preserving the environment?
siretart at tauware.de
Sat Jan 24 08:04:52 UTC 2009
Josselin Mouette <joss at 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?
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
More information about the Pkg-shadow-devel