[LINUX] [CentOS] When you change or forget the root password

When you want to change the root password

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

When you forget the root password

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

[CentOS] When you change or forget the root password
When I tried to change the root password with ansible, I couldn't access it.
When you forget your admin screen username / password in Django
When you want to change the HTTP headers of Flask's test client
[Android] Summary of republishing procedure when you forget the application signature key
When you want to update the chrome driver.
When you don't know the SCP when you port forward
How to remember when you forget a word
When the variable you want to superscript with matplotlib is two or more characters