SELinux prevents sadc from writing to non-standard directories when called from cron
Issue
- If I run the following command as root, it works:
# /usr/lib64/sa/sadc 1 8 /opt/sartest
- But if I run the same command under
cronSELinux causes the job to fail:
...
41 22 * * * root /usr/lib64/sa/sadc 1 8 /opt/sartest
Environment
- Red Hat Enterprise Linux 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.