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
For me this worked in a vagrant VM:
sudo /usr/bin/passwd root <