Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

nbarer

macrumors newbie
Original poster
Jun 10, 2019
5
0
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
 
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


I would reload. And really don't use cracked software. Pony up the money or do without.
 
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)
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.