Running Welcome


Monday, July 15, 2013

Resetting LINUX OS root password without login

Alright folks, let's say you've lost your root password, or simply cannot log in as root after a hard drive install, and have no privileged users on your system. I'm about to show you how to get back in the game as root with a quick and dirty password-change hack.

For this tutorial, everything that is italicized is a user action. Anything in <angle brackets> is a keystroke. If it has a + beside it, it means press the keys at the same time.

## Changing the root password:

=======================================================================

  1. Reboot your computer. Wait for the grub screen... Press <ESC> when you're prompted.
  2. Highlight the first option.
  3. Press <e>.
  4. Highlight the kernel line.
  5. Press <e>.
  6. Press <TAB>. You'll get an error message.
  7. Press <ESC>.
  8. Press <e> again.
  9. Using your arrow keys, scroll back and change ro to rw
  10. At the end of the line add: init=/bin/bash
  11. Press <Enter>
  12. Press <b>
  13. Type at the prompt: passwd root
  14. Enter the new password twice.
  15. Press <CTRL>+<d> to cause a nice Kernel Panic. This will cause your system to hang.
  16. Press and hold your power button till it shuts down. Power back up and let it boot into BackTrack normally.
  17. Log in as root with your new password.

Source:
http://www.backtrack-linux.org/forums/showthread.php?t=799

No comments :

Post a Comment

Silahkan kasih komentar atau pertanyaan Anda.

Powered by Hamami InkaZo

Free Domain Name