How To Reset Root Password On CentOS 7

 

1 – In the Boot Grub Menu Select Option to Edit


2 – Go to the line of Linux 16 and change ro with “rw init=/sysroot/bin/sh”



3 – Now press “Control+x” to start on single-user mode


4 – Now access the system with this command

chroot /sysroot

5 – Reset the password

passwd root

6 – Exit Chroot

exit

7 – Reboot your system

reboot
That’s it. Enjoy.



Comments

Popular posts from this blog

Steps_to_Install_Magento_2.4.4_on_Ubuntu_20.04

SVN Incremental Backup