diff options
author | Christian Perrier <bubulle@debian.org> | 2014-04-30 22:23:26 +0200 |
---|---|---|
committer | Christian Perrier <bubulle@debian.org> | 2014-04-30 22:23:26 +0200 |
commit | 60c957160599fca662ce21f78fa790c6a441c1a6 (patch) | |
tree | fda1629f9991b06879cb889dcbf24c283c359e60 /debian/login.pam | |
parent | c7e2932be4bf69298086cef2798631e28523661d (diff) | |
download | shadow-60c957160599fca662ce21f78fa790c6a441c1a6.tar.gz |
use the new pam_exec functionality from pam 1.1.8-1 to implement the dynamic motd, rather than using /run/motd.dynamic from initscripts. This will allow initscripts to drop /etc/init.d/motd. Closes: #741129
Diffstat (limited to 'debian/login.pam')
-rw-r--r-- | debian/login.pam | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/debian/login.pam b/debian/login.pam index d5f2c8a3..b165d029 100644 --- a/debian/login.pam +++ b/debian/login.pam @@ -82,9 +82,7 @@ session optional pam_lastlog.so # Prints the message of the day upon succesful login. # (Replaces the `MOTD_FILE' option in login.defs) -# 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 noupdate +session optional pam_exec.so type=open_session stdout /bin/uname -snrvm session optional pam_motd.so # Prints the status of the user's mailbox upon succesful login |