Get the latest Age of Conan news and views at Massively!
AOL Tech

Stupid Ubuntu tricks: 5 Steps for resetting a forgotten password

GRUB

It happens to everyone. You have so many usernames and passwords that you can't remember them all. Fortunately, Facebook, Gmail, and about a billion other online services have a "forgot password" link. Just click it and the web service will either email your password to you or allow you to reset it and enter a new one.

But what happens when you forget the password for your operating system. Not that this has ever happened to us, but hypothetically let's say we were trying to perform a fresh install of Ubuntu on a laptop this afternoon. We zipped through the installation screens so quickly that we may have accidentally inclued a typo in our password. So when the installation was complete, our (still hypothetical) computer booted up, loaded a splash screen, and then wouldn't let us login no matter how many variations of our password we type.

While you might think the easiest thing to do is reinstall Ubuntu, (after all, this is a clean install so it's not like we'd be losing any data on our hypothetical system), you can save yourself 15-30 minutes by changing the password. It turns out you don't have login to change your password. As we discovered thanks to a useful post on the Ubuntu forums, you can do it from the bootloader screen. Check out the 5 easy steps after the jump.

  1. Turn on your computer, and as soon as you the Press Esc to enter grub message, press the escape key.
  2. Select the option that says (recovery mode).
  3. Your PC will boot into a shell. Once you get a command prompt, type "passwd username" where the username is your username. If you can't remember this, then you can type "ls /home" which should bring it up.
  4. Enter a new password when prompted, and again when prompted again
  5. Type "shutdown -r now" to reboot your syste,

That's it. You should now be able to login with your shiny new password.

Related Headlines

Reader Comments (Page 1 of 1)

Add your comments

Please keep your comments relevant to this blog entry. Email addresses are never displayed, but they are required to confirm your comments.

When you enter your name and email address, you'll be sent a link to confirm your comment, and a password. To leave another comment, just use that password.

To create a live link, simply type the URL (including http://) or email address and we will make it a live link for you. You can put up to 3 URLs in your comments. Line breaks and paragraphs are automatically converted — no need to use <p> or <br> tags.

New Users

Current Users

Download Squad Features


Geeking out on the squadcast. Tune in and then tune out.

View Posts By

  • Windows Only
  • Mac Only
  • Linux Only
Categories
Audio (830)
Beta (328)
Blogging (688)
Browsers (21)
Business (1362)
Design (808)
Developer (928)
E-mail (514)
Finance (127)
Fun (1736)
Games (546)
Internet (4760)
Kids (130)
Office (491)
OS Updates (574)
P2P (176)
Photo (460)
Podcasting (167)
Productivity (1305)
Search (249)
Security (536)
Social Software (1092)
Text (436)
Troubleshooting (51)
Utilities (1915)
Video (1011)
VoIP (138)
web 2.0 (742)
Web services (3324)
Companies
Adobe (184)
AOL (48)
Apache Foundation (1)
Apple (467)
Canonical (35)
Google (1300)
IBM (28)
Microsoft (1304)
Mozilla (457)
Novell (19)
OpenOffice.org (43)
PalmSource (11)
Red Hat (17)
Symantec (14)
Yahoo! (351)
License
Commercial (667)
Shareware (194)
Freeware (1955)
Open Source (897)
Misc
Podcasts (13)
Features (381)
Hardware (167)
News (1108)
Holiday Gift Guide (15)
Platforms
Windows (3586)
Windows Mobile (422)
BlackBerry (44)
Macintosh (2058)
iPhone (83)
Linux (1571)
Unix (78)
Palm (177)
Symbian (122)
Columns
Ask DLS (10)
Analysis (24)
Browser Tips (294)
DLS Podcast (5)
Googleholic (196)
How-Tos (97)
DLS Interviews (19)
Design Tips (14)
Mobile Minute (125)
Mods (68)
Time-Wasters (374)
Weekend Review (38)
Imaging Tips (32)

RESOURCES

RSS NEWSFEEDS

Powered by Blogsmith

Sponsored Links

Advertise with Download Squad

Most Commented On (60 days)

Recent Comments

Urlesque Headlines

BloggingStocks Tech Coverage

More from AOL Money and Finance

More Tech Coverage

Weblogs, Inc. Network

Other Weblogs Inc. Network blogs you might be interested in: