Doesn't postinstall handle this properly? There is code there to populate pam.d...
christos > On Jun 6, 2020, at 3:32 PM, BERTRAND Joël <[email protected]> wrote: > > Christos Zoulas a écrit : >> In article <[email protected] >> <mailto:[email protected]>>, >> BERTRAND Joël <[email protected] >> <mailto:[email protected]>> wrote: >>> Christos Zoulas a écrit : >>>> In article <[email protected] >>>> <mailto:[email protected]>>, >>>> BERTRAND Joël <[email protected] >>>> <mailto:[email protected]>> 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 >>> >>> I don't have this file. I have checked in /usr/src/obj also. Where is >>> this file in source tree ? >> >> /usr/src/etc/pam.d > > Thanks. I have searched in /usr/src/obj and directory dist***/etc/pam.d > was empty. Last time I have upgraded my system, I have done a ./build.sh > install=/ and I suppose that these files haven't been copied into > /etc/pam.d. > > Best regards, > > JB
signature.asc
Description: Message signed with OpenPGP
