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

What Should You Expect from a Prototyping Company?
Wonderful and useless features of mobile phones
cloud computing Top 4 Cloud Computing Trends to Look Out For
How to Pick the Best Cloud Hosting Service for Multiple WordPress Websites
Key Steps On How To Improve The Security Of Your Business Website

Follow Us

Visit Us On TwitterVisit Us On FacebookVisit Us On GooglePlusVisit Us On PinterestVisit Us On YoutubeCheck Our Feed

Join Premium

Enjoy All The Benefits Of Premium

  • Access To Premium Content Only Available To Members
  • Digital Copy Of My Book The Pangram Killer
  • Coupons for quality sites affiliated with us
  • Access To All Short Stories
  • Free Plug On Podcast
  • Get first notice and exclusive access to events and meetups
$19.99

Subscribe To The Technology Geek

Sponsors

Sponsors

Archives