This is a bug in the /etc/pam.d/login configuration, which has: session optional pam_motd.so motd=/run/motd.dynamic noupdate session optional pam_motd.so
This tells login to display the dynamic motd /without updating it/, and then to call pam_motd again for the static motd... and updating the dynamic file. So the motd displayed will always be one run out of date. The ssh package has this the correct way around: session optional pam_motd.so motd=/run/motd.dynamic session optional pam_motd.so noupdate ** Package changed: pam (Ubuntu) => shadow (Ubuntu) ** Changed in: shadow (Ubuntu) Status: Confirmed => Triaged ** Changed in: shadow (Ubuntu) Assignee: (unassigned) => Colin Watson (cjwatson) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1368864 Title: old motd is displayed on login To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1368864/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs