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.

My Ubuntu machine has suddenly started asking for a username and password when it starts up but does not accept the details I enter. When i go into terminal however, it seems to work fine. I have tried using the

passwd <user>

change thing but get authentication error. I know i am definately entering the correct details as I always use the same ones.

How can I change the password?

share|improve this question
add comment

2 Answers

You need to change password for your username.

Enter command like below,

passwd YOUR_USERNAME

and make sure that you are logging in using the username you entered earlier.

share|improve this answer
    
This is not different from passwd. Running passwd as $USER is equivalent to running passwd $USER as $USER. (Running sudo passwd is different.) Also, passwd YOUR_USERNAME is what the OP ran, but the question's formatting was broken so it didn't appear. –  Eliah Kagan Jul 11 '12 at 19:33
add comment

Try running passwd as root. When you run passwd as root, unlike when you run it as yourself, you do have to specify the user whose password you want to change:

sudo passwd $USER

Either keep $USER as it is (it will expand to your username), or replace it with your username.

share|improve this answer
add comment

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.