Cron job is failing with "FAILED to open PAM security session (System error)"

Solution Verified - Updated -

Issue

  • Cron is failing every time and jobs are not getting executed. All jobs are executed as root.
  • Below logs are getting reported in cron log file.
2015-10-22 16:25:01 server crond[44825]: (root) FAILED to open PAM security session (System error)
2015-10-22 16:25:01 server crond[44822]: (root) FAILED to open PAM security session (System error)
  • At the same time, following logs can be seen in /var/log/secure log file.
2015-10-22 16:31:01 server crond[56436]: pam_lastlog(crond:session): no conversation function
2015-10-22 16:31:01 server crond[56436]: pam_lastlog(crond:session): no conversation function

Environment

  • Red Hat Enterprise Linux 6.6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content