Symptoms
-
File system permissions cannot be repaired by
repair fs
command:# plesk repair fs example.com
There are incorrect permissions on some items in the root directory
of the domain ‘example.com’ ………………………………… [ERROR]
To see more details, run the command in the verbose mode: plesk repair fs -verbose
Do you want to repair incorrect permissions? [Y/n] y
Repairing incorrect permissions …………………………… [FIXED]
Error messages: 1; Warnings: 0; Errors resolved: -
After fixing
plesk repair fs example.com
still reports the same issue
Cause
Product issue:
-
#PPPM-4400 “Running the plesk repair fs command now shows a clearer message if suspicious ownership of files and directories is detected in the root directory of a domain.”
Fixed in:- Plesk Obsidian 23 June 2020
Resolution
Workaround
If update is not possible for some reason you may try the following
workaround
Warning: The following script sets the permissions for files inside the document root to 0644
. In case there are files that require specific permissions, set them manually after executing the script, or restore a subscription backup.
As a workaround, correct the file permissions manually:
-
Connect to the server via SSH.
-
Download the script for fixing permissions and unpack it:
# wget https://plesk.zendesk.com/hc/article_attachments/360028145894/fix_permissions.tar.gz
# tar xf fix_permissions.tar.gz
-
Run the script with a target domain name, or a list separated by spaces:
# ./fix_permissions.sh example.com one.example.com two.example.com