chrootsh is not working: system error: Permission denied

Created:

2016-11-16 12:56:03 UTC

Modified:

2017-08-16 18:26:12 UTC

0

Was this article helpful?


Have more questions?

Submit a request

chrootsh is not working: system error: Permission denied

Applicable to:

  • Plesk 11.x for Linux
  • Plesk 12.0 for Linux

Symptoms

  • chrootsh is not working for specific user
  • cronjobs can not be executed
  • the following error apprears if trying to switch to user which uses chrootsh:
    su user -s /opt/psa/bin/chrootsh
    execv("/bin/bash") failed
    system error: Permission denied

Cause

Incorrect permission for chroot libraries.

Resolution

Check permissions in /var/www/vhosts/chroot/lib and /var/www/vhosts/chroot/lib64 . Correct them in case of any differences. For example:

 # ls -la  /var/www/vhosts/chroot/lib/ld-linux*
-rwxr-xr-x 3 root root 128744 Jun 6 2012 ld-linux.so.2
-rwxr-xr-x 3 root root 128744 Jun 6 2012 ld-linux-x86-64.so.2

# ls -la /var/www/vhosts/chroot/lib64/ld-linux*
-rwxr-xr-x 3 root root 128744 Jun 6 2012 ld-linux.so.2
-rwxr-xr-x 3 root root 128744 Jun 6 2012 ld-linux-x86-64.so.2
Have more questions? Submit a request
Please sign in to leave a comment.