Sudo Help : )

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

  1. nbarer macrumors newbie

    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,

  2. jerryk macrumors 601

    Nov 3, 2011
    SF Bay Area

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

    Jul 1, 2014
    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


    Apr 19, 2014
    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