On Sun, 3 Jul 2022 20:26:45 +0600
Ahmad Ismail <ismail783@xxxxxxxxx> wrote:
> Who writes to dbm password files? I mean how are new users registered?
>
> If apache authenticates using `mod_auth_basic` or `mod_auth_digest`
> then someone must put the users with their credentials there.
>
> Best regards,
> Ahmmad Ismail
>
I setup users over SSH with Python:
subprocess.run(['ssh', 'me@xxxxxxxxxx', 'htdbm -bt /usr/local/apache2/var/users.dbm', email, pword,
'{},'.format(alias)])
Works really well. You will need to make yourself the owner of the dbm
file and www-data as the group.
Simon
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx