Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CROND fails to run schedules due to PAM for centos:latest #31

Open
tspicer opened this issue Aug 24, 2015 · 4 comments
Open

CROND fails to run schedules due to PAM for centos:latest #31

tspicer opened this issue Aug 24, 2015 · 4 comments

Comments

@tspicer
Copy link

tspicer commented Aug 24, 2015

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

@tspicer tspicer changed the title CROND fails to run schedules due to PAM CROND fails to run schedules due to PAM for centos:latest Aug 24, 2015
@jperrin
Copy link
Collaborator

jperrin commented Aug 25, 2015

This is more of a distribution/packaging issue than a container issue. I would recommend filing this as an upstream bug at bugzilla.redhat.com.

@tspicer
Copy link
Author

tspicer commented Aug 26, 2015

Ok, the issue only occurs in the container, not when running on a CentOS 7 host. Is that still something that needs to be reported upstream?

@jperrin
Copy link
Collaborator

jperrin commented Aug 26, 2015

Please, because the package contents is the same for the OS and the containers. Since the package isn't in the container by default, there isn't anything we can do short of posting your workaround as a faq.

@pubyun
Copy link

pubyun commented Nov 5, 2017

i modify /etc/pamd.d/crond and it works.

then it does not work now after i upgrade Centos from 7.3 to 7.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants