Applicable to:
- Plesk for Linux
Question
Why do plesk repair utility mark files as suspicious:
# plesk repair fs -v
Checking Linux system files ......................................... [OK]
Checking virtual hosts' file system
There are files or directories with suspicious permissions in the
root directory of the domain 'example.com' ........................ [WARNING]
- /var/www/vhosts/example.com/httpdocs/directory/file1
- /var/www/vhosts/example.com/httpdocs/directory/file2
- /var/www/vhosts/example.com/httpdocs/directory/file3
Error messages: 0; Warnings: 1; Errors resolved: 0
Answer
The following permissions are set for the files:
# ls -la /var/www/vhosts/example.com/httpdocs/directory
total 8
drwxr-xr-x 2 root root 4096 Mar 18 07:51 .
drwxr-x--- 9 johndoe psaserv 4096 Mar 18 07:50 ..
-rwxrwxrwx 1 johndoe psacln 0 Mar 18 07:50 file1
-rwxrwxrwx 1 johndoe psacln 0 Mar 18 07:50 file2
-rwxrwxrwx 1 johndoe psacln 0 Mar 18 07:51 file3
Permissions set to 777 are not recommended and marked as suspicious by plesk repair
because these permissions allow anyone to do anything with the files, which is considered as a possible security breach.
Comments
0 comments
Please sign in to leave a comment.