On Sun, 3 Jul 2022 20:26:45 +0600
Ahmad Ismail <[email protected]> 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', '[email protected]', '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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to