Re: htpasswd question

From: Duane Wessels <wessels@dont-contact.us>
Date: Mon, 6 Mar 2000 19:06:45 -0700

On Mon, 6 Mar 2000, Jim Chivas wrote:

> Greetings:
>
> I am trying to make the 'htpasswd' program read a list of ids and
> passwords from a file. I have tried several different ways:
>
> 1. htpasswd -b passwdfile < test file
>
> 2. read file for id passwd
>
> htpasswd -b passwdfile $id $passwd
>
> done
>
> 3. cat file | htpasswd -b passwdfile
>
> The above syntax is not exactly correct but should give you an idea of
> what I tried.
>
> Is it possible to get 'htpasswd' to read from a file?

You'll probably have to hack it.

htpasswd uses the getpass() function, which reads from /dev/tty, not stdin.

Duane W.
Received on Mon Mar 06 2000 - 19:09:34 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:51:56 MST