How to change a linux login password
Category : How-to
It’s easy to change your password in linux – don’t bother with the GUI’s which ship with distros such as Ubuntu, just hit the command line!
To change a linux users password, just type passwd and enter your new password:
# passwd Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
If you are not logged in as that user, you can run the command with sudo and the users name:
# sudo passwd james Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully