Yes, I am a n00b...

megamaced

Geek Geek Geek!
Okay, I accidently deleted the admin user group from my user name and now I can no longer perform sudo :confused:

I can still log in as root via su though. How can I revert my changes? I need to put my username back in the admin's group
 
Easy fix, thank God for plain-text config files!
Code:
# use your favorite text editor
# to edit the [I]/etc/group[/I] file:
[B][COLOR="Green"]vi /etc/group[/COLOR][/B]
# edit the line with [I]admin[/I] 
# to include your username:
[B][COLOR="Green"]admin:x:###:megamaced[/COLOR][/B]
...where ### = the admin group's ID and megamaced = your username on the box.
 
Back
Top