I am trying to change a password of a user via script. I cannot use sudo as there is a feature that requires the user to change the password again if another user changes th
printf "oldpassword/nnewpassword/nnewpassword" | passwd user