Linux Tutorial - Change Your Password
If you wish to change a password for a username, you can do so
using the passwd Linux command.
Start by connecting to the
remote server. Next, log in as the user who's password you wish to modify.
Changing password for username
Old password: ********
Enter the new password (minimum of 5, maximum of 8 characters)
Please use a combination of upper and lower case letters and numbers.
New password: ********
Re-enter new password: *********
Simply follow the prompts to make the change.
Note that passwords which would be easy to guess or could fall
victim to a dictionary based attack will likely not be accepted
for obvious security reasons.
Include some numeric values and alternate between uppercase
and lowercase to make it secure.
The passwd command can obviously not be used to recover
lost passwords, only to change one you know.