• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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