From owner-freebsd-stable@FreeBSD.ORG Mon Jul 13 17:43:52 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD3A11065670 for ; Mon, 13 Jul 2009 17:43:52 +0000 (UTC) (envelope-from mcdouga9@egr.msu.edu) Received: from mx.egr.msu.edu (surfnturf.egr.msu.edu [35.9.37.164]) by mx1.freebsd.org (Postfix) with ESMTP id B01958FC17 for ; Mon, 13 Jul 2009 17:43:52 +0000 (UTC) (envelope-from mcdouga9@egr.msu.edu) Received: from localhost (localhost [127.0.0.1]) by mx.egr.msu.edu (Postfix) with ESMTP id C71EB57548; Mon, 13 Jul 2009 13:43:51 -0400 (EDT) X-Virus-Scanned: amavisd-new at egr.msu.edu Received: from mx.egr.msu.edu ([127.0.0.1]) by localhost (surfnturf.egr.msu.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ShLKVvCgGJ1r; Mon, 13 Jul 2009 13:43:51 -0400 (EDT) Received: from [35.9.44.65] (daemon.egr.msu.edu [35.9.44.65]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: mcdouga9) by mx.egr.msu.edu (Postfix) with ESMTPSA id 5638E57542; Mon, 13 Jul 2009 13:43:51 -0400 (EDT) Message-ID: <4A5B7257.1010202@egr.msu.edu> Date: Mon, 13 Jul 2009 13:43:51 -0400 From: Adam McDougall User-Agent: Thunderbird 2.0.0.22 (X11/20090625) MIME-Version: 1.0 To: Michael Proto References: <20090713165717.GN2145@acme.spoerlein.net> <1de79840907131028n5b8f21deyd968639732c651a4@mail.gmail.com> In-Reply-To: <1de79840907131028n5b8f21deyd968639732c651a4@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: Vlad Galu , freebsd-stable@freebsd.org Subject: Re: pw groupadd/useradd fail when the nscd cache is used for name/group resolution 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, 13 Jul 2009 17:43:53 -0000 Michael Proto wrote: > On Mon, Jul 13, 2009 at 12:57 PM, Ulrich Spörlein wrote: > >> On Thu, 09.07.2009 at 16:13:25 +0300, Vlad Galu wrote: >> >>> I've stumbled upon this while installing postgres. In >>> /etc/nsswitch.conf I had "group: cache files compat" and "passwd: >>> cache files compat". Once I commented them out things started working >>> again. Before the change, this is how it looked like: >>> >>> -- cut here -- >>> [root@vgalu /usr/ports/databases/postgresql84-server]# pw group add pgsql -g 70 >>> pw: group disappeared during update >>> [root@vgalu /usr/ports/databases/postgresql84-server]# pw group add pgsql -g 70 >>> pw: group 'pgsql' already exists >>> [root@vgalu /usr/ports/databases/postgresql84-server]# >>> -- and here -- >>> >>> Shouldn't 'files' be used upon a cache miss? If this is a PEBKAC, >>> sorry for the noise. >>> >> Just a me too. This is most likely because nscd is also caching negative >> lookups. The usual workaround would be to restart it using >> /etc/rc.d/nscd restart >> >> > > A slightly lower-impact alternative would be to use "nscd -i passwd" > to invalidate the password cache. > > > -Proto > _______________________________________________ > I was intending to report this soon as well (its been on my list for a while) as a problematic issue while installing ports. The other issue I had was Java would crash immediately if I had nscd running (configured to cache YP). I plan to report that soon if it still happens with 1.6. I probably tested with 1.4 or 1.5.