I forgot my password and can't log in! I will write down how to deal with such a situation with the meaning of self-discipline.
OS:RHEL7 Connection terminal: teraterm
① Execute the following command
# sudo su -
To explain, sudo is a promotion command su is a user switching command
How to force promotion to root
(2) After becoming root with the above command, execute the following command.
# passwd root
New Password :Enter new password
The above is the remedy.
I hope it will be useful for those who have the same problems.
Recommended Posts