Results 1 to 7 of 7

Thread: Please help--I broke Sudo

  1. #1
    Join Date
    Mar 2013
    Beans
    12

    Please help--I broke Sudo

    Hello everyone:

    I am now 2 weeks into solely using Ubuntu 13.04 as only OS on my new System 76 Panp9. I am very impressed with it so far and am extremely satisfied with Ubuntu. Please help me because it seems I have broken sudo while trying to give permissions to Plex media server. Currently when I'm trying to execute a sudo commond in terminal I recieve the following error:

    dayspring@Dayspring:~$ sudo apt-get update
    sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
    sudo: fatal error, unable to load plugins

    Please tell me what I did wrong and how could I fix this. Advanced Thank you.

  2. #2
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    4,640
    Distro
    Xubuntu

    Re: Please help--I broke Sudo

    boot a live dvd/usb and mount your / partition (open the drive in the file viewer)
    then do this
    Code:
    sudo chown root:root /media/$USER/*/usr/lib/sudo/sudoers.so
    sudo chmod 644 /media/$USER/*/usr/lib/sudo/sudoers.so
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
    Putting your Networked Printer's scanner software to shame PHP Scanner Server
    I frequently edit my post when I have the last post

  3. #3
    Join Date
    Mar 2013
    Beans
    12

    Re: Please help--I broke Sudo

    Thank you very much, pqwoerituytrueiwoq!!! Your solution worked.

  4. #4
    Join Date
    Mar 2013
    Beans
    12

    Re: Please help--I broke Sudo

    Oh I forgot to ask:
    Is there a good site where I can learn what I did wrong and how/why your solution worked? I want to be able to fix these issues on my own in the future.
    Again, thank you for taking the time to assist me.

  5. #5
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    4,640
    Distro
    Xubuntu

    Re: Please help--I broke Sudo

    i looked at the permissions on my system for that file: /usr/lib/sudo/sudoers.so
    then a played with chmod till i found the right number, then i gave you the code i did
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
    Putting your Networked Printer's scanner software to shame PHP Scanner Server
    I frequently edit my post when I have the last post

  6. #6
    Join Date
    Nov 2012
    Beans
    22

    Re: Please help--I broke Sudo

    I guess sudo checks the permission of the file, so you can't insert your own sudoers.o with LD_PRELOAD (what might allow you to use a changed file that always allows you to do a sudo without password...

    And you changed the permissions, but nobody can tell you when, maybe you will find out by reading the guide again?

    David.

  7. #7
    Join Date
    Apr 2008
    Location
    Australian in Germany
    Beans
    4,010
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Please help--I broke Sudo

    Quote Originally Posted by davidbaumann View Post
    And you changed the permissions,
    yes, this

    Quote Originally Posted by cranet View Post
    sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner.
    indicates that you somehow changed the write permission on that file.
    Michael

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
  •