Changing a Linux User Password With a Single Command

It is often useful to reset a user password with a single command. You can change the password from a local system with the following:

# echo "userpassword" | passwd --stdin linuxuser

jhudgins has written 34 articles