Articles in this section

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

kb: how-to Plesk Obsidian for Windows

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

  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:

    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.
  5. Note: Plesk keeps the entries that you add to the .Security file when you run plesk repair fs and 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 .Security file from %plesk_dir%\etc\hosting_template.xml.

    Run below command to apply permissions:

    C:\> plesk repair fs example.com -y

 

Additional Information

Customizing Hosting Security

Hosting Security Metadata File Templates

General Security Metadata Structure

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.