Although /run/motd.dynamic is being updated, it's being updated after
being displayed, which is why you see the old one from the previous
login. After commenting out the second line with no arguments:

session    optional     pam_motd.so # [1]

/run/motd.dynamic was no longer being updated on login so I knew this
was the line triggering the udpate.

After moving the noupdate to this line I was seeing the freshly
generated motd.dynamic on login.

-- 
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
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to