Changing Linux User Password in One Command Line
www.systutorials.com › changing-linux-usersAug 25, 2013 · In addition, on modern Linux with sufficiently new passwd, you can use the --stdin option to let passwd accept a password from the STDIN instead of asking for the new password twice. So to change the password in our example, we just execute this one command: # echo "linuxpassword" | passwd --stdin linuxuser. on modern Linux. (Thanks to DAVID for this tip)