PDA

View Full Version : [ubuntu] How do I reset my password in Ubuntu without knowing it?



NS RAO
May 8th, 2009, 07:54 AM
How do I reset my password in Ubuntu without knowing it?

I recently installed Ubuntu on a virtual machine. When I made the account while installing, I made the password 2251, but now when I type the password in for installing updates, etc., it doesn't work. It's possible that I'm wrong, but I've tried every other password that I would use, & none of them work. How can I reset the password, or at least make another user account with equal administrative privileges?

Egi_Power
May 8th, 2009, 08:51 AM
Hi!

Try the following:
EDIT:
Open the Terminal:
Applications -> Accessories -> Terminal

sudo -i
It should log you in as root.

root@yourusername-desktop:~#

Next step:

passwd yourusername
It should look something like this:

root@yourusername-desktop:~# passwd yourusername
Enter new UNIX password:
Now you just enter the new password twice, and all should be well.
Don't forget to logout from root:

exit

Egi_Power

glotz
May 8th, 2009, 09:02 AM
Reboot and select single user mode, that makes you root. Then input passwd <your username goes here> and select a new password.