Don’t be so much worry or regret, as you might able to easily reset a Linux lost password in a short while!
I’ve personally tested this Linux trick in Red Hat Linux 9 default installation environment. So, I believe the same trick can be applied on most Linux distribution as well.
A step-by-step Linux password hacking trick – How to reset Linux forgotten root password?
Reboot the Linux machine by pressing the hardware reset button. In a default Linux installation, pressing CTRL + ALT + DEL hotkey might able to reboot Linux immediately too.
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:Next, move the arrow key up/down to select the Linux kernel and press
e
again:Append a single space followed by the word
single
at the end of edited line, as shown in this snapshot:After pressing ENTER key, you should now have 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:Once the Linux boot up completely into single user maintenance mode, the Linux command prompt is ready to execute command. Now, you can 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:Done. Type
reboot
or exit
to reboot. On next boot up, you can login with the new root password!So, isn’t it easy to hack or reset a forgotten root password in Linux? Yes, this Linux trick works well on Red Hat Linux Enterprise Linux 4 too. However, bear in mind that the trick will only valid for a default Linux installation or without strengthening Linux security!
So Enjoy The Hack....