Results 1 to 10 of 10

Thread: Fail in sudo (sudoers)!?!

  1. #1
    Join Date
    Jul 2009
    Location
    in front of the computer
    Beans
    139
    Distro
    Ubuntu 9.10 Karmic Koala

    Unhappy Fail in sudo (sudoers)!?!

    Well, the problem is when I go to change the configuration of firewall or any system configuration, ubuntu says:
    "sudo: /etc/sudoers is mode 0777, should be 0440."
    I supose that was a permission configuration and I reboot to recovery mode and change with chmod.
    After this, the system says that I'm not in sudoers file, while and can't change ANY system configuration.
    Help ubunters!

  2. #2

    Re: Fail in sudo (sudoers)!?!

    Same problem

  3. #3
    Join Date
    Feb 2008
    Location
    HOME
    Beans
    377
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Fail in sudo (sudoers)!?!

    follow this tutorial and you can login as root. Now you can add yourself back to sudoers.
    http://www.psychocats.net/ubuntu/resetpassword

    https://help.ubuntu.com/community/Sudoers

  4. #4
    Join Date
    Jan 2008
    Location
    the space between spaces.
    Beans
    1,654

    Re: Fail in sudo (sudoers)!?!

    What command did you use exactly? It should be
    Code:
    chmod 440 /etc/sudoers
    "If a cluttered desk signs a cluttered mind, Of what, then, is an empty desk a sign?" -Albert Einstein.

  5. #5
    Join Date
    Jul 2009
    Location
    in front of the computer
    Beans
    139
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Fail in sudo (sudoers)!?!

    (for damis648) It was that command, yes.
    (for cosine352 or an ubunter ) I'm some novice , tell me what I should write on sudoers for config the system , please.
    Thanks

  6. #6
    Join Date
    Jan 2008
    Location
    the space between spaces.
    Beans
    1,654

    Re: Fail in sudo (sudoers)!?!

    Quote Originally Posted by argos3016 View Post
    (for damis648) It was that command, yes.
    (for cosine352 or an ubunter ) I'm some novice , tell me what I should write on sudoers for config the system , please.
    Thanks
    Just making sure, it sounds as if you may have accidentally used 0440
    "If a cluttered desk signs a cluttered mind, Of what, then, is an empty desk a sign?" -Albert Einstein.

  7. #7
    Join Date
    Jul 2009
    Location
    in front of the computer
    Beans
    139
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Fail in sudo (sudoers)!?!

    Yeah I changed the sudoers file permissions with chmod to 777 going to recovery mode and the problem doesn't it's the first now.
    Now the terminal says some about I'm not in sudoers file. "This error will be reported" or similar.

  8. #8
    Join Date
    Jan 2008
    Location
    the space between spaces.
    Beans
    1,654

    Re: Fail in sudo (sudoers)!?!

    Quote Originally Posted by argos3016 View Post
    Yeah I changed the sudoers file permissions with chmod to 777 going to recovery mode and the problem doesn't it's the first now.
    Now the terminal says some about I'm not in sudoers file. "This error will be reported" or similar.
    No, the permissions of /etc/sudoers MUST be 440.
    Code:
    chmod 440 /etc/sudoers
    Boot into recovery mode and run that now.
    "If a cluttered desk signs a cluttered mind, Of what, then, is an empty desk a sign?" -Albert Einstein.

  9. #9
    Join Date
    Jul 2009
    Location
    in front of the computer
    Beans
    139
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Fail in sudo (sudoers)!?!

    Thanks , I can change the configuration.

  10. #10
    Join Date
    Feb 2008
    Location
    HOME
    Beans
    377
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Fail in sudo (sudoers)!?!

    remember to disable the root account after you are done (if you have enabled it ofcourse) from a sudoers account.

    sudo passwd -l root
    this is a good practice in terms of security.

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
  •