Previous Topic

Next Topic

Book Contents

Managing Web Protection For Domain Directories With Protdir.exe Utility

Protdir.exe utility allows you to manage web protection for domain directories. Using this utility, you can:

Protdir.exe is located in %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

--create or -c

<dir_name>

creates a protected directory

To create web-protected directory Protected_Dir of somewhere.com domain:

protdir.exe --create Protected_Dir -domain somewhere.com

--update or -u

<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

--remove or -r

<dir_name>

deletes a protected directory

To delete web-protected directory Protected_Sample:

protdir.exe --remove Protected_Dir -domain somewhere.com

--help or -h

 

displays help on the utility usage

To see help file on the utility usage:

protdir.exe --help

Available options:

Option

Parameter

Note

Example

-domain

<domain_name>

a domain name (required)

To create web-protected directory Protected_Sample on somewhere.com domain:

protdir.exe --create Protected_Dir -domain somewhere.com

-subdomain

<subdomain_name>

subdomain name without domain part

To create web-protected directory Protected_Sample on subdomain1.somewhere.com subdomain:

protdir.exe --create Protected_Dir -domain somewhere.com -subdomain subdomain1

-title

<string>

a directory header text

To create a directory header text:

protdir.exe --update Protected_Dir -domain somewhere.com -title 'Sample directory'

-passwd

<password>

sets a user password

To set a password for user of web-protected directory:

protdir.exe --update Protected_Sample -domain somewhere.com -update_user johndoe -passwd Password1

-add_user

<login_name>

adds a user with the specified name

To add user johndoe:

protdir.exe --update Protected_Dir -add_user johndoe

-update_user

<login_name>

updates a user with the specified name

To provide protected directory user with new login name

protdir/exe --update Protected_Dir -update_user johndoe -user_name johndoe_new

-remove_user

<login_name>

removes a user with the specified name

To remove protected directory user:

protdir/exe --update Protected_Dir -remove_user johndoe

-user_name

<login_name>

sets a login name (may be set/specified with the 'update_user' option)

To provide protected directory user with new login name

protdir/exe --update Protected_Dir -update_user johndoe -user_name johndoe_new

-dir_name

<dir_name>

sets the protected directory name (may be set/specified with the 'update_user' option)

To set new protected directory name:

protdir/exe --update Protected_Dir -dir_name Protected_Dir_New

See Also

Creation Utilities

Configuring Server With Init_conf.exe Utility

Changing Control Panel Appearance With Server_pref.exe Utility

Managing IP Addresses With Ipmanage.exe Utility

Client Account Management With Client.exe and Client_pref.exe Utilities

Managing Domains With Domain.exe and Domain_pref.exe Utilities

Managing Web Users With Webuser.exe Utility

Managing Databases With Database.exe Utility

Managing Mail Accounts With Mail.exe Utility

Managing Mailing Lists With Maillist.exe Utility

Managing Spam Filtering With Spamassassin.exe Utility

Managing Anonymous FTP Service With Anonftp.exe Utility

Managing Subdomains With Subdomain.exe Utility