> As I wrote in my previous message, for example, the only way to add a
> user or change a password from a program and non-interactively, is by
> hacking with TIOCNOTTY and then piping the password twice into
> htpasswd.

only?  you can certainly add a new user via

  use Digest::MD5;


  my $user  = 'user';
  my $realm = 'realm';
  my $pass  = 'pass';


  print "$user:$realm:", Digest::MD5::md5_hex("$user:$realm:$pass"), "\n";

once you know the algorithm, parsing the file and changing passwords with
perl is just as simple :)

--Geoff

Reply via email to