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
server_filesharing <command> 
<option 1> <param> [<option 2> <param>] ... [<option N> <param>]
Example

The following command allows users to publish files on the Web and specifies the pubfiles subfolder for storing their public files:

plesk bin server_filesharing --update -fsPublicFolderEnabled true -fsPublicFolder pubfiles
Commands
Command Parameter Description Example

--update or -u

 

Updates file sharing settings.

To set the root folder (shfiles) for storing all subfolders with shared files:

plesk bin server_filesharing --update -fsPrefix shfiles

--info or -i

 

Displays current file sharing settings.

To view current file sharing settings:

plesk bin server_filesharing --info

--help or -h

 

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

-fsDomain

<value>

Specifies the domain for storing all shared files.

To set the domain (test.tst) for file sharing:

plesk bin server_filesharing --update -fsDomain test.tst

-fsPrefix

<value>

Specifies the root folder. Web Folders with personal, shared and public files will be created inside this folder.

To set the root folder (shfiles) for storing all subfolders with shared files:

plesk bin server_filesharing --update -fsPrefix shfiles

-fsLinksAsHttps

true|false

Enables secure links to files and folders. If true, all links will be accessible through HTTPS.

To enable HTTPS links to shared files and folders:

plesk bin server_filesharing --update -fsLinksAsHttps true

-fsPublicFolderEnabled

true|false

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

-fsPublicFolder

<value>

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 (pubfiles) for storing users' shared files:

plesk bin server_filesharing --update -fsPublicFolder pubfiles

-fsPublicUrl

<value>

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 (test.tst) for access from the Web to shared files:

plesk bin server_filesharing --update -fsPublicUrl test.tst

-fsPartnerFolderEnabled

true|false

If true, Plesk creates password protected folder where users can put their files.

To allow users put their files in the password protected folder:

plesk bin server_filesharing --update -fsPartnerFolderEnabled true

-fsPartnerFolder

<value>

Specifies the name for the password protected folder.

To set the password protected folder (protected):

plesk bin server_filesharing --update -fsPartnerFolder protected

-fsPartnersLogin

<value>

Specifies the username for access to the password protected folder.

To set the username (user1) for access to password protected folder :

plesk bin server_filesharing --update -fsPartnersLogin user1

-fsPartnersPassword

<value>

Specifies the password for access to the password protected folder..

To set the password (passwd) for access to password protected folder :

plesk bin server_filesharing --update -fsPartnersPassword passwd

 

Leave your comments on this page

Leave your feedback or question on this documentation topic below. For technical assistance, contact your hosting service provider or submit a request to Plesk support. Suggest new features for Plesk here. Discuss general questions on the Plesk forum. All offtopic comments will be removed.