Comment 24 for bug 64301

Revision history for this message
zjohnson (zjohnson) wrote :

I am having a problem like this with gnome-screensaver and libnss-mysql-bg under Hardy Heron, but I am not sure if it is the same problem.

Users with an entry in /etc/shadow can unlock just fine, but any user who is authenticated via libnssmysql fails. However they can log in and still have thier session back if they pick switch user and login with the same username and password.

My /var/log/auth.log reports this when I try to unlock gnome-screensaver with libnss-mysql-bg:

Nov 13 17:09:38 p70 unix_chkpwd[6072]: check pass; user unknown
Nov 13 17:09:38 p70 unix_chkpwd[6072]: password check failed for user (sa)
Nov 13 17:09:38 p70 gnome-screensaver-dialog: pam_unix(gnome-screensaver:auth): authentication failure; logname= uid=3282 euid=3282 tty=:0.0 ruser= rhost= user=sa

some file contents and permissions:

root@digit:/etc/pam.d# cat gnome-screensaver
@include common-auth
auth optional pam_gnome_keyring.so

root@digit:/etc/pam.d# ls -Fal /usr/lib/gnome-screensaver/gnome-screensaver-dialog
-rwsr-sr-x 1 root root 56464 2008-11-13 15:33 /usr/lib/gnome-screensaver/gnome-screensaver-dialog*

root@digit:/etc/pam.d# ls -Fald /sbin/unix_chkpwd
-rwxr-sr-x 1 root shadow 19584 2008-05-16 08:21 /sbin/unix_chkpwd*

root@digit:/etc/pam.d# ls -Fald /etc/shadow
-rw-r----- 1 root shadow 993 2008-09-19 13:49 /etc/shadow

root@digit:/etc/pam.d# ls -Fald /etc/libnss-mysql.cfg
-rw-r--r-- 1 root root 2386 2006-09-20 10:47 /etc/libnss-mysql.cfg

root@digit:/etc/pam.d# ls -Fald /etc/libnss-mysql-root.cfg
-rw-r----- 1 root shadow 77 2006-09-13 14:22 /etc/libnss-mysql-root.cfg