As the topic says, the cron jobs won't run for a specific user. I have a test environment that is a close mirror to my production environment. The test environment has 1 job setup to run on @reboot that works fine, but the production server is giving me problems. As near as I can tell it has something to do with jailkit, but I'm so lost in my troubleshooting right now my head is spinning. Here's what I have so far. command to run is: Code: /var/www/clients/client1/web5/teamspeak3-server_linux-x86/egts3start.sh Chroot Shell for ssh user is set to none When I add the cron job I get this in the /var/log/ispconfig/cron.log Code: ERROR: /var/www/clients/client1/web5/etc is not owned by root:root! ERROR: /var/www/clients/client1/web5/etc is not owned by root:root! usermod: no changes PHP Warning: mkdir(): File exists in /usr/local/ispconfig/server/plugins-available/cron_jailkit_plugin.inc.php on line 293 usermod: unlocking the user's password would result in a passwordless account. You should set a password with usermod -p to unlock this user's password. From there, I'm lost. What say you oh powerful ISPConfig developers. ---Additional--- I looked in /etc/cron.d and there is only one ispc job: ispc_chrooted_web5 the contents of that file are as such: Code: MAILTO='' SHELL='/usr/sbin/jk_chrootsh' @reboot web5 /teamspeak3-server_linux-x86/egts3start.sh #forum.empyreanguard.com
The cronjob is chrooted, so it can not run any commands outside of the chroot jail. Change the line: SHELL='/usr/sbin/jk_chrootsh' to: SHELL='/bin/bash' In the ispc_chrooted_web5 file and restart cron.
I changed the configuration file as noted and rebooted the machine. There are no errors in the cron.log file now, but the process still didn't start as expected.
But you are able to execute ths cript when you run the two commands: Code: su web5 /teamspeak3-server_linux-x86/egts3start.sh on the shell? If this is a server daemon, then I doubt that a normal shell user that is not the root user might start it at all.