1. Boot on the Grub screen that appears, press E, for example to see:
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvu3vubnlzb29uyq==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">
2. Use the up and down keys to select the second item (may not be the same). Then press the E key to edit, enter a space and single press the ENTER key. The results for example are as seen in:
3. Be taken back to the edit mode screen (for example, as seen)
4. Select the row again and press the B key, and GRUB will boot into single-user Linux mode.
At the end of the load, you will face a shell prompt similar to the following:
sh-2.05#
Now change the root command, type the following commands (for example, as seen):
sh-2.05# passwd Root
5. You will then be asked to enter a new password. Password will be changed after the end. Then type reboot to boot again.
This will be OK.
[Linux] RedHat Linux forgot Rootpassword How to set it up again password