Home » Linux » Reset Your Lost Ubuntu Password

ubuntu-logo

From the boot menu or the boot disk select recovery mode, which is usually the second boot option.

After you select recovery mode and wait for all the boot-up processes to finish, you’ll be presented with a few options. In this case, you want the Drop to root shell prompt option so press the Down arrow to get to that option, and then press Enter to select it.
The root account is the ultimate administrator and can do anything to the Ubuntu installation (including erase it), so please be careful with what commands you enter in the root terminal.
Once you’re at the root shell prompt, if you have forgotten your username as well, type

ls /home

That’s a lowercase L, by the way, not a capital i, in ls. You should then see a list of the users on your Ubuntu installation. In this case, I’m going to reset Susan Brownmiller’s password. To reset the password, type

passwd username

where usernameis the username you want to reset. In this case, I want to reset Susan’s password, so I type

passwd susan

You’ll then be prompted for a new password. When you type the password you will get no visual response acknowledging your typing. Your password is still being accepted. Just type the password and hit Enter when you’re done. You’ll be prompted to retype the password. Do so and hit Enter again.
Now the password should be reset. Type

exit

to return to the recovery menu.
After you get back to the recovery menu, select resume normal boot, and use Ubuntu as you normally would—only this time, you actually know the password!

Comments

comments

Latest

encryption main The Ultimate Guide To Encryption
phone water Key Tips On What To Do If You Drop Your Device In Water
phone business How to Streamline Your Business Operations with POS Systems
audible Audible on Android vs Audible on iOS
stamp Stamp App for Moving Playlists between Music Services

Tech Geek Today

Tech Geek Today

MonTueWedThuFriSatSun
    123
45678910
11121314151617
18192021222324
25262728293031
       
  12345
6789101112
20212223242526
27282930   
       
      1
9101112131415
16171819202122
23242526272829
3031     
    123
45678910
11121314151617
252627282930 
       
 123456
78910111213
14151617181920
21222324252627
28293031   
       

Subscribe To The Technology Geek

Archives