Changes to access.conf prevent crontab execution
Issue
After modifying /etc/security/access.conf, users were unable to execute crontabs as expected.
$ cat /etc/security/access.conf
+ : root : LOCAL
+ : @localusers : ALL
- : ALL : ALL
In this case, 'localusers' is a group. Local user in example messages below is 'unixrpt'.
Feb 4 14:33:02 localhost crond[14167]: CRON (unixrpt) ERROR: failed to open PAM security session: Bad file descriptor
Feb 4 14:33:02 localhost crond[14167]: CRON (unixrpt) ERROR: cannot set security context
Expected results:
Feb 4 14:36:02 localhost crond[15191]: (unixrpt) CMD (/usr/local/bin/sysrpt/sysrpt > /dev/null 2>&1)
Feb 4 14:37:01 localhost crond[16112]: (unixrpt) CMD (/usr/local/bin/sysrpt/sysrpt > /dev/null 2>&1)
Environment
- Red Hat Enterprise Linux 4/5/6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.