From owner-freebsd-stable@FreeBSD.ORG Mon Sep 18 12:11:41 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D1D816A40F for ; Mon, 18 Sep 2006 12:11:41 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41A2543D68 for ; Mon, 18 Sep 2006 12:11:35 +0000 (GMT) (envelope-from avg@icyb.net.ua) Received: from [212.40.38.87] (oddity-e.topspin.kiev.ua [212.40.38.87]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id PAA18566 for ; Mon, 18 Sep 2006 15:11:32 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <450E8CF4.9040803@icyb.net.ua> Date: Mon, 18 Sep 2006 15:11:32 +0300 From: Andriy Gapon User-Agent: Thunderbird 1.5.0.7 (X11/20060915) MIME-Version: 1.0 To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=KOI8-U Content-Transfer-Encoding: 7bit Subject: cron+nsswitch+winbind = wierd thing X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Sep 2006 12:11:41 -0000 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