Bug#155279: [Pkg-shadow-devel] Bug#155279: Bugs #155279: Should "su -" get environment from /etc/environment?

Christian Perrier Christian Perrier <bubulle@debian.org>, 155279@bugs.debian.org
Thu, 7 Apr 2005 22:48:36 +0200


retitle 155279 [POST-SARGE] [ALEXANDER] login: /etc/pam.d/su should contain same stuff as login
tags 155279 confirmed
thanks

Quoting Alexander Gattin (arg@online.com.ua):

> 1) after uncommenting "auth required pam_env.so" line
>    in /etc/pam.d/su the contents of /etc/environment
>    won't be used anyway due to #287108 (fixed in
>    upstream)
> 2) these who wrote su.c were far from stupid, ;) and
>    considered the problem long time ago. Thus su.c
>    simply contains "environment handling" (EH) code which
>    does not import environment from "PAM env space" (PES)
>    when running without dash.
> 


OK, then everything is fine (stupid me, I didn't even remember our
mail exchanges....this bug is indeed why I asked you to join the
shadow team, Alexander). We can already put pam_env.so in
/etc/pam.d/su. This will not work immediately because of #287108 for
which we need to use upstream sources....and thus will be fixed when
we will use shadow 4.0.8 or above.

Bug assigned to you, Alex..:-)

So, Goswin, this will need some patience (look at shadow's bug log to
understand why) but this will be fixed.....promise made.