This file is from the openssh package, not from pam. Reassigning. > Current version runs update of dynamic part of motd on every login > by ssh, what is slowing it significantly and clearly is not what author had > in mind.
It is not intended that it significantly slow the login. But it is intended that the motd always be up to date when shown to the user at login. So calling pam_motd.so only with 'noupdate' is certainly not the expected behavior. The current design of update-motd is that each of the individual scripts installed in /etc/update-motd.d are expected to ensure that they have a reasonable up-to-date local cache of their information in the common case which is updated out of band, such that the motd updating only has to run a short sequence of shell scripts to concatenate information into the motd file. If you have an /etc/update-motd.d script that is not behaving this way, please help us identify which it is so that we can resolve this. I don't think there is actually a bug in the contents of /etc/pam.d/sshd. ** Package changed: pam (Ubuntu) => openssh (Ubuntu) ** Changed in: openssh (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to openssh in Ubuntu. https://bugs.launchpad.net/bugs/1853714 Title: libpam-runtime misconfigurred module option in /etc/pam.d/sshd Status in openssh package in Ubuntu: Incomplete Bug description: Ubuntu version: Ubuntu 18.04.3 LTS libpam-runtime: 1.1.8-3.6ubuntu2.18.04.1 In file /etc/pam.d/sshd there is part: # Print the message of the day upon successful login. # 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 but it should be: # Print the message of the day upon successful login. # This includes a dynamically generated part from /run/motd.dynamic # and a static (admin-editable) part from /etc/motd. session optional pam_motd.so noupdate motd=/run/motd.dynamic Current version runs update of dynamic part of motd on every login by ssh, what is slowing it significantly and clearly is not what author had in mind. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1853714/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp