Re: /etc/groups gone
On 22 Aug 2008 , [EMAIL PROTECTED] entreated about freebsd-questions Digest, Vol 229, Issue 13: 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. you want to do man rcs and start using RCS to track changes to your important system files. That way, if you delete one you can just check it out of the RCS store. 'backups with history' -- DA Fo rsythNetwork Supervisor Principal Technical Officer -- Institute for Water Research http://www.ru.ac.za/institutes/iwr/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: /etc/groups gone
Just an addition: On Fri, 22 Aug 2008 09:14:39 +0200, DA Forsyth [EMAIL PROTECTED] wrote: you want to do man rcs and start using RCS to track changes to your important system files. That way, if you delete one you can just check it out of the RCS store. 'backups with history' You can use CVS (comes with the FreeBSD system), too: % man cvs I found it to be a very comfortable system to manage file changes on the path of my own software development (document progress, undo bad inventions, checkin and checkout even with multiple contributors). Using CVS to manage self made system configuration files is, by the way, a very good idea I never thought of. I'll see if I like this concept. -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
/etc/groups gone
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 [EMAIL PROTECTED]
Re: /etc/groups gone
On Aug 21, 2008, at 9:05 AM, [EMAIL PROTECTED] wrote: 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? You should start with /usr/src/etc/group, which is the original version of the groups file. For each user account added, normally a group is also created with gid == uid. Once you've got those back, add any users to wheel and so forth, and then do a find /usr -nogroup (check other paths if needed) to see whether you're missing something, perhaps from ports. Regards, -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: /etc/groups gone
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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: /etc/groups gone
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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] /var/backups might have various backups of those important files. Might want to tcheck that out. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: /etc/groups gone
On 21 aug 2008, at 18:05, [EMAIL PROTECTED] 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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: /etc/groups gone
[EMAIL PROTECTED] wrote: 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. Yes, there is a backup. Restore from /var/backups/group.bak. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd C++ is to C as Lung Cancer is to Lung. -- Thomas Funke ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: /etc/groups gone
Great help from all of you! Thank you, Balazs Date: Thu, 21 Aug 2008 21:43:06 +0200 From: [EMAIL PROTECTED] To: freebsd-questions@FreeBSD.ORG; [EMAIL PROTECTED] Subject: Re: /etc/groups gone [EMAIL PROTECTED] wrote: 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. Yes, there is a backup. Restore from /var/backups/group.bak. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd C++ is to C as Lung Cancer is to Lung. -- Thomas Funke _ Discover the new Windows Vista http://search.msn.com/results.aspx?q=windows+vistamkt=en-USform=QBRE___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]