Skip to content

Instantly share code, notes, and snippets.

@sijad
Created March 21, 2016 18:35
Show Gist options
  • Save sijad/7e58d9bdffa089048d86 to your computer and use it in GitHub Desktop.
Save sijad/7e58d9bdffa089048d86 to your computer and use it in GitHub Desktop.
Disaster with disabled csrutil Mac OS X EL Capitan 10.11
  • accidently run chmod 644 -R /
  • csrutil was disabled

solution:

  • command + s on boot
  • run mount -u / to allow writing
  • change chmod etc to make its content run-able
  • sudo /usr/libexec/repair_packages --verify --standard-pkgs /
  • sudo /usr/libexec/repair_packages --repair --standard-pkgs /

P.S. sudo /usr/libexec/repair_packages --repair --standard-pkgs / couldn't be run in recovery mod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment