Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Aug 2008 19:50:24 +0200
From:      Peter Boosten <peter@boosten.org>
To:        "<sbremal@hotmail.com>" <sbremal@hotmail.com>
Cc:        "<freebsd-questions@freebsd.org>" <freebsd-questions@freebsd.org>
Subject:   Re: /etc/groups gone
Message-ID:  <DF6BDA4A-BAF8-4CAE-BC9A-CAC185C63E24@boosten.org>
In-Reply-To: <BAY119-W2313DAE981608B171884C4A96B0@phx.gbl>
References:  <BAY119-W2313DAE981608B171884C4A96B0@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help


On 21 aug 2008, at 18:05, <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
> ________________

Mergemaster wolk recreate the default groups.

Peter



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DF6BDA4A-BAF8-4CAE-BC9A-CAC185C63E24>