- In the boot grub menu, press e to edit boot options.
- Edit theline of boot args and change "ro" with "rw init=/sysroot/bin/sh".
- Press Control+x to start on single user mode.
In single user mode
chroot /sysroot
passwd root
touch /.autorelabel # Update selinux information
exit
reboot