Public bug reported:

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?

** Affects: pam (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/684244

Title:
  Multiple issues with pam_motd update-motd code

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to