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
-
Connect to the server via RDP.
-
Go to
%plesk_vhosts%example.com/.plesk
-
Create a backup of
.Security
file. -
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.
-
- 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
Hosting Security Metadata File Templates
General Security Metadata Structure