I have environment variables set in ~/.pam_environment and they exist as expected in any graphical terminal emulator I open. If I open a virtual terminal, e.g. TTY1, and login, my PAM environment variables are not present.
How can I ensure ~/.pam_environment variables are always loaded?
Best Answer
One way is to edit
/etc/pam.d/login
like this:Can't tell if it's 'the proper way', though.