Hi
I am trying to achive something similar to the following command
echo new-password | passwd user --stdin
However when I try this I get an error saying only root is allowed passwd.
If I execute the same command as root this works.
I am disabling root ssh into the machine and am running this command piggybacked on ssh
Is there some other command I can use to change this users password assuming i am logged in as that user?