Results 1 to 4 of 4

Thread: User removed from sudoers

  1. #1
    Join Date
    Mar 2005
    Location
    Ice cold Norway
    Beans
    519

    User removed from sudoers

    Hi! I managed without knowing to remove my user from the sudo users group. I did usermod -G fuse <username> and now I can't sudo anymore. How do I get back to the promised land?

    I'm in a rut and I want out!

  2. #2
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,617
    Distro
    Ubuntu

    Re: User removed from sudoers

    Boot into a root recovery shell and type

    Code:
    adduser username admin

  3. #3
    Join Date
    Jan 2008
    Beans
    4,757

    Re: User removed from sudoers

    Quote Originally Posted by graabein View Post
    Hi! I managed without knowing to remove my user from the sudo users group. I did usermod -G fuse <username> and now I can't sudo anymore. How do I get back to the promised land?

    I'm in a rut and I want out!
    FYI, you should have done:
    Code:
    usermod -G -a fuse <username>
    The above post by nothingspecial will add you back onto admins.

    But as soon as you get that control back, it's best just to readded everything in one batch again:
    Code:
    usermod -G adm,dialout,cdrom,audio,fuse,plugdev,admin -a <username>
    Regards
    Iain

  4. #4
    Join Date
    Mar 2005
    Location
    Ice cold Norway
    Beans
    519

    Re: User removed from sudoers

    Thanks guys.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •