pam_env does not evaluate ~/.pam_environment
Bug #584249 reported by
deleted
This bug report is a duplicate of:
Bug #952185: ~/.pam_environment not parsed by default.
Edit
Remove
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pam (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
In Ubuntu 10.04, any environment variables assigned in ~/.pam_environment do not seem to be applied.
for example if I have a ~/.pam_environment as follows
MY_VARIABLE=
after restarting (or relogin), open a shell and try:
echo $MY_VARIABLE
expected: SOMETHING
but instead the result is blank
To post a comment you must log in.
This seems to be an issue with encrypted home directories. I added
session required pam_env.so
at the end of /etc/pam. d/common- session and now ~/.pam_environment gets read. On another system without encrypted home directories (also 10.04) the work around is not needed. Perhaps in my case the system tries to read ~/.pam_environment before it is decrypted.