Ask HN: I broke disk permissions in el capitan, Not SIP, anyone know how to fix?
Sorry,
I know this isn't really the place for this, but people here are usually just super helpful and not extremely hostile (like one SO).
In my haste to move to El Capitan, I think I just chowned all of /usr/local, even as rootless (csrutil disable) I can no longer use sudo because /usr/bin/su and /usr/bin/sudo are owned by me.
-rwsr-xr-x 1 myname wheel 25K Sep 17 03:07 su
-r-x--x--x 1 myname wheel 165K Sep 17 03:07 sudo
so I can't change it back because there is no effective uid effective uid is not 0, is sudo installed setuid root?
is the output from running anything as sudo. I have to ship something for a client asap, and I can't install programs anymore. There is no disk permissions repair on el capitan, and I am not sure installing the OS again would help (and it takes like an hour).If anyone has any idea how to sort this, I would be super appreciative.
chown, sudo chown, and chmod do not work even with SIP disabled.
tl;dr I am a moron and borked permissions.