how do I (non-interactively) change a users password in a script ?

2006-01-16 Thread user
/bin/sh script. Need to change a users password within the script based on a file of user/pass I am feeding the script. Easy. Except the passwd command does not seem to be able to take a password as an argument - I don't think that the passwd command can run non-interactively. So how is this

Re: how do I (non-interactively) change a users password in a script ?

2006-01-16 Thread Bill Campbell
On Tue, Jan 17, 2006, user wrote: /bin/sh script. Need to change a users password within the script based on a file of user/pass I am feeding the script. See ``man pw'', in particular the ``-h fd'' option. .. Except the passwd command does not seem to be able to take a password as an argument

Re: how do I (non-interactively) change a users password in a script ?

2006-01-16 Thread Garrett Cooper
user wrote: /bin/sh script. Need to change a users password within the script based on a file of user/pass I am feeding the script. Easy. Except the passwd command does not seem to be able to take a password as an argument - I don't think that the passwd command can run non-interactively. So