This is a step by step video tutorial showing how to reset a forgotten root password in CentOS 7/8 and Red Hat Linux 7/8 running systemd.
The Steps are as follows:
1. Interrupt System boot up count down by pressing down arrow key on the keyboard
2. Edit the Kernel Parameters: Highlight the kernel line and press e
3. Find the line that starts with linux16 and press the end key on keyboard to go the end of that line.
4. Append rd.break at the end of that line
5. Press ctrl-X to reboot the system
6. At command terminal remount /sysroot as read/write
7. run chroot command
8. Change the password
9. create the .autorelabel file
10. exit twice to reboot the system and login with the new password