Lost some groups on my system
jordon at envygeeks.com
Fri Aug 27 03:26:42 UTC 2010
On 8/26/2010 9:30 PM, Christopher Lemire wrote:
> Hello Ubuntu users, I was trying to change the groups the git user (I
> created for a git repository) belonged to. I thought I was changing which
> groups that user belonged to but I ended up removing a lot of groups from my
> system. Now I can't use sudo because one of the groups, admin, was deleted.
> I made a temporary fix to that by enabling the root user account and using
> it when needed. How can I restore to default? I thought that dpkg
> --configure -a would do it, but it did not.
You should have /etc/groups.orig and /etc/passwd.orig I don't remember
the command off the top of my head but there is a command to do it too,
try searching for it in /sbin and /usr/sbin
More information about the ubuntu-users