Monday, December 9, 2013

Reset Root password of Debian Squeeze if forgotten

Step 1.
     Boot to the GRUB menu. Then, press <e> (for edit) before Linux has a chance to boot.

Step 2.
     A new window with Blue Boundary will open.Find a line starting with...
        linux /vmlinuz-2.6.32-5-686 root=uuid=.........(Like this)
    
Step 3.
     Go to theat line by arrow key and press End button to go at the end of this line.
     Now hit the spacebar once, if necessary, to add a space, and then add one of the folllowing:

               init=/bin/bash     
Step 4.
     Now press (CTRL + x) to boot.

Step 5.
     Now the computer will proceed to boot to a root prompt.
     At this point, the root file system is still mounted read-only, so enter the following command:

               # mount -n -o remount,rw /

Step 6.Then type:

               # passwd

Enter your new password. Retype if asked to confirm.
Then restart the machine by typing:

               # reboot

No comments:

Post a Comment