utility allows you to manage web protection for domain directories. Using this utility, you can:Protdir.exe
is located in Protdir.exe %plesk_dir%admin\bin\. Available commands and options are listed in tables below.
Usage: protdir.exe command <dir_name> [options]
Example of usage:
protdir.exe --create Protected_Dir -domain domain1.com -add_user MyGuest -passwd "MyPass"
Available commands:
Command |
Parameter |
Action |
Example |
|
<dir_name> |
creates a protected directory |
To create web-protected directory
|
|
<dir_name> |
updates a protected directory: renames the directory, edits the directory title, manages users |
Examples of updating various parameters of web-protected directory are provided further down the table |
|
<dir_name> |
deletes a protected directory |
To delete web-protected directory
|
|
|
displays help on the utility usage |
To see help file on the utility usage:
|
Available options:
Option |
Parameter |
Note |
Example |
|
<domain_name> |
a domain name (required) |
To create web-protected directory
|
|
<subdomain_name> |
subdomain name without domain part |
To create web-protected directory
|
|
<string> |
a directory header text |
To create a directory header text:
|
|
<password> |
sets a user password |
To set a password for user of web-protected directory:
|
|
<login_name> |
adds a user with the specified name |
To add user
|
|
<login_name> |
updates a user with the specified name |
To provide protected directory user with new login name
|
|
<login_name> |
removes a user with the specified name |
To remove protected directory user:
|
|
<login_name> |
sets a login name (may be set/specified with the 'update_user' option) |
To provide protected directory user with new login name
|
|
<dir_name> |
sets the protected directory name (may be set/specified with the 'update_user' option) |
To set new protected directory name:
|