passwd
--You will be asked to enter a new password, so enter it. --After completion, log out once and check if you can log in with a new password.
[Reference article] [Technical memo] Change the password of the root user in CentOS 7
Unlike when changing passwords, I can't do anything because I have forgotten my current password. What to do when that happens. Is it easy to understand if you refer to the following article in CentOS 7 series? [Reference article] How to reset the password when you forget the root user password in CentOS7 / Redhat
Recommended Posts