openSUSE 11.4 cron job not running

In a newly installed VPS running openSUSE 11.4 I noticed cronjobs didn't work. The openSUSE distro just switched in this release from Vixie Cron to Cronie. Unfortunately, the VPS was throwing errors like:

Jun 27 12:24:01 s99 /usr/sbin/cron[3356]: pam_warn(crond:session): function=[pam_sm_open_session] service=[crond] terminal=[cron] user=[root] ruser=[] rhost=[]
Jun 27 12:24:01 s99 /usr/sbin/cron[3356]: (root) PAM ERROR (Cannot make/remove an entry for the specified session)
Jun 27 12:24:01 s99 /usr/sbin/cron[3356]: (root) FAILED to open PAM security session (Cannot make/remove an entry for the specified session)

After digging for some time, I noticed that somehow the /etc/pam.d/cron configuration was missing one essential line:

session include common-session

After adding the above line to the config file, things were running smoothly again.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <s>
  • Lines and paragraphs break automatically.
  • You may link to images on this site using a special syntax

More information about formatting options

MO6 on the web

MO6.me is IPv6 ready IPv6 website

MO6