What is the Plesk command-line equivalent of setting folder permissions via the file manager in the control panel GUI?
Everything in the control panel has a command-line equivalent, right?
When a lot of intricate file & folder permissions need to be set, this task needs to be scripted using the command-line instead of the control panel.
This isn't the same as setting permissions with a 3rd party command-line utility (e.g. xcacls) because Plesk also updates the .security file (so permissions are correctly backed up & restored, reconfigured etc.)
Alternatively, is there a Plesk command-line utility that updates the .security file to reflect a domain's current file system permissions?
For example, I want set the httpdoscs/log folder to be writeable to the IUSR and sync the file system to the .security file so it reflects the change e.g. by adding
<Entry Tag2="" Tag="" EntryFlags="0x300" AccessMask="Modify" AceFlags="ThisFolderSubfoldersAndFiles" SubPath="domain.com\httpdocs\log" Path="[HTTPD_VHOSTS_D]" SidStr="S-1-5-21-1896785081-9237436453-170731300-8365" Account="IUSR_domain.com" AccounType="1"/>
Thanks,
Julian
Everything in the control panel has a command-line equivalent, right?
When a lot of intricate file & folder permissions need to be set, this task needs to be scripted using the command-line instead of the control panel.
This isn't the same as setting permissions with a 3rd party command-line utility (e.g. xcacls) because Plesk also updates the .security file (so permissions are correctly backed up & restored, reconfigured etc.)
Alternatively, is there a Plesk command-line utility that updates the .security file to reflect a domain's current file system permissions?
For example, I want set the httpdoscs/log folder to be writeable to the IUSR and sync the file system to the .security file so it reflects the change e.g. by adding
<Entry Tag2="" Tag="" EntryFlags="0x300" AccessMask="Modify" AceFlags="ThisFolderSubfoldersAndFiles" SubPath="domain.com\httpdocs\log" Path="[HTTPD_VHOSTS_D]" SidStr="S-1-5-21-1896785081-9237436453-170731300-8365" Account="IUSR_domain.com" AccounType="1"/>
Thanks,
Julian