Unable to manage Plesk: System error 13: Permission denied

Refers to:

  • Plesk for Linux
  • MT:11318a67483e9d98ebedd932be8aa2e7
  • MG:52b849d40917a9d5a5e904b445269d63
  • MG:ba1297a3397ea69e41f7a12da04260d8

Created:

2016-11-16 12:51:35 UTC

Modified:

2017-02-13 06:11:36 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Unable to manage Plesk: System error 13: Permission denied

Symptoms

An operation in Plesk interface fails with a Permission denied error.

For example:

Unable to read components configuration from the service node: sh: /usr/local/psa/admin/bin/packagemng: Permission denied

OR

ifmng: execve failed for /usr/local/psa/admin/sbin/ifmng: Permission denied
System error 13: Permission denied

OR

ERROR: Service_Agent_Exception
Unable to execute php_handlers_control: php_handlers_control: execve failed for /usr/local/psa/admin/sbin/php_handlers_control: Permission denied
System error 13: Permission denied

OR

ERROR: PleskUtilException
mailmng-server failed: mailmng-server: execve failed for /usr/local/psa/admin/sbin/mailmng-server: Permission denied
System error 13: Permission denied

OR

Internal error: mailmng-mailname failed: Unable to open dir /var/qmail/mailnames/example.com/test/@attachments: Permission denied System error 13: Permission denied

OR

lsws_cmd: execve failed for /usr/local/psa/admin/sbin/modules//litespeed/lsws_cmd: Permission denied

Cause

Plesk service cannot execute a backend utility, or the utility is unable to change some files because of incorrect permissions.

Resolution

  1. Make sure that the following files have the proper permissions and owners:

    # ls -al $PRODUCT_ROOT_D/admin/sbin/*wrapper
    ---s--x--- 1 root psaadm 13120 Jun 13 21:51 ./admin/sbin/mod_wrapper
    ---s--x--- 1 root psaadm 13632 Jun 13 21:51 ./admin/sbin/wrapper
  2. Use the following commands to correct permissions:

    # cd $PRODUCT_ROOT_D
    # chown root:psaadm ./admin/sbin/*wrapper
    # chmod 4110 ./admin/sbin/*wrapper
  3. Make sure that the correct permissions are set to all the directories below:

    # ls -ld /usr/local/psa/admin/sbin/
    drwxr-xr-x 3 root root 4096 Sep 22 03:28 /usr/local/psa/admin/sbin/

    # ls -ld /usr/local/psa/admin/
    drwxr-xr-x 18 root root 4096 Aug 11 2014 /usr/local/psa/admin/

    # ls -ld /usr/local/psa/
    drwxr-xr-x 15 root root 4096 Sep 14 05:27 /usr/local/psa/

    # ls -ld /usr/local/
    drwxr-xr-x 14 root root 4096 Aug 19 11:35 /usr/local/

    # ls -ld /usr/
    drwxr-xr-x 13 root root 4096 Jul 6 16:48 /usr/

    # ls -ld /
    dr-xr-xr-x 20 root root 4096 Oct 28 12:40 /

    # ls -ld /bin
    dr-xr-xr-x 2 root root 4096 Mar 16 03:20 /bin

 

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