cron+nsswitch+winbind = wierd thing




Recently I had rebooted my server after a long uptime and after reboot
cron didn't run any jobs. This is what I found in its log (time, host
and pid are stripped):
NSSWITCH(nss_method_lookup): winbind, group, setgrent, not found
NSSWITCH(nss_method_lookup): winbind, group, getgrent_r, not found
NSSWITCH(nss_method_lookup): winbind, group, endgrent, not found
NSSWITCH(nss_method_lookup): winbind, passwd, endpwent, not found

I have winbind for passwd and group in my nsswitch.conf, of course, and
everything else except for cron worked properly. E.g. I could run 'pw
showgroup -a' and it returned both local and windows groups.
After I restarted cron and it started to work normally again.

I suspect that cron couldn't find nss_winbind.so for some reason (which
is in /usr/local/lib). I thought that this might have been because cron
was started before rc.d/ldconfig ran and added /usr/local/lib, but
according to dmesg cron was started after ldconfig. So I am out of ideas
now.

--
Andriy Gapon
_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Cron Job
    ... If you mean the computer itself, put that command ... The standard 'cron' runs jobs at a specific time/date. ... Init or @reboot run jobs when ... Sunday night at 02:00) then copy the script and cron entry. ...
    (comp.os.linux.misc)
  • Re: boot time command as xy user
    ... I was actually considering cron as a possible solution as I already used ... it to run certain commands under the privileges of general users, ... every single time the system reboots. ... @reboot macro, ...
    (comp.unix.bsd.freebsd.misc)
  • Re: tmp files dumping
    ... That is what cron is for. ... Using cron is indeed a better solution that emptying ~/tmp at reboot - ... get when I had the tmp running on a ram drive. ...
    (comp.os.linux.misc)
  • Re: Auto Kill Idle Sessions
    ... > I still have to kick users off the system during daytime when they're ... You should just have to add a line to Cron with 'shutdown -Fr' to reboot ... starts your backup script about 10-15 minutes later. ...
    (comp.unix.aix)
  • Re: Probleme mit Cronjob
    ... Um ein Uhr morgens ... es durchaus Sinn, wenn #!/bin/sh fehlt, denn ohne das kann cron ja dann ... nachdem ich aus Verzweiflung einen Reboot ... wer oder was sonst noch an dem Rechner angemeldet ist? ...
    (de.comp.os.unix.linux.misc)