Date: Thu, 21 Aug 2008 12:48:05 -0500 From: "Paul A. Procacci" <pprocacci@datapipe.com> To: John Nielsen <lists@jnielsen.net> Cc: sbremal@hotmail.com, freebsd-questions@freebsd.org Subject: Re: /etc/groups gone Message-ID: <48ADAA55.4020404@datapipe.com> In-Reply-To: <200808211336.21579.lists@jnielsen.net> References: <BAY119-W2313DAE981608B171884C4A96B0@phx.gbl> <200808211336.21579.lists@jnielsen.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48ADAA55.4020404>