server_filesharing: File Sharing
The server_filesharing
utility is used for configuring file sharing functionality in Plesk. File sharing allows the administrator and Plesk users to share files with each other or anyone on the Internet. Note that file sharing is unavailable on customer subscriptions.
Usage
Example
The following command allows users to publish files on the Web and specifies the pubfiles
subfolder for storing their public files:
Commands
Command | Parameter | Description | Example |
---|---|---|---|
|
|
Updates file sharing settings. |
To set the root folder ( plesk bin server_filesharing --update -fsPrefix shfiles |
|
|
Displays current file sharing settings. |
To view current file sharing settings: plesk bin server_filesharing --info |
|
|
Displays help on the use of the utility. |
To view a help page for the utility: plesk bin server_filesharing --help |
Options
Option | Parameter | Description | Example |
---|---|---|---|
|
|
Specifies the domain for storing all shared files. |
To set the domain ( plesk bin server_filesharing --update -fsDomain test.tst |
|
|
Specifies the root folder. Web Folders with personal, shared and public files will be created inside this folder. |
To set the root folder ( plesk bin server_filesharing --update -fsPrefix shfiles |
|
|
Enables secure links to files and folders. If |
To enable HTTPS links to shared files and folders: plesk bin server_filesharing --update -fsLinksAsHttps true |
|
|
Allows users to publish files on the Web for public access to them. |
To allow users publishing their files on the Web: plesk bin server_filesharing --update -fsPublicFolderEnabled true |
|
|
Specifies the folder for storing public files. Only authorized Plesk users can access this folder and edit the files there. |
To set the public files folder ( plesk bin server_filesharing --update -fsPublicFolder pubfiles |
|
|
Specifies the URL that website visitors should use for read-only access to public files. This URL should be the name of your webspace. |
To set the URL ( plesk bin server_filesharing --update -fsPublicUrl test.tst |
|
|
If |
To allow users put their files in the password protected folder: plesk bin server_filesharing --update -fsPartnerFolderEnabled true |
|
|
Specifies the name for the password protected folder. |
To set the password protected folder ( plesk bin server_filesharing --update -fsPartnerFolder protected |
|
|
Specifies the username for access to the password protected folder. |
To set the username ( plesk bin server_filesharing --update -fsPartnersLogin user1 |
|
|
Specifies the password for access to the password protected folder.. |
To set the password ( plesk bin server_filesharing --update -fsPartnersPassword passwd |