Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have upgraded ubuntu to 12.04 and now there is a problem in logging in after lock screen: it says the password is incorrect even though I provide the valid password. I found a temporary solution by switching the user and logging in again with the same user.

share|improve this question
I'd report a bug if anybody can reproduce it. If you can reproduce it, drop a comment... –  hexafraction May 2 '12 at 17:57
add comment

1 Answer

up vote 3 down vote accepted

I had the same issue. It is likely the ownership is wrong for /etc/shadow (See section "gnome-screensaver authentication failure with incorrect /etc/shadow permissions" of this page).

You need to sudo chown root:shadow /etc/shadow then sudo chmod u=r,g=r /etc/shadow See this bug report.

The interesting question is "Why ownership changed?". Because I don't remember changing it.

share|improve this answer
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.