Skip to main content

user cron job not appearing on server /var/log/cron

Comments

3 comments

  • cPWilliamL
    Hi, Would you happen to be running CSF(Config Server Security & Firewall)? If so, please check the 'RESTRICT_SYSLOG' directive at `/etc/csf/csf.conf'. If not, can you confirm the cron jobs are actually being executed for the users? You could do a simple test like '* * * * * date >> log' to confirm. Thanks,
    0
  • sparek-3
    This is because end user crontab tasks are executed within a jailshell. The jailshell does not have privileges to write to /var/log/cron. This has been an issue ever since crontab tasks started being executed in jailshell, which was many, many versions ago.
    0
  • Havri
    Hello, Yes, the cronjobs are running correctly. I know this is a pretty old problem, but I thought I could make it work again with some sort of cPanel/CageFS/CSF artifice. Would be useful to have this logged. I currently have RESTRICT_SYSLOG = "0", so there shouldn't be a problem, but it still doesn't write anything. If you can give me a few pointers, I would appreciate it. Thank you.
    0

Please sign in to leave a comment.