1. During the boot process, press the E key at the Grub2 menu.
4. Add the following to the end of the line.
"init=/bin/sh".
6. Once the system is booted, you will be at the root user in single user mode. But this is a read only file system. Validate this by using the following command. This should fail. # touch /tmp/test
7. You need to mount the / filesystem. Use the command as follows.
# mount -o remount, rw /
# touch /tmp/test
9. Change the password for root.
# passwd
10. Touch the following file as a fix file process. This is for SELinux.
# touch /.autorelabel
11. Finally start the normal boot process. In some references you can use the reboot command but in my testing, it was not as stable.
# exec /sbin/init
12. Now login with the new password!