Applicable to:
- Plesk Obsidian for 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
-
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:CONFIG_TEXT: <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%\etc\hosting_template.xml
Comments
0 comments
Please sign in to leave a comment.