Wednesday, 18 December 2013

How to recover root password on Linux step by step.

7 easy steps to reset forgotten root password on Red Hat Enterprise Linux, CentOS Linux or Fedora Linux.

1. Boot the system and when you see the following message "Press any key to enter the menu" -
 press any key.

2. Pres e in order to edit commands before booting.

3. Highlight the list item with vmlinuz in it by using the arrow keys and press e. 

4. Now type single or init 1 at the end of the line.

5. Then press enter and b to boot the system with the new argument.

Now it's time to change the password:

6. Type passwd 

### Shell Commands ###
# passwd
# Enter new UNIX password:
# Retype new UNIX password:
# passwd: password updated successfully

7. Type reboot to restart the system.

For any query please feel free to contact me my email ID is - sashwatkatore@gmail.com.

No comments:

Post a Comment