From owner-freebsd-questions@FreeBSD.ORG Thu Aug 21 17:48:20 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 AD19B1065678 for ; Thu, 21 Aug 2008 17:48:20 +0000 (UTC) (envelope-from pprocacci@datapipe.com) Received: from fmailhost02.isp.att.net (fmailhost02.isp.att.net [204.127.217.102]) by mx1.freebsd.org (Postfix) with ESMTP id 2E5468FC15 for ; Thu, 21 Aug 2008 17:48:19 +0000 (UTC) (envelope-from pprocacci@datapipe.com) Received: from [10.5.21.122] (adsl-241-169-57.bna.bellsouth.net[74.241.169.57]) by isp.att.net (frfwmhc02) with ESMTP id <20080821174818H0200138jle>; Thu, 21 Aug 2008 17:48:19 +0000 X-Originating-IP: [74.241.169.57] Message-ID: <48ADAA55.4020404@datapipe.com> Date: Thu, 21 Aug 2008 12:48:05 -0500 From: "Paul A. Procacci" User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: John Nielsen References: <200808211336.21579.lists@jnielsen.net> In-Reply-To: <200808211336.21579.lists@jnielsen.net> Content-Type: text/plain; charset=windows-1256; format=flowed Content-Transfer-Encoding: 7bit Cc: sbremal@hotmail.com, 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:48:20 -0000 John Nielsen wrote: > 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" >> > > > _______________________________________________ > 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" > /var/backups might have various backups of those important files. Might want to tcheck that out.