A use case for this procedure is, for example, if you don't know the root, or administrator password. Even in such a case, you can set a new administrator password by following the procedure introduced.
If you look at the second line from the bottom of the screen, there is a place that says "Press'e' to edit ...". By performing this operation, you can start the OS in a mode other than normal startup. Use this option to reset your password.
This screen is launched using the above options. Here you can edit the displayed options and boot the OS in the special modes mentioned above.
This is after editing. Looking at the 6th line from the top, you can see that the character string "rd.break" has been added. After that, you can start the OS in a password reset mode by pressing "Ctrl and x" at the same time. If there is a caveat, there is also an option called "ctrl + c", so be careful not to make a mistake.
After pressing Ctrl + x, the OS was booted into "emergency mode". It will be a little more if you come here. The password setting command in Linux is the "passwd" command, but it does some work to execute it.
The figure below shows the necessary work being performed continuously. For the meaning of each command, please refer to the URL of Red Hat Co., Ltd. mentioned above. After two exit operations, the system will automatically reboot. After restarting, the administrator password will be changed and it will take some time for the settings to be reflected. During the process of reflecting the above reset settings, the OS was restarted again, and finally the OS started. Try to log in with the password set above.
You have successfully logged in.