From owner-freebsd-questions@FreeBSD.ORG Thu Aug 21 17:33:27 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C049F106567F for ; Thu, 21 Aug 2008 17:33:27 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout020.mac.com (asmtpout020.mac.com [17.148.16.95]) by mx1.freebsd.org (Postfix) with ESMTP id ABCF38FC17 for ; Thu, 21 Aug 2008 17:33:27 +0000 (UTC) (envelope-from cswiger@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from cswiger1.apple.com ([17.227.140.124]) by asmtp020.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0K5Y00DCLOQYKI20@asmtp020.mac.com> for freebsd-questions@freebsd.org; Thu, 21 Aug 2008 10:32:59 -0700 (PDT) Message-id: <52C3313F-FB9D-4922-AFA6-2F17DF17ED10@mac.com> From: Chuck Swiger To: sbremal@hotmail.com In-reply-to: Date: Thu, 21 Aug 2008 10:32:58 -0700 References: X-Mailer: Apple Mail (2.928.1) Cc: freebsd-questions@freebsd.org Subject: Re: /etc/groups gone X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2008 17:33:27 -0000 On Aug 21, 2008, at 9:05 AM, sbremal@hotmail.com wrote: > Is there any better way of rebuilding /etc/groups than guessing and > manually adding one-by-one. > > Can I somehow list all group IDs used by the file system? You should start with /usr/src/etc/group, which is the original version of the groups file. For each user account added, normally a group is also created with gid == uid. Once you've got those back, add any users to wheel and so forth, and then do a "find /usr -nogroup" (check other paths if needed) to see whether you're missing something, perhaps from ports. Regards, -- -Chuck