Bug 204364

Summary: gnome-screensaver doesn't recognize my password
Product: [openSUSE] openSUSE 10.2 Reporter: Émeric Maschino <emeric.maschino>
Component: GNOMEAssignee: Rodrigo Moya <rodrigo>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Blocker    
Priority: P5 - None CC: aj, andreas.hanke, aristeu, david.wright, dimstar, forgotten_PZ4wA53Xsq, jhn_gleeson, kukuk, linux, mmeeks, security-team
Version: RC 5   
Target Milestone: ---   
Hardware: All   
OS: SUSE Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: The log produced by gnome-screensaver while trying to unlock.

Description Émeric Maschino 2006-09-08 07:40:56 UTC
Once logged in a GNOME session, I cannot resume it if the screensaver has been started. The screensaver dialog box seems to not recognize my password anymore. This is with actual gnome-screensaver-2.15.7-3. I hadn't this problem with the previous version (don't remember the version though).
Comment 1 Stephan Binner 2006-09-08 09:51:27 UTC
*** Bug 204373 has been marked as a duplicate of this bug. ***
Comment 2 Andreas Hanke 2006-09-08 10:57:32 UTC
*** Bug 204367 has been marked as a duplicate of this bug. ***
Comment 3 Rodrigo Moya 2006-09-08 11:53:40 UTC
I guess this is happening in 10.2 (that is, gnome 2.15/2.16), right? Maybe we are not patching correctly the PAM config file..
Comment 4 Émeric Maschino 2006-09-14 17:41:31 UTC
The situation is even worse with today's Alpha 4 Plus updates: my password isn't recognized at the GDM login screen. To access my GNOME desktop, I had to switch in runlevel 3 and start an X session with startx. If it can help:
- gnome-screensaver-2.15.7-4
- gnome-session-2.15.92-4
- gdm-2.15.10-5.
Comment 5 Andreas Hanke 2006-09-14 18:16:58 UTC
Comment 4 (not the initial report) is a duplicate of bug 205621.
Comment 6 Gregory Youngblood 2006-09-16 05:12:26 UTC
10.2 Alpha 4 recognizes my password for GDM, but screen saver does not. Had to ssh in and kill the gnome-screensaver process.
Comment 7 Lars Vogdt 2006-09-20 13:52:15 UTC
(In reply to comment #4)
> The situation is even worse with today's Alpha 4 Plus updates: my password
> isn't recognized at the GDM login screen. To access my GNOME desktop, I had to
> switch in runlevel 3 and start an X session with startx. 

See #206963 for a quick hack to login. But this doesn't solve the screensaver problem.

Comment 8 Lars Vogdt 2006-09-20 13:53:51 UTC
increasing Severity for the screensaver problem
Comment 9 Andreas Jaeger 2006-09-20 14:48:59 UTC
This still happens with Alpha4plus as of today.
Comment 11 Andreas Hanke 2006-09-28 10:08:00 UTC
*** Bug 208684 has been marked as a duplicate of this bug. ***
Comment 12 Andreas Hanke 2006-10-04 13:44:58 UTC
*** Bug 209931 has been marked as a duplicate of this bug. ***
Comment 13 JP Rosevear 2006-10-06 14:18:56 UTC
*** Bug 210177 has been marked as a duplicate of this bug. ***
Comment 14 Jan Blunck 2006-10-09 10:52:18 UTC
This still happens with STABLE from today.
Comment 15 Dominique Leuenberger 2006-10-09 17:23:12 UTC
I have this behaviour just experienced with an installation of ALPHA5 today.
Comment 16 Stephan Binner 2006-10-12 10:25:10 UTC
*** Bug 211866 has been marked as a duplicate of this bug. ***
Comment 17 Rodrigo Moya 2006-10-13 07:56:02 UTC
No success for me in trying to replicate this bug, because the screensaver just fades and locks the screen for ever, without showing ever the unlock dialog. So, while I install alpha5 to see if I'm luckier, could anyone having this bug do the following:

$ killall -9 gnome-screensaver
$ gnome-screensaver --no-daemon --debug > log.txt 2>&1

and send me the log.txt file after you tried to unlock the dialog and it failed?
Comment 18 Jiri Dluhos 2006-10-13 08:20:10 UTC
Created attachment 101399 [details]
The log produced by gnome-screensaver while trying to unlock.
Comment 19 Jiri Dluhos 2006-10-13 08:20:31 UTC
#17: Please find the attached log; hopefully it helps.
Comment 20 Rodrigo Moya 2006-10-13 12:38:43 UTC
> [error_watch] gs-window-x11.c:736 (10:24:28):	 command error output:[ auth_message_handler] gnome-screensaver-dialog.c:247 (10:24:28):	 Got no response
>
> [error_watch] gs-window-x11.c:736 (10:24:28):	 command error output: [auth_message_handler] gnome-screensaver-dialog.c:215 (10:24:28):	 Got message style 3: 'Permissions on the password database may be too restrictive.'
>
> [error_watch] gs-window-x11.c:736 (10:24:28):	 command error output: [auth_message_handler] gnome-screensaver-dialog.c:247 (10:24:28):	 Got no response
>
> [error_watch] gs-window-x11.c:736 (10:24:28):	 command error output: [do_auth_check] gnome-screensaver-dialog.c:283 (10:24:28):	 Verify user returned: FALSE
>
> [error_watch] gs-window-x11.c:736 (10:24:28):	 command error output: [do_auth_check] gnome-screensaver-dialog.c:286 (10:24:28):	 Verify user returned error: Incorrect password.

seems the PAM conversation is getting nowhere, with errors being returned. I've seen people getting this 'Permissions on the password database may be too restrictive.' message because of the 'Paranoid' mode being selected in Yast (Security and Users -> Local Security'). Is that the case? I checked, and 10.2 comes with the 'Easy' mode by default, so I guess it won't be the case. 
Comment 21 Jiri Dluhos 2006-10-13 12:43:32 UTC
Local security settings are on defaults, the File security is 'easy'.
Comment 22 Rodrigo Moya 2006-10-13 12:56:24 UTC
Ok, so the cause of the problem is the /etc/shadow file not being readable by gnome-screensaver. If you set it to readable by everyone, it unlocks correctly :-(  I see this file had the same permissions, that is:

-rw-r----- 1 root shadow 885 2006-08-29 13:56 /etc/shadow

in SLED10, where it works, so, what has changed?
Comment 25 Ludwig Nussel 2006-10-13 13:49:06 UTC
you need to pass --enable-authentication-scheme=helper to configure
Comment 26 Rodrigo Moya 2006-10-13 14:07:42 UTC
yay, that was it, this was added to g-screensaver, and if not used, it was not using the helper program, like in SLED10. Thanks Ludwig, package submitted to autobuild
Comment 27 Andreas Jaeger 2006-10-13 17:23:31 UTC
*** Bug 212264 has been marked as a duplicate of this bug. ***
Comment 28 Matthias Hopf 2006-12-01 17:59:48 UTC
This just happened again, on a new RC5 installation.

Never using gnome, thus I didn't notice that before.
Comment 29 Dominique Leuenberger 2006-12-08 10:35:37 UTC
For information:
I just installed 10.2 Final and can confirm that this bug is NOT existing just after the installation from DVD.

Comment 30 Matthias Hopf 2006-12-08 14:19:19 UTC
Cannot reproduce ATM. Guess this was a configuration glitch.

Sorry for the fuzz.
Comment 31 Gary Ekker 2008-03-26 18:06:26 UTC
Changing to component GNOME. Sorry for the spam.