Comment #2 on issue 36 by
j...@trackuino.org: xscreensaver won't unlock
https://code.google.com/p/nsscache/issues/detail?id=36
I've tried with pamtester and it doesn't work either:
baca@PC2101 ~ $ ls -l /etc/shadow.cache*
-rw-r----- 1 root root 125392 sep 15 21:02 /etc/shadow.cache
-rw-r----- 1 root root 27869 sep 15 21:02 /etc/shadow.cache.ixname
baca@PC2101 ~ $ pamtester login baca authenticate
Password:
pamtester: Authentication failure
Relevant lines in auth.log:
PC2101 ~ # tail -3 /var/log/auth.log
Sep 16 13:23:53 PC2101 unix_chkpwd[13229]: check pass; user unknown
Sep 16 13:23:53 PC2101 unix_chkpwd[13229]: password check failed for user
(baca)
Sep 16 13:23:53 PC2101 pamtester: pam_unix(login:auth): authentication
failure; logname=baca uid=10714 euid=10714 tty= ruser= rhost= user=baca
After 'chgrp shadow /etc/shadow.cache*' authentication works normally:
baca@PC2101 ~ $ ls -l /etc/shadow.cache*
-rw-r----- 1 root shadow 125392 sep 15 21:02 /etc/shadow.cache
-rw-r----- 1 root shadow 27869 sep 15 21:02 /etc/shadow.cache.ixname
baca@PC2101 ~ $ pamtester login baca authenticate
Password:
pamtester: successfully authenticated
Note that if I run pamtester as root, it works regardless of the cache
files' ownership:
PC2101 ~ # ls -l /etc/shadow.cache*
-rw-r----- 1 root root 125392 sep 15 21:02 /etc/shadow.cache
-rw-r----- 1 root root 27869 sep 15 21:02 /etc/shadow.cache.ixname
PC2101 ~ # pamtester login baca authenticate
Password:
pamtester: successfully authenticated
PC2101 ~ #
But this is not the case with xscreensaver, which runs as the logged in
user.