Re: /etc/groups gone

2008-08-22 Thread Polytropon
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

Re: /etc/groups gone

2008-08-22 Thread DA Forsyth
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".

RE: /etc/groups gone

2008-08-21 Thread sbremal
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: > &

Re: /etc/groups gone

2008-08-21 Thread Oliver Fromme
[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 Ol

Re: /etc/groups gone

2008-08-21 Thread Peter Boosten
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

Re: /etc/groups gone

2008-08-21 Thread Paul A. Procacci
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

Re: /etc/groups gone

2008-08-21 Thread John Nielsen
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

Re: /etc/groups gone

2008-08-21 Thread Chuck Swiger
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 gro

/etc/groups gone

2008-08-21 Thread sbremal
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 sho