How to Change User Password in Linux Server
Time : 2022-08-24 16:32:25
Edit : Jtti
As a Linux system administrator (admin or root), you can change the password of any user on the server.
The operation steps are divided into three steps:
1. Log in to Linux:
Log in or "su" or "sudo" to the "root" account on Linux, run: and enter your password. sudo -i.
2. Run the command:
and then type to change the password for a specific user. For example, run or change the password of user "root" or "administrator". Or type to change the current user's password. You will be prompted to enter your password twice. passwdusernamepasswdrootpasswdadministratorpasswd.
3. Use the new password to log in:
Use the new password to log in to the server again to verify.
Previous one:Cloud server self-service reset password