Results 1 to 2 of 2

Thread: Messed up the Ownership & Permissions for "sudoers" file

  1. #1
    Join Date
    Nov 2008
    Beans
    140
    Distro
    Ubuntu 8.10 Intrepid Ibex

    [Solved]Messed up the Ownership & Permissions for "sudoers" file

    I was trying to edit it and add a line for Firestarter and I had no save option so I changed the ownership to administrator and now I get either an su ID error, "is owned by uid 1000 should be 0" and the permissions i.e., "mode is 0660, should be 0440"

    How can I get this back to default???? I got the mode back to 0440 just need to give permissions back to root...


    Thanks guys...
    Last edited by keithld; December 17th, 2008 at 03:09 AM. Reason: Solved

  2. #2
    Join Date
    Mar 2008
    Location
    California, USA
    Beans
    8,111

    Re: Messed up the Ownership & Permissions for "sudoers" file

    If you boot into recovery mode, probably all you need to do to fix the problem is:
    Code:
    chmod 0440 /etc/sudoers
    chown root:root /etc/sudoers
    That should work if the line you added to sudoers doesn't have bad syntax. You should use "visudo" whenever you want to edit sudoers, because it won't let you save sudoers if it has a syntax error. You can use nano with visudo by doing:
    Code:
    EDITOR=nano sudo -E visudo
    Let me know how it goes.
    Last edited by caljohnsmith; December 17th, 2008 at 03:10 AM.

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
  •