Sep 4, 2011

How to change any username and password on Ubuntu ?

Open terminal. In order to do this trick, you need access to the root account. To do this, just type sudo -s and hit enter.

Next, type ls /home and hit enter. You will see a list of all the accounts on the system.

Then, type passwd username in the list and then hit enter.

Type the new password, hit enter, then retype it.

Note: The password will not show up when you type it so be careful!


If you can't get into your account in the first place, boot in recovery mode (hold esc or shift on startup, I think) and then scroll down to where it says root on the left or something like that. Hit enter, type the commands, and such. (Since you're already in root from where you hit enter on "root," you don't have to type sudo -s)

No comments:

Post a Comment