How to create script to change a user's password? passwd expects input from keyboard.
I need to create a script which changes the password for a user:
The problem is passwd now expects input from the keyboard rather than the script file. I need the script to be non-interactive so how would I script this so you would not have to manually enter the password at the prompt? BTW, it's okay for the password to be viewable in the file, encryption is not necessary for my usage. Thanks for any help!
Last edited by Arodef; 03-02-2005 at 09:27 PM.