From owner-freebsd-questions@FreeBSD.ORG Thu Aug 21 17:50:31 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 9E481106567B for ; Thu, 21 Aug 2008 17:50:31 +0000 (UTC) (envelope-from peter@boosten.org) Received: from smtpq2.groni1.gr.home.nl (smtpq2.groni1.gr.home.nl [213.51.130.201]) by mx1.freebsd.org (Postfix) with ESMTP id 5C3128FC20 for ; Thu, 21 Aug 2008 17:50:31 +0000 (UTC) (envelope-from peter@boosten.org) Received: from [213.51.130.188] (port=48263 helo=smtp3.groni1.gr.home.nl) by smtpq2.groni1.gr.home.nl with esmtp (Exim 4.60) (envelope-from ) id 1KWEIn-0008P7-MQ; Thu, 21 Aug 2008 19:50:29 +0200 Received: from cp268254-a.landg1.lb.home.nl ([84.25.65.88]:52465 helo=ra.egypt.nl) by smtp3.groni1.gr.home.nl with esmtp (Exim 4.60) (envelope-from ) id 1KWEIn-0008SP-1p; Thu, 21 Aug 2008 19:50:29 +0200 Received: from [192.168.13.82] (iPod.egypt.nl [192.168.13.82]) by ra.egypt.nl (Postfix) with ESMTP id 43A32398DE; Thu, 21 Aug 2008 19:50:28 +0200 (CEST) References: Message-Id: From: Peter Boosten To: "" In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Mailer: iPod Mail (5C1) Mime-Version: 1.0 (iPod Mail 5C1) Date: Thu, 21 Aug 2008 19:50:24 +0200 X-Spam-Score: 0.5 (/) Cc: "" 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:50:31 -0000 On 21 aug 2008, at 18:05, wrote: > > 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 > ________________ Mergemaster wolk recreate the default groups. Peter