You need to get into Single Mode.
To do this, when loading the OS, press the "E" key and replace the "ro" parameter with "rw init=/sysroot/bin/sh".
Then, on the command line, run the following commands one by one:
chroot/sysroot
passwd root
touch/.autorelabel
exit
reboot