In the default setup CROND will not run even with cronie installed and the process is running. This seems to be an issue with PAM. In "/etc/pamd.d/crond" the line "session required pam_loginuid.so" is causing CROND to fail. The only solution that seemed to work was the following:
RUN sed -i '/session required pam_loginuid.so/d' /etc/pamd.d/crond
Once removed or commented out everything CROND worked as expected.
This was on centos:latest
In the default setup CROND will not run even with cronie installed and the process is running. This seems to be an issue with PAM. In "/etc/pamd.d/crond" the line "session required pam_loginuid.so" is causing CROND to fail. The only solution that seemed to work was the following:
RUN sed -i '/session required pam_loginuid.so/d' /etc/pamd.d/crond
Once removed or commented out everything CROND worked as expected.
This was on centos:latest