In a stable system where no new kernels or OSes are installed we will rarely have to modify GRUB2. But it might come in handy at some point if we forget the root password and our user does not have sudo rights to reset it. In such a case we can proceed in 2 different ways: booting with installation media or with GRUB2.
If we decide to use the installation media we would:
1. boot the system from the CD/DVD or other installation media
2. choose “Troubleshooting” in the menu
3. choose “Rescue RHEL system”
4. chroot /mnt/sysimage
5. change root password with passwd
6. skip the SELinux relabeling of the disk with rm -f /.autorelabel
7. reboot
If we use the GRUB2 option we would: