View Full Version : [ubuntu] Messed up my groups

August 3rd, 2009, 10:17 PM
So I was trying to add myself to a group with "usermod -a -G <group> <user>" and I accidentally removed myself from all of the secondary groups I was a part of. Now when I try a sudo command, it tells me that I'm "not in the sudoers file" what can I do?


August 3rd, 2009, 10:48 PM

August 3rd, 2009, 10:50 PM
I figured it out, had to boot in recovery mode and did:

sudo visudo

and added my user to the file as in:

brian ALL=(ALL) ALL

but then removed it once I changed my groups back (luckily I had backed up earlier today so that I have all my groups back now).