Connect to the appropriate server console. Reset the server and press the e button on the first line at the time of initial boot (GRUB) before automatic boot.
In the next step, go to the line that starts with the phrase Linux16 and find ro and change it to rw init=/sysroot/bin/sh. Then press the Ctrl and x buttons on the keyboard at the same time. (Ctrl + x)
If you have done the previous steps correctly, you will be logged in without being asked for a password. Now run the following command:
To change the password, run the passwd root command, type the new password, and press Enter. Type the new password again and press Enter to apply.
After performing the above step, run the following command to update the SELinux parameters:
Finally, enter the following command to exit and then restart the system to apply the changes:
7 days a week, 24 hours a day