Bug#330803: [Pkg-shadow-devel] Bug#330803: ENV_PATH and ENV_SUPATH in
/etc/login.defs are ignored
Christian Perrier
bubulle at debian.org
Thu Sep 29 21:14:06 UTC 2005
Quoting Jakub Turski (yacoob at hell.pl):
> Package: login
> Version: 1:4.0.12-5
> Severity: important
>
>
> After upgrading to login 1:4.0.12-5 I was not able to start Xorg, not
> able to run aptitude. Why? Because login started to ignore paths
> included in /etc/login.defs.
>
> I did a quick overview, purged PATH setting from any /etc/* file
> (including /etc/security/pam_env.conf, /etc/profile, /etc/zsh/*), put
> bogus ENV_PATH in /etc/login.defs, and created a new user, without any
> dotfiles - with 4.0.12-5 I've been receiving empty PATH variable from
> login, which was substitued later on by some shell defaults. With
> 4.0.3-35, it works fine.
>
> I'm not using any (x|w|g)dm, just a simple getty on text console.
>
> I do believe, this is a bug.
The issue seems more complicated:
root at mykerinos:/etc/pam.d# grep ENV_PATH /etc/login.defs
ENV_PATH PATH=/foo:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
root at mykerinos:/etc/pam.d# su - spongebob
spongebob at mykerinos:~$ echo $PATH
/foo:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
spongebob at mykerinos:~$ grep SUPATH /etc/login.defs
ENV_SUPATH PATH=/bar:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
spongebob at mykerinos:~$ su -
Password:
mykerinos:~# echo $PATH
/bar:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
Only "su" seems using ENV_SUPATH and ENV_PATH, not login. Doing the
same with login just gives me "sane" defaults for PATH both for
spongebob and root.
More information about the Pkg-shadow-devel
mailing list