From owner-freebsd-questions@FreeBSD.ORG Thu Aug 21 17:36:32 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 1965E10656C4 for ; Thu, 21 Aug 2008 17:36:32 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id E77BD8FC1D for ; Thu, 21 Aug 2008 17:36:31 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from [10.3.4.15] (rrcs-74-218-226-253.se.biz.rr.com [74.218.226.253]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id m7LHaT1r080525; Thu, 21 Aug 2008 13:36:30 -0400 (EDT) (envelope-from lists@jnielsen.net) From: John Nielsen To: freebsd-questions@freebsd.org Date: Thu, 21 Aug 2008 13:36:21 -0400 User-Agent: KMail/1.9.9 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1256" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200808211336.21579.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: sbremal@hotmail.com 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:36:32 -0000 I would start by comparing the contents of /usr/ports/GIDs with the ports you have installed (as listed in /var/db/pkg). You can get a stock group file from src/etc/group. Reinstalling ports will recreate the groups they use (though you could do most of it manually), and you may be on your own for any custom groups you have. On Thursday 21 August 2008 12:05:49 pm sbremal@hotmail.com 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 > _________________________________________________________________ > News, entertainment and everything you care about at Live.com. Get it > now! http://www.live.com/getstarted.aspx > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"