How to Hack Root Password in Linux

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

  1. First reboot the server
  2. When you see the LILO: prompt type linux single and hit enter.
  3. This will log you in as root in single user mode.
  4. Once booting is complete, you can change your password with this passwd followed by the new password you want to assign
  5. You are done.

Advertisement

5 Responses

  1. I guess this technique works only for Fedora and Red Hat !! :(

  2. This is just a way to log in to your system when you have lost your all password.

  3. its easy and amazing learning a new type to hack password….

  4. a guy having serious information would have his GRUB password protected, then the kernel line could not be edited, without the GRUB password.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.