Public bug reported: I upgraded some Ubuntu 12.04 machines last week and the upgrade to lightdm 1.2.3-0ubuntu2 (i.e. from precise-updates) replaces /etc/pam.d/lightdm with a new version. This screwed up PATH and locale for all users in graphical sessions. Default locale (/etc/default/locale) is set to de_DE.UTF-8 and /etc/environment contains PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games".
After installing the lightdm 1.2.3-0ubuntu2 in a graphical session the locale is POSIX and /usr/sbin/ is missing from PATH. Apparently the reason for this are the changes in the auth section of /etc/pam.d/lightdm. Replacing this file with the version from before the update solves the problem. In particular, this seems to be related to the following line (from the old /etc/pam.d/lightdm): auth required pam_env.so readenv=1 envfile=/etc/default/locale The systems authenticate against Kerberos via pam_krb5 and LDAP user database (still via libnss-ldap). ** Affects: lightdm (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to lightdm in Ubuntu. https://bugs.launchpad.net/bugs/1176849 Title: lightdm/pam configuration screws up locale and PATH Status in “lightdm” package in Ubuntu: New Bug description: I upgraded some Ubuntu 12.04 machines last week and the upgrade to lightdm 1.2.3-0ubuntu2 (i.e. from precise-updates) replaces /etc/pam.d/lightdm with a new version. This screwed up PATH and locale for all users in graphical sessions. Default locale (/etc/default/locale) is set to de_DE.UTF-8 and /etc/environment contains PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games". After installing the lightdm 1.2.3-0ubuntu2 in a graphical session the locale is POSIX and /usr/sbin/ is missing from PATH. Apparently the reason for this are the changes in the auth section of /etc/pam.d/lightdm. Replacing this file with the version from before the update solves the problem. In particular, this seems to be related to the following line (from the old /etc/pam.d/lightdm): auth required pam_env.so readenv=1 envfile=/etc/default/locale The systems authenticate against Kerberos via pam_krb5 and LDAP user database (still via libnss-ldap). To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1176849/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp