For those having grub bootloader
1)Upon Linux booting up to GRUB loader GUI, move the arrow key up/down to highlight and select the Linux kernel and press e to edit the GRUB commands before booting.
2)Next, move the arrow key up/down and select the Linux kernel and press e again
3)Give a single space and then type the word single at the end of edited line.
4)Press the ENTER key and now you have a a similar GRUB screenshot as of follow.Keep the Linux kernel highlighted and press b to boot up with the single keyword, which will boot Linux into single user maintenance mode (You did nothing but to grant yourself the booting facility of a single user that is otherwise not visible while you enter the server as a root in a proper way)
5)Once the Linux boot up completely into single user maintenance mode, the Linux command prompt is ready to execute command. Type passwd to reset the forgotten root password – without prompting for old root password, just type a new root password and re-type to confirm it and you are done. You have successfully changed or reset the old password without having known the old one.
6)Type reboot or exit to reboot. On next boot up, you can login with the new root password!
This was for grub bootloader
Those who have LILO boot loader
- First reboot the server
- When you see the LILO: prompt type linux single and hit enter.
- This will log you in as root in single user mode.
- Once booting is complete, you can change your password with this passwd followed by the new password you want to assign
- You are done.
Filed under: Computer stuffs, LINUX Tagged: | HACK, LINUX




I guess this technique works only for Fedora and Red Hat !!
[...] http://somnathsingh.wordpress.com/2009/08/20/how-to-hack-root-password-in-linux/ [...]
This is just a way to log in to your system when you have lost your all password.
its easy and amazing learning a new type to hack password….
a guy having serious information would have his GRUB password protected, then the kernel line could not be edited, without the GRUB password.