Comment 2 for bug 955032

Revision history for this message
linuxar (linuxar) wrote :

Sorry, I was not very explicit about the underlying cause. It appears on the link that I gave (http://superuser.com/questions/135730/why-do-i-get-duplicated-entries-in-my-path), namely in the post (and the answer) gave by Nick Taylor:

"The problem seems to stem from the fact that pam_env defaults to reading the user ~/.pam_environment every time it is invoked. A lot of login methods (cron, lightdm, lightdm-autologin, login, sshd and su on my machine) invoke pam_env twice: once to read the /etc/environment and ~/.pam_environment files, and once to read the /etc/default/locale file. In neither case is the user_readenv flag set, so pam_env reads, and acts on, your ~/.pam_environment twice."

Thank you for taking this issue into consideration. I was wondering if the parameter "user_readenv=0" could not be put directly into the /etc/default/locale file.

Anyway, thanks again.