How to reset root password in RedHat

Below you will find easy procedure which allow you to reset forgotten root password.

1.  Boot system until you will see ” Press any key to enter menu”.

2. Press Space or any other key (list of available kernel version will show).

3. Highlight desired kernel version and press ‘e‘.

4.  Choose line starting with kernel /vmlinuz-… and press ‘e’.

5.  At the end of the line press Space and add word “single” or “init 1” then press Enter

6.  Boot server by pressing ‘b‘.

7. Using command ‘passwd‘ set new root password.

8. Reboot server using ‘reboot‘ command.


Leave a Response