← Back to team overview

touch-packages team mailing list archive

[Bug 155794] Re: pam_env can't open /etc/default/locale

 

I believe it's a bug in sudo's PAM configuration. Specifically,
/etc/pam.d/sudo should use "session" for pam_env module, rather than
"auth".

** Package changed: pam (Ubuntu) => sudo (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to sudo in Ubuntu.
https://bugs.launchpad.net/bugs/155794

Title:
  pam_env can't open /etc/default/locale

Status in “sudo” package in Ubuntu:
  Triaged
Status in “localization-config” package in Debian:
  Fix Released

Bug description:
  Binary package hint: libpam-modules

  Hello!

  I just upgraded to Gutsy and am getting these messages in my log:
  Oct 22 06:25:06 gerf su[22091]: pam_env(su:session): Unable to open env file: /etc/default/locale: No such file or directory
  Oct 22 06:28:45 gerf su[22423]: pam_env(su:session): Unable to open env file: /etc/default/locale: No such file or directory
  Oct 22 06:28:45 gerf su[22427]: pam_env(su:session): Unable to open env file: /etc/default/locale: No such file or directory
  Oct 22 06:28:45 gerf su[22429]: pam_env(su:session): Unable to open env file: /etc/default/locale: No such file or directory

  This is probably due to these lines in the /etc/pam.d/* files:
  # grep /etc/default/locale /etc/pam.d/*
  /etc/pam.d/login:# locale variables are also kept into /etc/default/locale in etch
  /etc/pam.d/login:session       required   pam_env.so readenv=1 envfile=/etc/default/locale
  /etc/pam.d/ssh:# /etc/default/locale, so read that as well.
  /etc/pam.d/ssh:auth       required     pam_env.so envfile=/etc/default/locale
  /etc/pam.d/su:# locale variables are also kept into /etc/default/locale in etch
  /etc/pam.d/su:session       required   pam_env.so readenv=1 envfile=/etc/default/locale

  I have a Feisty box and it has the same lines in the /etc/pam.d/*
  directories.

  I have touched the /etc/default/locale file for the moment as a work
  around.

  Ciao!

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sudo/+bug/155794/+subscriptions