how can i reset my password ?

Asked by laura

I changed my password,and the computer sayd later its wrong.But I know its not.And now I cant install or change enything.What to do?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu shadow Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

Reboot and hold shift, select recovery mode then select root. Then run:

passwd foo; reboot

Change foo for your username. Eg:

passwd andy; reboot

You can now use the new password to do stuff with.

Revision history for this message
laura (ltamfeld) said :
#2

Thanks actionparsnip, that solved my question.

Revision history for this message
laura (ltamfeld) said :
#3

sry,dont understand exacly.my english isnt very good

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#4

Here there are other questions like yours take a look:

https://answers.launchpad.net/ubuntu/+source/shadow