• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

migration of .htpasswd users?

J

jtrefet

Guest
I have a protected directory that is not controlled by plesk. I want to have the directory controlled from within plesk but have a couple hundred users to add.

is thee any way to automate a migration from the .htpasswd file into the psa database?

any help would be greatly appreciated.
 
You may use API-CLI for automation. Adding user to the protected directory is as easy as

Code:
/opt/psa/bin/protdir -u /your-protected-dir -domain my.domain.com -add_user username -passwd password -passwd_type encrypted
 
Back
Top