Results 1 to 4 of 4

Thread: Getting trouble with Sudo permissions

  1. #1
    Join Date
    Sep 2011
    Beans
    8

    Getting trouble with Sudo permissions

    When I've give "sudo bash" in terminal, following error message is displaying

    sudo : /etc/sudoers is mode 0555, should be 0440
    sudo : no valid sudoers sources found,quitting
    sudo : unable to initialize policy plugin

    What might be wrong, suddenly this message was showing.

  2. #2
    Join Date
    Oct 2012
    Beans
    187

    Re: Getting trouble with Sudo permissions

    Quote Originally Posted by dmahesh22 View Post
    When I've give "sudo bash" in terminal, following error message is displaying

    sudo : /etc/sudoers is mode 0555, should be 0440
    sudo : no valid sudoers sources found,quitting
    sudo : unable to initialize policy plugin

    What might be wrong, suddenly this message was showing.
    /etc/sudoers is by default 0440. you might have changed that accidentally
    can you run other sudo commands? if yes then revert it back to 0440
    Code:
    sudo chmod 0440 /etc/sudoers

  3. #3
    Join Date
    Sep 2011
    Beans
    8

    Re: Getting trouble with Sudo permissions

    the above command is not working,because actual trouble with "Sudo".

    Thanks for reply

  4. #4
    Join Date
    Apr 2012
    Beans
    5,405

    Re: Getting trouble with Sudo permissions

    I think you will need to boot into the recovery console, remount the root filesystem read-write, and do the chmod from there

    Code:
    # mount -o remount,rw /
    # chmod 0440 /etc/sudoers
    # exit
    If you changed file modes on other stuff that you shouldn't (e.g. by doing a recursive chmod in the root filesystem) then other things may be broken as well though.

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
  •