Red Hat Bugzilla – Bug 989201
PAM issue prevents atd sending mail
Last modified: 2013-12-31 22:32:12 EST
Since updating to F-19, my at jobs have been unable to send mail. This appears to be a PAM issue, as evidenced by these journal entries:
# journalctl -b | grep atd
Jul 27 00:10:00 zion.intra.city-fan.org atd: pam_unix(atd:session): session opened for user paul by (uid=0)
Jul 27 00:16:28 zion.intra.city-fan.org atd: pam_loginuid(atd:session): set_loginuid failed
Jul 27 00:16:28 zion.intra.city-fan.org atd: pam_unix(atd:session): session opened for user paul by (uid=0)
Jul 27 00:16:28 zion.intra.city-fan.org atd: Cannot make/remove an entry for the specified session
My at job ran at 00:10:00, completed successfully, and then at 00:16:28 tried to mail the output to me but never sent anything.
Last night I tried commenting out the pam_loginuid line from /etc/pam.d/atd and atd was subsequently able to mail me its output.
I don't see those messages in my log, but your workaround helped for me too. (Thanks for the tip!)
Thank you for the work-around. It works for me. Do you have any idea what I loose by commenting pam_loginuid.so?
*** Bug 1005323 has been marked as a duplicate of this bug. ***
Thanks Paul. I had the same problem with cronie. This is a correct fix. I'll fix it in F20 and F19 branches.
Please, add the pam_loginuid.so back. It can solve some cases, but the configuration is not safe without it. PAM authentication in code of at is now improved and working properly.
at-3.1.13-13.fc19 has been submitted as an update for Fedora 19.
at-3.1.13-14.fc20 has been submitted as an update for Fedora 20.
at-3.1.13-13.fc19 works for me.
(In reply to Paul Howarth from comment #8)
> at-3.1.13-13.fc19 works for me.
Thanks, I tested it only on my laptop, so I'm glad it's working for everyone.
at-3.1.13-14.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
at-3.1.13-13.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.