Using pw adduser to set password in a script

2003-07-01 Thread Jez Hancock
I'm attempting to use pw adduser to add a new user to the system and would like confirmation that the following is the correct way to set the user's password at the same time: echo password | \ pw adduser -q -h - -u user -g group -s shell -d /home/user -c comment Can anyone also tell me the

Re: Using pw adduser to set password in a script

2003-07-01 Thread lewiz
On Tue, Jul 01, 2003 at 07:12:49AM +0100, Jez Hancock wrote: I'm attempting to use pw adduser to add a new user to the system and would like confirmation that the following is the correct way to set the user's password at the same time: echo password | \ pw adduser -q -h - -u user -g group

Re: Using pw adduser to set password in a script

2003-07-01 Thread Uwe Doering
Jez Hancock wrote: I'm attempting to use pw adduser to add a new user to the system and would like confirmation that the following is the correct way to set the user's password at the same time: echo password | \ pw adduser -q -h - -u user -g group -s shell -d /home/user -c comment Can anyone also

Re: Using pw adduser to set password in a script

2003-07-01 Thread Jez Hancock
Hi Uwe, Thanks for the reply. On Tue, Jul 01, 2003 at 09:25:28AM +0200, Uwe Doering wrote: Here is what I use: echo 'password' | \ pw useradd -q -h 0 -n user -g group -s shell -d /home/user \ o -c 'comment' -m Note that feeding the password to 'pw' via the command line (with