Cron jobs not running on schedule

hello

this is a the new server which was migrated.. so i assumed that crons jobs would be no problem but i guess they are not running on schedule. if i force run them via the gui, they execute running the relevant commands behind them..

i have check if the daemon is running and also have had a look the at the cron logs. nothing irregular there..

n 9 12:38:01 server2 cron[31643]: (CRON) INFO (Skipping @reboot jobs -- not system startup) Jan 9 12:39:01 server2 CRON[31771]: (root) CMD ( [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi) Jan 9 12:39:28 server2 cron[31816]: (CRON) INFO (pidfile fd = 3) Jan 9 12:39:28 server2 cron[31816]: (root) INSECURE MODE (mode 0600 expected) (crontabs/root) Jan 9 12:39:28 server2 cron[31816]: (intadmin) INSECURE MODE (mode 0600 expected) (crontabs/intadmin) Jan 9 12:39:28 server2 cron[31816]: (intertech) INSECURE MODE (mode 0600 expected) (crontabs/intertech) Jan 9 12:39:28 server2 cron[31816]: (CRON) INFO (Skipping @reboot jobs -- not system startup) Jan 9 12:41:19 server2 cron[32249]: (CRON) INFO (pidfile fd = 3) Jan 9 12:41:19 server2 cron[32249]: (root) INSECURE MODE (mode 0600 expected) (crontabs/root) Jan 9 12:41:19 server2 cron[32249]: (intadmin) INSECURE MODE (mode 0600 expected) (crontabs/intadmin) Jan 9 12:41:19 server2 cron[32249]: (intertech) INSECURE MODE (mode 0600 expected) (crontabs/intertech) Jan 9 12:41:19 server2 cron[32249]: (CRON) INFO (Skipping @reboot jobs -- not system startup) Jan 9 12:57:01 server2 cron[32249]: (root) INSECURE MODE (mode 0600 expected) (crontabs/root) Jan 9 12:57:01 server2 cron[32249]: (intadmin) INSECURE MODE (mode 0600 expected) (crontabs/intadmin) Jan 9 12:57:01 server2 cron[32249]: (intertech) INSECURE MODE (mode 0600 expected) (crontabs/intertech) Jan 9 12:58:01 server2 cron[32249]: (root) INSECURE MODE (mode 0600 expected) (crontabs/root) Jan 9 12:58:01 server2 cron[32249]: (intadmin) INSECURE MODE (mode 0600 expected) (crontabs/intadmin) Jan 9 12:58:01 server2 cron[32249]: (intertech) INSECURE MODE (mode 0600 expected) (crontabs/intertech) Jan 9 13:00:53 server2 crontab[2757]: (root) BEGIN EDIT (root) Jan 9 13:01:11 server2 crontab[2757]: (root) END EDIT (root)

these errors might be something to do with the permissions..

Jan 9 12:58:01 server2 cron[32249]: (intadmin) INSECURE MODE (mode 0600 expected) (crontabs/intadmin) Jan 9 12:58:01 server2 cron[32249]: (intertech) INSECURE MODE (mode 0600 expected) (crontabs/intertech)

what could i do ? to correct this?

Status: 
Closed (fixed)

Comments

Howdy -- what output does this command produce:

ls -l /var/spool/cron/crontabs/

-rw-r--r-- 1 root root 524 Jan 9 13:14 intadmin -rw-r--r-- 1 root root 2441 Jan 9 13:17 intertech -rw-r--r-- 1 root root 72 Jan 9 14:59 root

Okay, it looks like you may need to tweak the owner/group of those files so that they're owned by the Virtual Server owner, and the group "crontab".

After making that change, the file permission would then need to be set to "chmod 600" on each of them.

Great .. thanks..