2007/4/4, Vince <[EMAIL PROTECTED]>:
> OK..thanks for the heads up about responding....
> The problem isnt adding the user....i ve done that......the problem is
> creating the password for the user as i tried to say in the first
Assuming you dont mean actually generating the password maybe you need the
flag to pw
or more specificly (from the manpage)
pw will prompt for the user's password if -h 0 is given,
nominating stdin as the file descriptor on which to read
the password. Note that this password will be read only
once and is intended for use by a script rather than for
so something like
echo PASSWD | pw add user wibble -h 0
will create a user wibble with password of PASSWD
echo $PASSWORD | pw add user $USERNAME -h 0
setting $PASSWORD and $USERNAME as needed.
> thanks kevin,
> email@example.com mailing list
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"
Thanks Vince, that was exactly what i was looking for.....i read the man
page and saw the -h or th -H ir it is encrypted.....but i copuldnt make it
work, didnt know how....
your example lightens up everything....greatttt
i will try it as sonn as i get home...
firstname.lastname@example.org mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"