A typical application suitable for VPS of various centos versions to change the root password for a single user mode is the "Password setting" of the root user ". For some Linux systems for temporary or experimental purposes, users are often changed, while the root user's password may be lost. in this case, you can change the root user's password in single-user mode. Sh-3.1 # passwdChangingpasswordforuserroot.
Suitable for changing the root password of VPS in various centos versions
A typical application of single-user mode is the "Password setting" of the root user ". For some Linux systems for temporary or experimental purposes, users are often changed, while the root user's password may be lost. in this case, you can change the root user's password in single-user mode.
sh-3.1 # passwdChanging password for user root.New UNIX password:Retype new UNIX password:passwd: all authentication tokens updated successfully.
After the system enters the single-user mode, run the passwd command at the "#" prompt to update the password of the root user, after the system restarts, you can use the updated password to log on to the system as the root user.