From owner-freebsd-stable@FreeBSD.ORG Mon Jul 13 17:28:14 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 B2D8F1065672 for ; Mon, 13 Jul 2009 17:28:14 +0000 (UTC) (envelope-from mike@jellydonut.org) Received: from mail-fx0-f224.google.com (mail-fx0-f224.google.com [209.85.220.224]) by mx1.freebsd.org (Postfix) with ESMTP id 513028FC08 for ; Mon, 13 Jul 2009 17:28:13 +0000 (UTC) (envelope-from mike@jellydonut.org) Received: by fxm24 with SMTP id 24so2024614fxm.43 for ; Mon, 13 Jul 2009 10:28:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.107.9 with SMTP id z9mr2292731fao.1.1247506093237; Mon, 13 Jul 2009 10:28:13 -0700 (PDT) In-Reply-To: <20090713165717.GN2145@acme.spoerlein.net> References: <20090713165717.GN2145@acme.spoerlein.net> Date: Mon, 13 Jul 2009 13:28:13 -0400 Message-ID: <1de79840907131028n5b8f21deyd968639732c651a4@mail.gmail.com> From: Michael Proto To: Vlad Galu , freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: 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:28:14 -0000 On Mon, Jul 13, 2009 at 12:57 PM, Ulrich Sp=F6rlein wrot= e: > 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 pgsq= l -g 70 >> pw: group disappeared during update >> [root@vgalu /usr/ports/databases/postgresql84-server]# pw group add pgsq= l -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