I recently wiped out /etc/group by being dumb.
I have taken care of obvious missing groups, such sudoers and audio, but is there any way for me to determine if there are more groups missing?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
Check to see if
/etc/group- (with a tailing dash) exists. That's a backup of the groups file.
I'm more familiar with Debian and Red Hat than Arch, but in general, groups are configured:
Under Debian, forcing a reinstall of all package would take care of the first two instances, and looking at
/home the remainder.
And primary user GIDs are the fourth
/etc/passwd field by
After taking care of the obvious system groups, take a sweep through /home and maybe run a
find looking for any GIDs that aren't in your
/etc/groups file. That will tend to point to to any unrestored data.
Meantime, you should also be asking yourself:
/etc/groupin the first place?
/etcunder revision control?
I'd focus strongly on addressing all three issues.