From owner-freebsd-stable@FreeBSD.ORG Thu Jul 9 13:13:46 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 768DF1065672 for ; Thu, 9 Jul 2009 13:13:46 +0000 (UTC) (envelope-from dudu@dudu.ro) Received: from mail-fx0-f224.google.com (mail-fx0-f224.google.com [209.85.220.224]) by mx1.freebsd.org (Postfix) with ESMTP id 179258FC17 for ; Thu, 9 Jul 2009 13:13:45 +0000 (UTC) (envelope-from dudu@dudu.ro) Received: by fxm24 with SMTP id 24so130502fxm.43 for ; Thu, 09 Jul 2009 06:13:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.108.74 with SMTP id e10mr331829fap.35.1247145225220; Thu, 09 Jul 2009 06:13:45 -0700 (PDT) From: Vlad Galu Date: Thu, 9 Jul 2009 16:13:25 +0300 Message-ID: To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: 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: Thu, 09 Jul 2009 13:13:46 -0000 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.