1 – In the boot grub menu select option to edit.

reset root password

2 – Select Option to edit (e).

reset root password

3 – Go to the line of Linux 16 and change ro with rw init=/sysroot/bin/sh.

reset root password

4 – Now press Control+x to start on single user mode.

reset root password5 – Now access the system with this command.

:/# chroot /sysroot

6 – Reset the password.

:/# passwd root

7 – Update selinux information

:/# touch /.autorelabel

8 – Exit chroot

:/# exit

9 – Reboot your system

:/# reboot