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 accidentally cut power to the computer and now I can't login with my main user. In GDM I enter the password correctly but it always says "wrong password".

Logging in with another user works. I changed the password for the main user, but it doesn't recognize the new password either.

How can I fix that?

Edit: The file system check yielded no damage message. However, on rebooting the installed OS, I noticed the keyboard layout was set to EN-US which I don't use. But I swear before that it was set to the layout I normally use before the file system check. So everythings back to normal, I can log in. Thanks for everýbodys input.

share|improve this question
    
Do a disk check from a live cd if you can, and then try again. If that does not work I will try to provide further instruction (unless someone else has a more immediate answer). –  RolandiXor Jun 7 '11 at 18:19
    
Does it have to be from a live disk? I can login with the other user just fine and when logged in like that can even become my main user. –  möter Jun 7 '11 at 18:25
    
Try to change to your main user and then change the password, does that work? –  JanC Jun 7 '11 at 19:40
    
BTW: were you using an encrypted home directory? –  JanC Jun 7 '11 at 19:40
1  
@moter post that as your answer and mark it solved please. –  RolandiXor Jun 7 '11 at 22:23

1 Answer 1

up vote 0 down vote accepted

The file system check using a live cd yielded no damage message. However, on rebooting the installed OS, I noticed the keyboard layout was set to EN-US which I don't use. But I swear, before the file system check it was set to the layout I normally use. So everything is back to normal, I can log in. Thanks for everýbodys input.

share|improve this answer

Your Answer

 
discard

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.