macossudoerswritable

"/etc/sudoers is world writable" on Mac OS X Mavericks


Currently, I am working on an OSX Maverick, and I can't use sudo command in Terminal.


My-Mac:~ phucnd$ sudo

sudo: /etc/sudoers is world writable

sudo: no valid sudoers sources found, quitting.

How can i fix it ?


Solution

  • Open Disk Utility, select you disk and click "Repair Disk Permissions"

    enter image description here