Sudo Help : )

Discussion in 'Mac Basics and Help' started by nbarer, Jun 11, 2019 at 1:17 PM.

  1. nbarer macrumors newbie

    Joined:
    Monday
    #1
    Hello All,

    I have messed up my sudo situation and don't know how to fix it.

    Truth be told, I was trying to get some cracked software to work with a sudo command and must have made a careless mistake...

    Now whenever I try a sudo command, I get the following response:

    sudo: /etc/sudoers is world writable
    sudo: no valid sudoers sources found, quitting
    sudo: unable to initialize policy plugin

    And a bunch of my software has started to act up. I was going to try to reload the operating system, but would love to know a better solution if one exists :)

    Thanks for your patience,

    Noah
     
  2. jerryk macrumors 601

    Joined:
    Nov 3, 2011
    Location:
    SF Bay Area
    #2

    I would reload. And really don't use cracked software. Pony up the money or do without.
     
  3. NoBoMac macrumors 68020

    Joined:
    Jul 1, 2014
    #3
    Messed up sudoers file should not affect any programs, so, something else going on with those. And judging from the error message, probably went and messed up protections on other things that you should not have. So, re-install OS to get things back to square one. Karma is a b**ch.

    Can boot into recovery mode, bring up a terminal, and try: chmod 0440 /etc/sudoers

    (Seem to recall that is the protection bits that need to be toggled; not at a Mac right now; but that won't fix other issues you probably have)
     
  4. 556fmjoe macrumors 65816

    556fmjoe

    Joined:
    Apr 19, 2014
    #4
    From the limited details in the OP, my guess is malware. /etc/sudoers is never going to be made world-writable by accident, so if you executed that cracked software with root privileges it probably pwned your machine and tried to add itself to the sudoers file in a sloppy way.
     

Share This Page

3 June 11, 2019