The /etc/pam.d/sshd file generated for Ubuntu 16.04 are missing these two lines compared to default:
# Print the status of the user's mailbox upon successful login.
session optional pam_mail.so standard noenv # [1]
# Read environment variables from /etc/environment and
# /etc/security/pam_env.conf.
session required pam_env.so # [1]
This PR fixes this.
Templates for Ubuntu 18 and Ubuntu 20 are already ok.
The /etc/pam.d/sshd file generated for Ubuntu 16.04 are missing these two lines compared to default:
This PR fixes this.
Templates for Ubuntu 18 and Ubuntu 20 are already ok.