Yes, I am a n00b...

Discussion in 'Linux, BSD and Other OS's' started by megamaced, Aug 4, 2006.

  1. megamaced

    megamaced Geek Geek Geek!

    Likes Received:
    0
    Trophy Points:
    36
    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
     
  2. Anti-Trend

    Anti-Trend Nonconformist Geek

    Likes Received:
    118
    Trophy Points:
    63
    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.
     
  3. megamaced

    megamaced Geek Geek Geek!

    Likes Received:
    0
    Trophy Points:
    36
    Thanks

    I can't use Vi ;)

    Did it in Nano
     
  4. Anti-Trend

    Anti-Trend Nonconformist Geek

    Likes Received:
    118
    Trophy Points:
    63
    [ot]
    You should learn it, it's a useful app, and present on every distro I know of[/ot]
     

Share This Page