Linux – Rescue disk how to reset root password and unblock yourself if locked out

Centos as test server Current situation – you are locked out, cant use WHM or SSH or anything else to login. You may or may not remember the password. In any case you can reproduce the following steps to unblock yourself. Use any other linux OS cd which can run live. I prefer FINNIX iso for such cases\ Mount your main disk. mount /dev/vda1 /mnt Reset password if needed to chroot /mnt passwd Enter new password for root and confirm\ Reboot and done. In case you have been locked out due to WHM cpanel:\ ...

July 23, 2018 · 2 min · Harshvardhan Malpani