How to customize permissions for Plesk users by Disk Security

Created:

2016-11-16 12:46:24 UTC

Modified:

2017-08-08 13:15:53 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to customize permissions for Plesk users by Disk Security

Applicable to:

  • Plesk Onyx for Windows
  • Plesk 12.0 for Windows
  • Plesk 12.5 for Windows

Question

How to customize permissions for Plesk users by Disk Security.

For example, thee is an application installed into the folder C:\Program Files\AppName. This module is used on customer's sites, but it does not work properly because Panel's default security rules prohibit customers from accessing arbitrary folders on the disk. 

Answer

To customize disk security, create an additional file with the .xml extension in the %plesk_dir%\etc\DiskSecurity directory and specify additional security rules in the file. This will enable you to track changes and manipulate sets of security metadata easily.

For example:

  1. Create file permissions.xml in %plesk_dir%\etc\DiskSecurity\

    <?xml version="1.0" encoding="utf-8" ?>

    <Entries>

    <Entry AccounType="1" Account="Psacln" Path="C:\Program Files\" SubPath="AppName" AceFlags="ThisFolderSubfoldersAndFiles" AccessMask="FullAccess" EntryFlags="0x0" />

    <Entry AccounType="1" Account="Psaadm" Path="C:\Program Files\" SubPath="AppName" AceFlags="ThisFolderSubfoldersAndFiles" AccessMask="FullAccess" EntryFlags="0x0" />

    </Entries>
  2. Run the ApplySecurity.exe utility:

    "%plesk_bin%"\ApplySecurity.exe --apply-to-directory --directory="C:\Program Files"

 

This file will be read during re-applying permissions by Plesk repair utility when it is either called directly from CLI or by Plesk Reconfigurator utility: 

plesk repair --directory-permissions -directory "C:\Program Files"

Please refer to following Plesk documentation for more details:

Customizing Disk Security

Have more questions? Submit a request
Please sign in to leave a comment.