Results 1 to 4 of 4

Thread: Sudoers File Permissions Error

  1. #1
    Join Date
    Dec 2011
    Beans
    2

    Unhappy Sudoers File Permissions Error

    Recently, when I've been trying to use any "sudo" commands in the Terminal, it's been rejecting me and coming up with this error:

    sudo: /etc/sudoers is mode 0666, should be 0440
    sudo: no valid sudoers sources found, quitting

    And then putting me back to the ordinary command line. This is urgent, as it renders in particular the "sudo apt-get" and "sudo -i" commands totally invalid; I can't install apps from the command line. I have absolutely no idea what caused this, neither do I have any idea how to fix it (probably something to do with chmod, but when I try that, it rejects me) - so any help would be greatly appreciated.

    Thanks!

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

    Re: Sudoers File Permissions Error

    Easiest way to fix it would be from install CD or bootable iso on USB. But when you sudo chmod it from there, you need to begin with the path to your mounted internal hard drive before the etc/sudoers.
    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.

  3. #3
    Join Date
    May 2006
    Location
    Boston
    Beans
    1,909
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Sudoers File Permissions Error

    Quote Originally Posted by eXtaticus View Post
    Recently, when I've been trying to use any "sudo" commands in the Terminal, it's been rejecting me and coming up with this error:

    sudo: /etc/sudoers is mode 0666, should be 0440
    sudo: no valid sudoers sources found, quitting

    And then putting me back to the ordinary command line. This is urgent, as it renders in particular the "sudo apt-get" and "sudo -i" commands totally invalid; I can't install apps from the command line. I have absolutely no idea what caused this, neither do I have any idea how to fix it (probably something to do with chmod, but when I try that, it rejects me) - so any help would be greatly appreciated.

    Thanks!
    boot the os in recovery mode(at boot time keep the shift key pressed untill u see the grub menu, press again shift to see the recovery menu) and from there select shell prompt as root user:
    once u login do :
    Code:
    chmod 440 /etc/sudoers
    reboot now

    blog
    Donations BTC : 12FwoB7uAM5FnweykpR1AEEDVFaTLTYFkS
    DOUBLEPLUSGOOD!!

  4. #4
    Join Date
    Dec 2011
    Beans
    2

    Re: Sudoers File Permissions Error

    Quote Originally Posted by efflandt View Post
    Easiest way to fix it would be from install CD or bootable iso on USB. But when you sudo chmod it from there, you need to begin with the path to your mounted internal hard drive before the etc/sudoers.
    How do I do that?

    EDIT: Forget it, I'm moving to Mint.
    Last edited by eXtaticus; December 6th, 2011 at 06:03 PM.

Tags for this Thread

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
  •