• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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