Similar question was: Change password from shellscript
I want to make a shellscript with the ability to change a
userspassword. I can't get it to work properly because when i say
passwd user i will have to enter the password is there a way or a
switch todo this in a style like passwd user password
I want to make a script (which I am at present unable to do) that does this:
<give the password from the script>
exit from script
Note: su insists on running from a terminal window.
How do you do that?