Linux password recovery

Linux password reset

There are many ways for resetting a root password in Linux. Linux OS provides many options at the boot time. I am performing this whole attack  on Ubuntu 13.04 which is the latest one Linux distribution available in the market .
You will only need to go through these steps:-
1. Reboot Ubuntu and then select Advanced option for Ubuntu and press enter. If you didn't see this option you will then definitely seen Ubuntu, with Linux 3.0.0-12-generic (recovery mode) and just select this option and press enter.

grub menu list ubuntu






2.If you have seen advanced option for Ubuntu then after pressing enter you will see this.

recovery mode






Select second option i.e recovery mode and press enter . For users who have seen this option in the boot time go to step 3.
3. you will see a window like this :

recovery mode in linux












using arrow keys go to root option and then press enter. you will see a terminal will open in the bottom of
window. just type these commands step by step
i) mount -rw -o remount /
ii)passwd username (here you will give the username whose password you want to change. For single user machine only type passwd ).
iii)You will now need to enter new password and then confirm it by again typing the password.
iv)You will see a message confirming password updated successfully.
v)Type exit  .After typing the command the terminal disappears, now select resume option and press enter.
vi)log in with your new password :-) :-) . If you have any problem see the snapshot.


Linux password recovery

No comments:

Post a Comment