[Pkg-shadow-devel] Bug#611584: Bug#611584: /bin/su: not quite aggressive enough about cleaning the environment

Mike Frysinger vapier at gentoo.org
Mon Jan 31 02:55:30 UTC 2011

On Sun, Jan 30, 2011 at 5:52 PM, Zack Weinberg wrote:
> "su -" is supposed to produce the same set of environment variables that you'd
> get if the destination user had logged in directly, but it misses at least a
> few variables that should be unset:

not really.  the man page says:
       -, -l, --login
           Provide an environment similar to what the user would
expect had the user logged in directly.

it does not say "exactly"

More information about the Pkg-shadow-devel mailing list