While booting up your machine, select the existing kernel and press ‘e’
Replace the entry ‘ro‘ with ‘rw init=/sysroot/bin/sh’
Press ctrl+x to save and start single user mode using the bash shell we mentioned above.
Run the below command and change password after that:
Update selinux parameters as below :
Now reboot your machine. It may take some time to apply the apply the changes while booting up.