I am trying to add 1200 users and initial passwords using htpasswd. I have
the shell script to set up the users but the htpasswd command prompts for
password and a confirmation. ie
command:
htpasswd "directory" "username"
result:
enter password:
I want to feed the password prompt automatically. I thought that the
following would work
htpasswd "directory" "username" <"input file"
Where input file contained 2 lines with the password. It does not work.
Any help will be appreciated.
Thanks,
Shawn