Sync motd handling with sshd

Using patch from Ubuntu

Closes: #757148
This commit is contained in:
Balint Reczey
2017-01-20 20:41:49 +01:00
parent 3588f5d2a3
commit 40146019e6

6
debian/login.pam vendored
View File

@@ -92,8 +92,10 @@ session optional pam_lastlog.so
# Prints the message of the day upon successful login.
# (Replaces the `MOTD_FILE' option in login.defs)
session optional pam_exec.so type=open_session stdout /bin/uname -snrvm
session optional pam_motd.so
# This includes a dynamically generated part from /run/motd.dynamic
# and a static (admin-editable) part from /etc/motd.
session optional pam_motd.so motd=/run/motd.dynamic
session optional pam_motd.so noupdate
# Prints the status of the user's mailbox upon successful login
# (Replaces the `MAIL_CHECK_ENAB' option from login.defs).