Hide Forgot
Description of problem: When is crond executed directly from command line any non root cronjob isn't executed. Version-Release number of selected component (if applicable): How reproducible: always Steps to Reproduce: 1. systemctl stop crond.service 2. create cronjob for common user 3. execute command: /usr/sbin/crond -n -x sch Actual results: Debug output contains: log_it: (jenicek 29208) PAM ERROR (Cannot make/remove an entry for the specified session) log_it: (jenicek 29208) FAILED to open PAM security session (Cannot make/remove an entry for the specified session) and cronjob for "jenicek" isn't executed Expected results: Cron jobs will work same as system service. Additional info: It could be good to know, how to execute crond for debugin purposes on system with systemd.
I would fix it by change of man page. The crond -n is useful for starting it out of init. With this option is needed to change pam setting. In /etc/pam.d/crond must not enable pam_loginuid.so module. It does work for me with this setting.
This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request.