Friday, November 15, 2013

How to reset/break root and other user's password in Ubuntu 12.04 & 12.10


Do the following procedure to Reset:


1) Restart Machine 

2) HOLD Shift Button ( You will get message “GRUB Loading“)

3) Select the Kernel ( Don’t select Recovery Mode)

4) Press the e key to edit the entry

5) Select the line starting with the word “linux”

6) Append the init=/bin/bash to the end of the linux line.

(I have to append "rw init=/bin/bash" on one 12.04.5 LTS Sony machine and the step 7 was not needed) 7) Now Press F10 to boot with provided option.

Now You need to mount File System ( / ) into Read-Write Mode

8) Type the command
#mount -o remount,rw /

Now execute passwd command to Reset root password.
9) For root User passwd 

Other User passwd

No comments:

Post a Comment