View Full Version : [ubuntu] "Lock Screen" dialog refuses (valid) password.
dsm iv tr
May 23rd, 2008, 02:34 PM
Hey!
Hoping someone might have the same issue.
Essentially, gdm's "Lock Screen" dialog refuses my login password after the screen in locked, either after a resume/hibernate, or simply telling it to lock the screen without any power management.
I've tried changing my password with passwd, rebooting, and altering my login keyring to have the same password as my UNIX login.
I'm going to disable screen locking for now, but does anyone have any ideas? It's driving me crazy.
Edit: Additional info, I just did an apt-get update run today, and it updated gnutls and some ssl libs. If you need logs, lemme know. I -can- login just fine from an initial GDM login screen.
Edit #2: I forgot to mention that locking the screen worked perfectly fine before the apt-get update.
sdennie
May 23rd, 2008, 03:32 PM
Are you using multiple keyboard layouts? Is it possible that your password generates different keys in those layouts? Another possibility could be the state of the numlock key on resume. Some laptops map the right hand side of the keyboard to the numberpad when numlock is on (and it's incredibly confusing if you don't realize what's going on).
dsm iv tr
May 23rd, 2008, 10:50 PM
I'm not using multiple k/b layouts. I do use my compose key (for French accents), but there's no numlock or capslock of any kind turned on. I'm pretty much stumped.
I've run across one other mention of this on a Google search, but no real solutions.
Is there a way to "reset" gdm? Would purging the package and reinstalling from apt possibly fix this in any way? I'm a longtime Debian user, not used to reinstalling stuff unless I really have to, but I'd be willing to make an exception. :)
/var/log/auth also spits out a bunch of "unknown user" and "authentication failed" every time the dialog refuses me access. I haven't changed my uid or username.
dsm iv tr
May 24th, 2008, 12:07 PM
Bump.
fritserasmus
September 3rd, 2008, 11:55 AM
I am experiencing the same issue.
When "Lock Screen" is clicked I cannot log onto the pc again using the gui interface.
I tried my uid with admin rights pw, in any shape or form but was not successful.
Had to hard reset the pc so I can restart Ubuntu.
The PC / file server now runs with no gui interface protection.
Any suggestions?
Rgds
Frits
dsm iv tr
September 3rd, 2008, 07:21 PM
I still haven't found a solution. I checked the PAM config and that's fine too. I'm pretty much lost on it. :\
iLoveRuby
September 4th, 2008, 08:39 PM
I'm having the same problem. When I "Lock Screen", log back in, I have to "Switch User" and type in the user name then password. I've tried recreating user, reenabling administrative privileges, etc...
Veloso
September 25th, 2008, 03:48 PM
Bumping the thread; I'm having the same problem myself.
dsm iv tr
September 29th, 2008, 12:58 PM
I'm still experiencing this issue, months later.
Maybe it's time for a Launchpad bug.
Rhubarb
October 8th, 2008, 12:41 PM
It's a known bug, see here:
https://answers.launchpad.net/ubuntu-eee/+question/45385
Salgar has the solution:
CAUSE:
/sbin/unix_chkpwd has wrong group/permissions
SOLUTION:
chown root:shadow /sbin/unix_chkpwd
chmod 2755 /sbin/unix_chkpwd
iLoveRuby
October 11th, 2008, 01:27 PM
You may also need to change the group permission of /etc/shadow
have a look at the files /etc/shadow and /sbin/unix_chkpwd. The owner
should be "root" for the user, and "shadow" for the group.
(See: http://groups.google.com/group/linux.debian.user/browse_thread/thread/4f487ced7818487c)
So, the revised solution would perhaps be:
CAUSE:
/sbin/unix_chkpwd and /etc/shadow have wrong group/permissions
SOLUTION:
chown root:shadow /sbin/unix_chkpwd
chmod 2755 /sbin/unix_chkpwd
chown root:shadow /etc/shadow
iLoveRuby
October 30th, 2008, 03:04 AM
Update: This problem was fixed in Ubuntu 8.10.
iamhugeinjapan
November 2nd, 2008, 09:30 PM
I've just started getting it in Ubuntu 8.10 (fresh install but old /home). It will intermittently require two password attempts to gain access. I've very carefully typed my password to test this and it will be denied. I tried changing my password but it continues.
fatka
January 19th, 2009, 08:10 AM
I have this problem on two different installs of Hardy (one is Xubuntu the other is regular Gnome). In my machine the ownership and permissions are already set as mentioned in the solution. Any fixes?
iamhugeinjapan
January 19th, 2009, 08:53 AM
I solved it by upgrading to Intrepid :)
Come on up, the water is nice.
fatka
January 21st, 2009, 12:03 AM
I can't upgrade as some of the packages I need to work with are not very stable on Intrepid. :(
mattfink
February 10th, 2009, 02:51 PM
It's a known bug, see here:
https://answers.launchpad.net/ubuntu-eee/+question/45385
Salgar has the solution:
CAUSE:
/sbin/unix_chkpwd has wrong group/permissions
SOLUTION:
sudo chown root:shadow /sbin/unix_chkpwd
sudo chmod 2755 /sbin/unix_chkpwd
This worked for me on Ubuntu EEE (8.04)
rstrazza
April 2nd, 2009, 09:53 PM
I have installed version 8.10 will all updates and default Gnome 2.24.1 and after try the proposed solutions on this thread the lock screen still refuses my valid password. Any other ideas ?
Thanks
Futurix
September 6th, 2009, 08:30 PM
use this :
chown root:shadow /sbin/unix_chkpwd
chmod +s /usr/lib/gnome-screensaver/gnome-screensaver-dialog
chmod +s /sbin/unix_chkpwd
chown root:shadow /etc/shadow
for kde users:
chmod +s /usr/bin/kcheckpass
tested on ubuntu 9.04
Rogerborg
September 15th, 2009, 09:57 AM
Yup, this bug is still extant in 9.04. The stock install was fine, but somewhere along the way, my /etc/shadow has become root:root and 0400.
I'm not sure what's causing it. Running useradd sets the permissions to 0440, but doesn't touch the permissions.
sudo chown root:shadow /etc/shadow
sudo chmod 440 /etc/shadow
fixes the screen unlock problem for me in 9.04.
paschadee
February 15th, 2010, 11:07 AM
Occurred on Ubuntu 9.10 (after restoring some files from an rsync backup - reason unknown - affected files not included in backup/restore)
before fix:
paul@godzilla:~$ ls -l /dev/null
-rw-rw-rw- 1 root root 51 2010-02-15 10:53 /dev/null
paul@godzilla:~$ su
Password:
root@godzilla:/home/paul# rm -rf /dev/null; mknod -m 666 /dev/null c 1 3
root@godzilla:/home/paul# ls -l /dev/null
crw-rw-rw- 1 root root 1, 3 2010-02-15 10:54 /dev/null
root@godzilla:/home/paul# ls -l /sbin/unix_chkpwd
-rwxr-sr-x 1 root shadow 30400 2009-09-04 10:26 /sbin/unix_chkpwd
root@godzilla:/home/paul# chmod +x /sbin/unix_chkpwd
root@godzilla:/home/paul# chmod +s /sbin/unix_chkpwd
root@godzilla:/home/paul# ls -l /sbin/unix_chkpwd
-rwsr-sr-x 1 root shadow 30400 2009-09-04 10:26 /sbin/unix_chkpwd
root@godzilla:/home/paul#
GDM screensaver login success.
venturax
March 3rd, 2010, 12:11 PM
I have this problem on two different installs of Hardy (one is Xubuntu the other is regular Gnome). In my machine the ownership and permissions are already set as mentioned in the solution. Any fixes?
I'm running Karmic and as fatka mentions, the ownership and permissions look ok. Still i get locked out. I can circumvent the issue by clicking "Switch User" and log in as mysefl again...
jazzgossen
November 5th, 2010, 08:40 AM
I have this problem on Ubuntu 10.04. Logging on works in all cases except from a locked screen. The ownerships and permissions look OK. I did
chmod +s /sbin/unix_chkpwd
but the problem is still the same.
Powered by vBulletin® Version 4.2.2 Copyright © 2018 vBulletin Solutions, Inc. All rights reserved.