|
Below are the steps to reset root password in Linux 7 ? 1. Reboot your machine and at Grub OS Selection Menu, choose the required OS which password needs to reset and press E to edit.
|
![]() |
| 2. Edit the kernel line and replace ro to rw and also append init=/sysroot/bin/bash |
![]() |
![]() |
| 3. Now press Control + X to boot the system. |
![]() |
|
4. After getting the # Prompt, issue following command to reset the root password of the system.# chroot /sysroot # passwd |
![]() |
| 5. Now reboot the system and log in with the password you set. |
| That’s All ! |




