i did this and it said:Boot to safe mode and do this:
chown root:wheel /etc/sudoers
chown: /etc/sudoers: No such file or directory
Any idea what it could be?
Last edited by a moderator:
i did this and it said:Boot to safe mode and do this:
chown root:wheel /etc/sudoers
You haven't said what you're trying to fix. (Tagging onto an old topic isn't normally the way to get good help).
Did you try sudo visudo ?
(you know, it's good that your OS doesn't allow a normal user - non-admin - to change /etc/sudoers)
You are probably in a catch-22 situation.Woops sorry!
Yess I tried to follow a few steps in this thread until it became clear that my problem was different.
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
-r--r----- 1 root wheel 1563 Feb 12 2018 sudoers
Reformatting and reinstalling should work fine. The fresh install will create a valid /etc/sudoers file. I am not sure if just a reinstall would fix the file.I am making a Time Machine Backup of my entire computer. I was hoping to wipe my everything and reformat - reinstall OSX 10.14 and then try to load back my apps and data using the time machine?
Is that possible or am I doomed to failure?
If reloading my apps from my current messed up time machine backup isn't going to work, I thought I would install everything again with that fresh OS, one at a time...
What do you mean by "Reloading the OS might work." Do you mean that there's some way that I may have messed up my computer more permanently such that a reformatting and reinstallation of the OS wouldn't fix?
Thanks in advance,
Noah
The real problem is probably not the file itself, just its permissions. I am assuming that you or some program or script did not actually edit the file, but did change the permissions.Got it - Would there be any sense and possibility in reformatting and reinstalling only to get the sudoers file and then re-inserting it back into my working set up?