September 25, 2007 · General, Security · Email This Post

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

If you forgot you password for your ubuntu system you can recover using the following steps

Turn your computer on.

Press ESC at the grub prompt.

Press e for edit.

Highlight the line that begins kernel ………, press e

Go to the very end of the line, add rw init=/bin/bash

press enter, then press b to boot your system.

Your system will boot up to a passwordless root shell.

Type in passwd username

Set your password.

Type in reboot

  • Share/Save/Bookmark

Related Articles

39 Comments to “How-To Recover password under Ubuntu”

  1. dan says:

    All you arrogant linux-fanboys have really ruined and respect i had for the open-source community.

    Instead of being rational about the differences between windows and linux, you bicker, whine, bemoan, and insult anyone who disagrees with you. Its really disgusting.

    The worst part about it is how you are all so convinced that your operating system is vasty superior in every way to any other OS, which is ridiculous.. to say the LEAST.

    Linux will never penetrate the market much more than it already has. Its unsupported and extremely difficult to administrate for beginner users. Can you imagine your grandmother trying to master the console? -sudo … get…. wha? Its NOT user friendly.

    Windows has its security flaws, AND its stability issues. But thats the nature of the beast folks. Linux isnt all that much more stable than windows is. And the only reason we dont find more security flaws with it is because malware is typically developed to produce the most results, and since EVERYONE uses windows.. its a no-brainer.

    so get off your high-horses, and come back down to earth with the rest of the technology community. you cant learn anything if you think you already know it all.

  2. Shane says:

    Dan, as a dedicated linux user I feel obligated to reply to you. Linux is gain market share more all the time. It’s expected that by the end of this year nearly 40 % of desktop systems will be running a version of linux. A majority of back-end systems and servers run linux now for the security and stability reasons alone. Personally, I have only had my linux servers crash once, which was when I wrote a very bad script. =)

    With Ubuntu, there are only rare occasions a beginning user will need the terminal. Everything else is able to be managed via the GUI. And once you get the hang of the terminal, administering the system is much easier then finding things in windows.

    Malware doesn’t run on linux becuase of the way the kernal works, not because there is no malware designed for linux. Program such as malware are not able to run without the user entering the password so they can’t run, unless you run as root all the time which would be stupid.

  3. Luigi says:

    Also another difference between windows and linux. windows runs only computers, linux is able to be downgraded and run small enough so microwaves, stoves, and other things have linux kernels on them. and its $100+ for one windows cd, or free for any linux cd that youu can install on as many computers as you want for free.

  4. HackerSeraph says:

    Dan fears what he doesnt understand. Lest we not forget, customers of Dell, HP, Acer, and Asus machines can now opt to have their machine shipped with linux and full customer service support ;)

  5. Morthez says:

    Will this still work under 9.04? (havent had the opertunity to test yet)

  6. Distant Thunder says:

    [quote]All you arrogant linux-fanboys have really ruined and respect i had for the open-source community.[/quote]

    Hem and hw do you do with Win-fanboys, who are ways more numerous than us, Linux-fanboys ? Well at least, Linux don’t eat 25% of you bandwidth, and you don’t have to buy a 100 $ more expensive version to get that stupid thing disabled, Ubuntu checks for updates when you login, and even when you’re working without swallowing the whole connection which is actually hard to do for win, & that’s only one of the tremendous amountof examples i can take to show GNU/Linux based OS superiority… Linux less stable than Win ? ‘kidding right ?

  7. RTFM says:

    Dan is 100% right.

    Open Source itself seems to work fine. Mozilla’s products are doing very well, for instance. Server

    There’s just something special about Linux desktop users. They’re disproportionately arrogant, fanatical, and in denial about the flaws and impotence of their favorite OS. I’ve been using Ubuntu for more than two years now, and it sucks. Nothing works out of the box, every release breaks something that previously worked fine, and you get attitude from anyone you ask for help. It’s a nightmare constantly maintaining your system instead of actually using it to get things done, and I would never recommend it to anyone.

  8. bored with prejudice! says:

    wow, both dan and RTFM fulfill their own psychological projections on their own. What can you tell me what you think you know about black people? Why ARE you so defensive? I have never been hesitant to have an honest and open discussion about OS efficiency, security and operability. This means that I have no problem with recognizing opportunities of improvement in all areas of open source software. so….how about you tell me what you think you know about other people you don’t know but are perfectly willing to judge and attack — not even criticize their actions in a fair and objective way but attack their character.

    sounds like every time I check a white supremacist on their prejudice — all that anger they harbor within comes rushing out in an attack on my character – as if that’s an appropriate response for anything.

    cmon, wifebeaters, I know you’re not used to using WORDS but let’s try this again….

  9. bored with prejudice! says:

    and that question was directed more towards dan than RTFM. RTFM, from a software analysis and troubleshooting standpoint the very vague and generalized feedback is not very helpful. I’d begin by asking you the surrounding circumstances of what you upgraded, and exactly what software are you talking about anyway?

    Also, since this is open source software, that means it’s community supported. Would you care to support making the changes you so obviously want? Just food for thought. “Freedom ain’t free”, as the xenophobes in this US of A love to spout.

Leave a Reply