Reset the Root Password

To access that root shell, follow these steps:

Reboot the system.

To reset password you need to:

this can take a while other option is to use

load_policy -i

this causes Selinux policy to be loaded and now we can use Selinux commands

 restorerecon -FvR /etc/shadow

This relabels /etc/shadow correctly. You can exit the server and reboot as it will start to generate errors

when making changes to grub you need to edit the /etc/default/grub once you are done you need to regenerate the grub config file

 grub2-mkconfig -o /boot/grub2/grub.cfg