Paco

Personal Content Organiser

Home / Plesk

Navigation

Menu

Search

Allow user with enabled chrooted shell run scheduled tasks outside chrooted environment

APPLIES TO:
Parallels Plesk Panel 11.x for Linux
Parallels Plesk Panel 10.x for Linux

Symptoms
Scheduled tasks running programs that are absent from a virtual host's chrooted shell environment (for example, curl, wget, or php) fail on domains that are set up to provide chrooted shell access to FTP users.

Resolution
Using the utility /usr/local/psa/bin/server_pref, it is possible to configure the server to not set the SHELL variable in users' crontabs, which would make cron by default use /bin/sh and allow users with chrooted shell enabled run their scheduled tasks in a global server environment.


To disable the setting of the SHELL variable, execute the server_pref utility with the following options:
# /usr/local/psa/bin/server_pref --update -crontab-secure-shell ""

To revert the change, use this command:
# /usr/local/psa/bin/server_pref --update -crontab-secure-shell /bin/bash



Source:
http://kb.parallels.com/en/115889