Scheduled tasks running programs that are absent from a virtual host's chrooted shell environment (for example,
php) fail on domains that are set up to provide chrooted shell access to FTP users.
The following error might occur:
user with id=11112 and name=`<user_name>` not found in chrooted passwd file system error: No such file or directory
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 (any command which is available for execution with current user permissions) 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