Problems with reading pam_env and setting enviroment variables

Christian Kurz shorty at debian.org
Thu Dec 28 07:08:49 EST 2000


Hi guys,

here's another nasty bug in openssh that I also noticed. Has this
already been fixed or would someone please take care of this? Thanks.

> If I enable the line:

> auth       required   pam_env.so

> to the ssh pam file, with the following line in
> /etc/security/pam_env.conf
> file:

> PATH DEFAULT=/usr/local/bin:/bin:/usr/bin:/usr/bin/X11:/usr/games

> then when I login with ssh, I get garbage for a path:

> ØCr/t?l@¨ØCcaÎ>l@Ô'@/bi°Îÿ¿Î>n@Ô'@4Ìÿ¿?\&@lg&@?\&@¤Ëÿ¿ð?:@ÔÖÿ¿ØCr/t?l@¨ØCcaÎ>l@Ô'@/bi°Îÿ¿Î>n@Ô'@4Ìÿ¿?\&@lgg&@?\&@¤Ëÿ¿ð?:@ÔÖÿ¿

> Disableing pam_env.so in the ssh pam file fixes this. Also, putting PATH
> in /etc/environment and excluding it from pam_env.conf works. I'd
> normally think this is a pam bug, but I've only seen this with ssh.

Ciao
     Christian
-- 
          Debian Developer and Quality Assurance Team Member
    1024/26CC7853 31E6 A8CA 68FC 284F 7D16  63EC A9E6 67FF 26CC 7853
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 242 bytes
Desc: not available
Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20001227/d02dc374/attachment.bin 


More information about the openssh-unix-dev mailing list