How can I change the ownership of the sudoers file from 501 to 0?

Hi-


I've edited the /etc/sudoers file on a clean install of El Cap and now I can't run the SUDO command. Gives me this:


sudo: /etc/sudoers is owned by uid 501, should be 0

sudo: no valid sudoers sources found, quitting

Now it seems by editing the /etc/sudoers file I've changed the ownership from uid 0 to 501. In Yosemite and before I'd just run 'Repair Permissions' in Disk Utility and I'd be styling..... but this is El Cap.

iMac, OS X El Capitan (10.11), null

Posted on Oct 4, 2015 5:52 PM

Reply
5 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How can I change the ownership of the sudoers file from 501 to 0?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.