Results 1 to 6 of 6

Thread: sudo (change) surprise

  1. #1
    Join Date
    Oct 2009
    Location
    Elgin, IL USA
    Beans
    2,533
    Distro
    Ubuntu 12.04 Precise Pangolin

    sudo (change) surprise

    Just a heads up that if you accept the maintainer's version of /etc/sudoers for a recent update, it removes admin group as a default sudoer from that file, leaving you unable to sudo anything if you are not a member of sudo group (which nobody is unless specifically added).

    So you might want to add yourself to sudo group before doing updates. Or if like me, you were unaware of that, you can boot a (recovery) kernel and edit /etc/group from a root shell. It is a comma separated list of users in that group like:

    Code:
    sudo:x:27:efflandt,deffland
    i5 650 3.2 GHz, 8 GB, nvidia GTX 550 Ti 32" 1080p | i7-4700, 8 GB, Intel HD 4600/nvidia GTX 765M 15.6" 1080p | etc.

  2. #2
    Join Date
    Jan 2007
    Beans
    1,010
    Distro
    Kubuntu Development Release

    Re: sudo (change) surprise

    Yup, noticed this as well... promptly rebooted into a root shell and fixed it.
    Another way to achieve the same effect is to simply run `adduser username sudo` as root
    my shiz: http://inportb.com/
    use Dropbox if you need an awesome free file hosting service; please follow my referral link for an extra 256MB of free storage.

  3. #3
    Join Date
    Jun 2007
    Beans
    12,951

    Re: sudo (change) surprise


  4. #4
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: sudo (change) surprise

    There was just another update to sudo1.7.4p4-5ubuntu2, that fixes the problem

  5. #5
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: sudo (change) surprise

    Having so many times in the past had the maintainer's version of grub configuration bork my multibooting systems, I went with 'N' for the sudoers file. Now that I am reading this, I am glad I did!

    Please do not PM me about your forum account unless you have been asked to. The correct place to contact an admin about your account is here.

  6. #6
    Join Date
    Apr 2010
    Beans
    66
    Distro
    Ubuntu Development Release

    Re: sudo (change) surprise

    If you have been hit with this and need more detailed guidance on how to recover (as opposed to reinstall), I suggest looking at this guide

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
  •