Multiple issues with pam_motd update-motd code
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pam (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
Package: libpam-modules
Version: 1.1.1-2ubuntu5
Running Lucid on a Beagleboard, wondering why logins take so long. Horrified to find that the problem is pam_motd... Several issues:
1. Why on earth is *every* login updating a global file (/etc/motd -> /var/run/motd)?
a. Why spam every user?
b. Why even write to the file every time? It's being generated on all logins, so there doesn't seem to be any useful caching go on.
2. This is adding ~5 seconds of startup lag to every login, which is annoying
3. I don't see any locking around the updates of /var/run/motd.new, so it seems that multiple parallel logins could easily case corruption
4. No documentation of any of this in pam_motd(8)
If you must update motd automatically, then surely running something via cron would be better than this messy hack?
4 months with no responses...