Quoting Jakub Turski ([EMAIL PROTECTED]):
> 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:

[EMAIL PROTECTED]:/etc/pam.d# grep ENV_PATH /etc/login.defs
ENV_PATH        PATH=/foo:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
[EMAIL PROTECTED]:/etc/pam.d# su - spongebob
[EMAIL PROTECTED]:~$ echo $PATH
/foo:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games

[EMAIL PROTECTED]:~$ grep SUPATH /etc/login.defs
ENV_SUPATH      
PATH=/bar:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
[EMAIL PROTECTED]:~$ 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.





-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to