XScreenSaver and PAM
jwz.org·3d
🐧Linux
Preview
Report Post

Lazyweb, I have PAM questions.

I added support for PAM to XScreenSaver in 1998, when PAM itself was a little two-year-old baby. Your keyboard was still PS2 and HDMI hadn’t been invented yet. For lo these many decades, nobody could agree on what went in /etc/pam.conf or /etc/pam.d/login and it was all a giant mess.

Things that used to sometimes be true:

  • If /etc/pam.d/xscreensaver didn’t exist you couldn’t unlock the screen at all.
  • "cp /etc/pam.d/login /etc/pam.d/xscreensaver" was insufficient, some lines had to be omitted.
  • You have to call pam_chauthtok() or an unauthorized user might be able to unlock.
  • No, if you call pam_chauthtok() it will always fail so don’t do that.
  • No wait, actually you have to call pam_chauthtok() because it has side effects bu…

Similar Posts

Loading similar posts...