The protdir
utility is used to manage password protection of Web
directories on domains through CLI. By using this utility, you can
perform the following tasks:
- Creating, renaming, and removing protected web directories
- Adding and removing users authorized to access password-protected web
directories - Editing login information of users authorized to access
password-protected web directories
Usage
protdir <command> [<directory_name>] [
<option_1> [<param>]
[<option_2> [<param>]]
... [<option_N> [<param>]]
]
Example
The following command creates password-protected directory
Protected_Dir
in the /httpdocs
directory on domain
example.com, adds the password-protected directory user JDoe, and
sets the user password to userpass.
plesk bin protdir --create Protected_Dir -domain example.com -add_user JDoe -passwd userpass -type nonssl
Commands
Command | Parameter | Description | Example |
---|---|---|---|
--create or -c
|
<directory_name> |
Creates a password protected directory on a domain. If the directory already exists on the domain, the command Requires the |
To create password-protected directory plesk bin protdir --create Protected_Dir -domain example.com -type nonssl or plesk bin protdir -c Protected_Dir -domain example.com -type nonssl… |