System error 13: Permission denied during access to domain logs.

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux
  • MT:87050be8b33871cb168994438cf277be
  • MG:3545e4b06f69d9e67ecd51b0e30daaaf
  • MG:86f6d684dd4eb70ee830eae2ffeb0fbf

Created:

2016-11-16 13:09:55 UTC

Modified:

2017-02-13 06:13:27 UTC

1

Was this article helpful?


Have more questions?

Submit a request

System error 13: Permission denied during access to domain logs.

Symptoms

The following error appears in Plesk web interface when attempting to open domain logs under Plesk > Subscriptions> domain.tld > Logs

or when attempting to open any folder in file manager under Plesk > Subscriptions> domain.tld > Files

filemng: opendir failed: Permission denied

System error 13: Permission denied

The issue occurs with several domains only.

The output of '/usr/local/psa/admin/logs/panel.log' contains the below errors:

2013-12-25T11:49:05+04:00 DEBUG (7)  [util_exec]: 0, time = 0.12996006011963, errcode = 1; stderr = filemng: opendir failed: Permission denied

System error 13: Permission denied
; stdout = filemng: opendir failed: Permission denied

System error 13: Permission denied

PleskUtilException: '/usr/local/psa/admin/bin/filemng' 'psaadm' 'list' 'files' '/var/www/vhosts/system/domain.tld/logs' '--in-blocks' failed with code 1.

stdout:
filemng: opendir failed: Permission denied

System error 13: Permission denied


stderr:
filemng: opendir failed: Permission denied

System error 13: Permission denied

Manual command execution leads to the same result:

/usr/local/psa/admin/bin/filemng psaadm list dirs /var/www/vhosts/system/domain.com/logs
filemng: opendir failed: Permission denied

System error 13: Permission denied
filemng: opendir failed: Permission denied

System error 13: Permission denied

Cause

Incorrect permissions are set for domain folders

The correct permissions on '/var/www/vhosts/system/domain.tld' folders should be like follows:

ll /var/www/vhosts/system/domain.tld/
total 20
drwxr-x--- 3 root psaserv 4096 Nov 19 05:05 conf
drwxr-xr-x 2 root root 4096 Jul 6 2013 etc
drwx------ 2 psaadm root 4096 Dec 26 05:05 logs
drwx--x--- 2 root psaserv 4096 Nov 19 01:53 pd
dr-xr-x--- 6 root psaserv 4096 Jul 6 2013 statistics

Resolution

Please use article #213910345 to reset the virtual host directories permissions.

If this does not work fix permissions manually using the following commands:

    # chown psaadm:root /var/www/vhosts/system/domain.tld/logs/
# chmod 700 /var/www/vhosts/system/domain.tld/logs/

Additional information

In case File Manager is not accessible too, visit the following article:

213393429 File manager is not accessible: filemng failed opendir failed Permission denied

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