Changing a Linux User Password With a Single Command

  Linux

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

LEAVE A COMMENT