Article ID: 118754, created on Nov 19, 2013, last review on Nov 19, 2013

  • Applies to:
  • Plesk Automation

Symptoms

Customer with chrooted access to server over SSH, is able to list directories, that do not belong to the current chroot environment.

For example, customer can list content of '/var/www/vhosts/' using crontab scheduled task

    * * * * * /bin/ls /var/www/vhosts/ > /tmp/test1

Cause

Crontab entry for required customer was created incorrectly. The SHELL record is missing.

Resolution

  1. Access Customer Control Panel -> Websites&Domains -> Web Hosting Access -> Access to the server over SSH and make sure that it set up to /bin/bash(chrooted).

  2. Connect to the corresponding web service node which hosts subscription as administrator and open FTP user crontab file:

    crontab -e -u FTP_user 
    

    Where is a login of the default FTP user for subscription.

    Add following record in crontab:

        SHELL=/usr/local/psa/bin/chrootsh
    

Search Words

FTP user

crontab

crontab

scan directories

e0aff7830fa22f92062ee4db78133079 caea8340e2d186a540518d08602aa065

Email subscription for changes to this article
Save as PDF