1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

migration of .htpasswd users?

Discussion in 'Plesk for Linux - 8.x and Older' started by jtrefet, Jul 10, 2006.

  1. jtrefet

    jtrefet Guest

    0
     
    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.
     
  2. dm__@

    dm__@ Guest

    0
     
    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
    
     
Loading...