Plesk

How to add a custom user permissions for a domain in Plesk on Windows?

Question

Custom user permissions for a domain directory are automatically overwritten by Plesk.

How to add custom user permissions for a domain in Plesk on Windows?

Answer

  1. Connect to the server via RDP.

  2. Go to %plesk_vhosts%example.com/.plesk

  3. Create a backup of .Security file.

  4. Open .Security in a text editor and add an entry like below under <Entries> section:

    <Entry AccounType="0" Account="NetworkService" Path="[HTTPD_VHOSTS_D]" SubPath="example.com" AceFlags="ThisFolderSubfoldersAndFiles" AccessMask="FullAccess" EntryFlags="0x0" Tag="" Tag2=""/>

    Here:

    • NetworkService - name of the custom user

    • example.com - the domain name.

  5. Run below command to apply permissions:

    C:> plesk repair fs example.com -y

Note: %plesk_vhosts%example.com/.plesk/.Security maybe owerwritten by Plesk. It generates from %plesk_dir%etchosting_template.xml

 

Additional Information

Customizing Hosting Security

Hosting Security Metadata File Templates

General Security Metadata Structure

Exit mobile version