How do I reset the root user account password forgotten in CentOS/RHEL 7? (1)
Have you ever encountered this situation: cannot you remember the user account password on Linux? If you forget the root user password, the situation is even worse. You cannot perform any changes for the entire system. If you forget the user password, it is easy to use the root account to reset the password.
But what if you forget the root account password? You cannot use a user account to reset the root account password, because the user account is generally not authorized to perform such tasks.
Reset the root user account password forgotten in CentOS 7 and RHEL 7
In case you encounter such a situation, this Guide Article can help you get rid of such difficulties. This article describes how to reset the password of RHEL 7 and CentOS 7 accounts.
Early in the morning, I opened the RHEL 7 Linux server and found it locked. Either I screwed up the password I changed the previous night or I forgot it.
Forgotten Root Account Password
So how can I be better now? I should log on using a user account. Should I try to change the root account password?
Only the root user can set the password