From owner-freebsd-questions@FreeBSD.ORG Thu Aug 21 16:17:50 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 34A47106564A for ; Thu, 21 Aug 2008 16:17:50 +0000 (UTC) (envelope-from sbremal@hotmail.com) Received: from bay0-omc1-s28.bay0.hotmail.com (bay0-omc1-s28.bay0.hotmail.com [65.54.246.100]) by mx1.freebsd.org (Postfix) with ESMTP id 228068FC17 for ; Thu, 21 Aug 2008 16:17:50 +0000 (UTC) (envelope-from sbremal@hotmail.com) Received: from BAY119-W23 ([207.46.9.58]) by bay0-omc1-s28.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 21 Aug 2008 09:05:50 -0700 Message-ID: X-Originating-IP: [80.187.106.1] From: To: Date: Thu, 21 Aug 2008 16:05:49 +0000 Importance: Normal Content-Type: text/plain; charset="windows-1256" Content-Transfer-Encoding: 8bit MIME-Version: 1.0 X-OriginalArrivalTime: 21 Aug 2008 16:05:50.0729 (UTC) FILETIME=[C809FF90:01C903A7] X-Mailman-Approved-At: Thu, 21 Aug 2008 17:26:25 +0000 Subject: /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 16:17:50 -0000 Hi, Yesterday night at 1 a.m. I have managed to remove /etc/groups (rm instead of vi, was already sleepying). Luckily only a few groups (2-3) was created earlier. No backup, "of course". I believe the file system is still correct, it uses group IDs instead of names (?). Though ls does not show the correct group names (only IDs) and creating new groups will reuse the old group IDs. 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? Many thanks. Balazs _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx