Running a job in root's crontab does work, but it's failing in /etc/cron.d/

Solution Verified - Updated -

Issue

  • Running a logrotate in /etc/cron.daily/logrotate doesn't work once I put a custom configuration
  • Same command in root account does work without an issue
  • It turned out the issue is in SELinux context in the /var/log/, but don't understand why crond doesn't work whilst root's crontab does

Environment

  • Red Hat Enterprise Linux 5/6/7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content