FS#61700 - [at] atd: Authentication failure, missing pam.d policy
Attached to Project:
Community Packages
Opened by Klaus Alexander Seistrup (kseistrup) - Sunday, 10 February 2019, 11:17 GMT
Last edited by Christian Hesse (eworm) - Wednesday, 20 February 2019, 17:39 GMT
Opened by Klaus Alexander Seistrup (kseistrup) - Sunday, 10 February 2019, 11:17 GMT
Last edited by Christian Hesse (eworm) - Wednesday, 20 February 2019, 17:39 GMT
|
Details
Description:
atd logs “Authentication failure” for every at job (and the actual job is not run at all). This happens after the latest PAM update a couple of days ago. I'm unsure if there has ever been an /etc/pam.d/atd file, but there isn't one now. Copying the existing /etc/pam.d/crond file to /etc/pam.d/atd makes atd work like expected. Attached as pam.conf. Additional info: * package version(s): 3.1.23-1 Steps to reproduce: 1. start atd: sudo systemctl atd.service 2. submit a batch job: echo date | at now 3. find “atd[$PID]: Authentication failure” in syslog 4. /var/log/auth.log may show something like "atd[$PID]: pam_warn(atd:account): function=[pam_sm_acct_mgmt] flags=0x8000 service=[atd] terminal=[<unknown>] user=[$USER] ruser=[<unknown>] rhost=[<unknown>] |
This task depends upon
Closed by Christian Hesse (eworm)
Wednesday, 20 February 2019, 17:39 GMT
Reason for closing: Fixed
Additional comments about closing: at 3.1.23-2
Wednesday, 20 February 2019, 17:39 GMT
Reason for closing: Fixed
Additional comments about closing: at 3.1.23-2
FS#61704- xlockmore needs a pam fileIt's not apparent to the user that the jobs didn't run successfully,
and this can cause all sorts of knock-on issues.
On initial investigation, /var/spool/atd contained the /bin/sh scripts to be run in the future, and pairs of `a' and `=' files, e.g. a03894018a25e0 and =03894018a25e0. Normally, the first would contain the /bin/sh, but it instead has the start of the email to send on capturing the command's output.
Subject: Output from your job 14484
To: ralph
The `=' had the /bin/sh script. On restarting atd, all the =* are deleted. The a* remain, but all of them are the email's header lines with no body; any output has been lost. The original, one-off, script to run has been lost.
atq(1) shows the emails as entries in the queue with their correct dates and times; now in the past.
@include common-auth
@include common-account
@include common-session-noninteractive
none of which exist on Arch.