How to change passwords for users on Linux server
As a Linux system administrator (administrator or root) you can change the password for any users on your server. To change a password on behalf of a user:
- First, sign on or “su” or “sudo” to the “root” account on Linux, run: sudo -i and enter the password.
- Then type passwd username to change a password for a specific user. For example, run "passwd root" to change the password of user "root". Or type passwd to change your own password. The system will prompt you to enter a password twice.
- Log into your server again using the new password for verification.