Bookmark and Share

September 8, 2009 by Ivan  

[HowTo] Recover Root Password In Ubuntu

Ads by Google

Ubu_Icon2Some people say you won’t need to use root account anymore in Ubuntu. That’s why Ubuntu doesn’t activate root account for default install. In my opinion they want to make Ubuntu more secure. Since Ubuntu now is user-friendly and not just for developer or other computer geek, end-user or even a newbie can use Ubuntu. But not for me, i need root account, because it’s more convenient for me to configure or and do setting on an Ubuntu machine. Imagine if i don’t use root account to configure an Ubuntu machine, i have to type ‘sudo’ every session to configure the Ubuntu.

But sometimes you forget your root password, maybe you barely use it or your admin is out and you have to replace him as administrator but he/she doesn’t tell you the root password. No what you have to do? Reinstall? I wouldn’t do that, because reinstall will make more job unless you think it really necessary and you know what you are doing.

You can recover/change your root password if you have the machine in front of your eyes, i mean you own the machine. So if you looking for how to hack someones server from the network, this article is not for you. Ok now, how to recover root password in Ubuntu? Actually is not hard, you can follow this steps:
1. You need to reboot your Ubuntu
2. When you reach GRUB page, press ‘e’ (with quotes), this command is to edit grub
3. Edit one of your boot command
4. Add this command to the very end of that boot command: rw init=/bin/bash
5. Press enter and boot your system, that command will make your Ubuntu to boot with passwordless root shell
6. Then just change your password with passwd username command. If it is root just type: passswd root
7. Reboot your system

Now your root password have changed and you can use it. That’s it. Thanks for reading and have a nice day… upss, don’t forget to leave any comment lol. Thanks.

What people search:

Reader Comments

  1. oceanman says:

    Very kewl thanks, will try it when soon and let you know how it works!

  2. mohamedushsma says:

    Thanks for ur guide i will post my feed back after execute your commands.

  3. Aatif says:

    it doesnt work

  4. Ivan says:

    What Ubuntu version are you using?

  5. Jam says:

    I have Ubuntu 10.0.4 and when I boot, I never see grub at all. Esc does not change anything. Just boots in normal sequence.

  6. Anonymous says:

    Last time I forgot my password and tried everything i could do but failed, until I found this great tool Password Genius. It works great, and you can google it.

  7. I’ll try it soon. Thanks for the tips

Please do not add HTML tags in your comments. All comments are moderated.

Add a comment

(required, use real name)
(required, will not be published)
(optional, will not be published)
blog comments powered by Disqus