NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [NetBSD-9.0] cron and pam_authenticate failed



In article <26d69df9-9079-f84e-9c5b-7176721507b0%systella.fr@localhost>,
BERTRAND Joël  <joel.bertrand%systella.fr@localhost> wrote:
>	Hello,
>
>	On a NetBSD server, I have seen today that cron doesn't launch process
>anymore. Thus, I have tried to start cron from a root shell with :
>
># cron -n -x sch,proc
>
>	Output is :
>
>[1848] cron started
>...
>[1848] do_command(/usr/libexec/atrun, (root,0,0))
>[1848] main process returning to work
>[23778] child_process('/usr/libexec/atrun')
>[1848] Target time=1591463460, sec-to-wait=60
>log_it: (CRON 23778) pam_authenticate failed (System error)
>[23778] child process done (rc=1), exiting
>[1848] sigchld...pid #23778 died, stat=1
>[1848] sigchld...no children
>[1848] tick(11,19,5,5,6)
>...
>
>	If I understand, it tries to start /usr/libexec/atrun and pam subsystem
>returns "pam_authenticate failed (System error)". I suppose there is a
>bad interaction between cron and pam but I don't know to fix this issue.
>

Seems to work here; I would check /etc/pam.d/cron

christos

cron -n -x sch,proc
debug flags enabled: sch proc
[1084] cron started
[1084] Target time=1591465140, sec-to-wait=6
[1084] tick(39,13,5,5,6)    
user [root:0:0:...] [jobtz=(null), origtz=EST5EDT] tick(30,4,*,*,6,flags=dom), cmd="/bin/sh /etc/weekly 2>&1 | tee /var/log/weekly.out | sendmail -t"
user [root:0:0:...] [jobtz=(null), origtz=EST5EDT] tick(15,3,*,*,*,flags=dom,dow), cmd="/bin/sh /etc/daily 2>&1 | tee /var/log/daily.out | sendmail -t"
user [root:0:0:...] [jobtz=(null), origtz=EST5EDT] tick(0,*,*,*,*,flags=hr,dom,dow), cmd="/usr/bin/newsyslog"
user [root:0:0:...] [jobtz=(null), origtz=EST5EDT] tick([0,10,20,30,40,50],*,*,*,*,flags=min,hr,dom,dow), cmd="/usr/libexec/atrun"
[1084] Target time=1591465200, sec-to-wait=60
[1084] tick(40,13,5,5,6)    
user [root:0:0:...] [jobtz=(null), origtz=EST5EDT] tick(30,4,*,*,6,flags=dom), cmd="/bin/sh /etc/weekly 2>&1 | tee /var/log/weekly.out | sendmail -t"
user [root:0:0:...] [jobtz=(null), origtz=EST5EDT] tick(15,3,*,*,*,flags=dom,dow), cmd="/bin/sh /etc/daily 2>&1 | tee /var/log/daily.out | sendmail -t"
user [root:0:0:...] [jobtz=(null), origtz=EST5EDT] tick(0,*,*,*,*,flags=hr,dom,dow), cmd="/usr/bin/newsyslog"
user [root:0:0:...] [jobtz=(null), origtz=EST5EDT] tick([0,10,20,30,40,50],*,*,*,*,flags=min,hr,dom,dow), cmd="/usr/libexec/atrun"
[1084] do_command(/usr/libexec/atrun, (root,0,0))
[1084] main process returning to work
[1084] Target time=1591465260, sec-to-wait=36
[157] child_process('/usr/libexec/atrun')
[606] grandchild process vfork()'ed
log_it: (root 606) CMD START (/usr/libexec/atrun)
[157] child continues, closing pipes
[157] child reading output from grandchild
[157] got EOF from grandchild
log_it: (root 157) CMD FINISH (/usr/libexec/atrun)
[157] child process done (rc=0), exiting
[1084] sigchld...pid #157 died, stat=0
[1084] sigchld...no children
[1084] tick(41,13,5,5,6)    
user [root:0:0:...] [jobtz=(null), origtz=EST5EDT] tick(30,4,*,*,6,flags=dom), cmd="/bin/sh /etc/weekly 2>&1 | tee /var/log/weekly.out | sendmail -t"
user [root:0:0:...] [jobtz=(null), origtz=EST5EDT] tick(15,3,*,*,*,flags=dom,dow), cmd="/bin/sh /etc/daily 2>&1 | tee /var/log/daily.out | sendmail -t"
user [root:0:0:...] [jobtz=(null), origtz=EST5EDT] tick(0,*,*,*,*,flags=hr,dom,dow), cmd="/usr/bin/newsyslog"
user [root:0:0:...] [jobtz=(null), origtz=EST5EDT] tick([0,10,20,30,40,50],*,*,*,*,flags=min,hr,dom,dow), cmd="/usr/libexec/atrun"
[1084] Target time=1591465320, sec-to-wait=55




Home | Main Index | Thread Index | Old Index