create-protected-directory

Adds protection to a directory owned by some virtual server This command sets up protection for a web directory under a virtual server selected with the --domain flag. The directory to protect is set with the --path flag, which can be followed by either a full path or one relative to the domain’s home directory. The optional --desc flag can be used to set the description for the directory shown when an end user accesses it via a web browser. The password hashing format to use can be changed from the default with one of the flags --crypt, --md5, --sha1 or --digest.

Adds protection to a directory owned by some virtual server#

This command sets up protection for a web directory under a virtual server selected with the --domain flag. The directory to protect is set with the --path flag, which can be followed by either a full path or one relative to the domain’s home directory.

The optional --desc flag can be used to set the description for the directory shown when an end user accesses it via a web browser. The password hashing format to use can be changed from the default with one of the flags --crypt, --md5, --sha1 or --digest.

Command line help#

virtualmin create-protected-directory --domain name
 --path directory
 [--desc "description"]
 [--crypt | --md5 | --sha1 | --digest]

Source: https://www.virtualmin.com/docs/development/api-programs/create-protected-directory/

  • virtualmin, domain, user, command line, script, create, protected, directory
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Pre and Post Domain Modification Scripts

Virtualmin allows the use of custom scripts (Shell, Perl, Python and etc.) to automate tasks...

OS Support

Virtualmin runs on top of Webmin. Webmin works on almost every UNIX-like OS, so with some manual...

Professional Features

Virtualmin GPL is already an extremely powerful and flexible virtual hosting control panel, so...

How to Configure Secondary DNS

This guide provides administrators with a quick overview of setting up automatic DNS secondary...

How to Configure Cloudflare DNS

For users looking to integrate Cloudflare with Virtualmin Pro, the process is straightforward and...