I would like to add the following line to system-login: session required pam_env.so envfile=/etc/profile.env This will cause the settings in profile.env to be exported into the environment by the pam_env module. This will make the environment variables available when the login process is not a user shell. For example, the sftp subsystem of sshd launches the sftp-server binary directly, bypassing any shell startup files. As a concrete example, this would resolve the issue I reported here: https://github.com/ewxrjk/sftpserver/issues/5
I agree that it should be added, will commit it into master within a day.
in pambase master now.