Results 1 to 10 of 12

Thread: Resetting root password without login

Threaded View

  1. #1
    Member xX_Spiidey_Xx's Avatar
    Join Date
    Jan 2010
    Location
    /dev/urandom
    Posts
    256

    Default Resetting 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:

    = - = - = - = - = - = - = - = - = - = - =

    Reboot your computer. Wait for the grub screen... Press <ESC> when you're prompted.

    Highlight the first option.

    Press <e>.

    Highlight the kernel line.

    Press <e>.

    Press <TAB>. You'll get an error message.

    Press <ESC>.

    Press <e> again.

    Using your arrow keys, scroll back and change ro to rw

    At the end of the line add: init=/bin/bash

    Press <Enter>

    Press <b>

    Type at the prompt: passwd root

    Enter the new password twice.

    Press <CTRL>+<d> to cause a nice Kernel Panic. This will cause your system to hang.

    Press and hold your power button till it shuts down. Power back up and let it boot into BackTrack normally.

    Log in as root with your new password.
    Last edited by xX_Spiidey_Xx; 02-04-2010 at 10:33 AM. Reason: More housekeeping...
    thou shalt treat all computers as thou wouldst treat thyself, for thou art the creator of thine own problems.

Similar Threads

  1. Making a user that has the root appearance BT4
    By Soultaker666 in forum Beginners Forum
    Replies: 13
    Last Post: 02-10-2010, 02:22 AM
  2. Kismet running in root
    By arcutha in forum Beginners Forum
    Replies: 6
    Last Post: 02-05-2010, 12:18 PM
  3. help with password for bt4 in vmware
    By iguana in forum Beginners Forum
    Replies: 1
    Last Post: 01-20-2010, 07:52 PM
  4. Password Manager
    By .rtkd in forum Tool Requests
    Replies: 0
    Last Post: 01-15-2010, 07:50 PM
  5. Replies: 2
    Last Post: 01-12-2010, 05:32 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •