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
.Securityfile. -
Open
.Securityin 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.
-
Note: Plesk keeps the entries that you add to the
.Securityfile when you runplesk repair fsand when you change the hosting settings of the domain. The entries are removed when the hosting of the domain is removed and created again, because Plesk then generates a new.Securityfile from%plesk_dir%\etc\hosting_template.xml.Run below command to apply permissions:
C:\> plesk repair fs example.com -y
Comments
Please sign in to leave a comment.