-1

I have authenticated root user as per this tutorial https://support.apple.com/en-us/HT204012 and edit menu shows Disable Root User option confirming it is enabled.

I am still getting EACCES errors and have to use sudo. Additionally, even with sudo, I am getting an EACCES error about mkdir in an npm package from a terminal script even though I have universal read and write permissions for the whole folder.

enter image description here

enter image description here

enter image description here

Does anybody know what's going on or how I can give myself universal use of the terminal without sudo?

boblikesoup
  • 302
  • 1
  • 3
  • 16

1 Answers1

1

To block malware, resent releases of macOS include System Integrity Protection, which makes the following directories unwritable except as part of an OS upgrade:

  • /System
  • /bin
  • /sbin
  • /usr (except /usr/local, that's writable)
  • "many" applications in /Applications

This feature can't be disabled while the system is booted up – it can only be disabled by rebooting off the "recovery" partition using the csrutil command:

  • Boot your mac holding Command + R before the Apple logo appears
  • Launch Terminal from the Utilities menu
  • Run csrutil status to check the status, and csrutil disable or csrutil enable to change it.
  • Reboot to exit the recovery partition

For more details:

https://developer.apple.com/library/mac/documentation/Security/Conceptual/System_Integrity_Protection_Guide/ConfiguringSystemIntegrityProtection/ConfiguringSystemIntegrityProtection.html

Abhi Beckert
  • 32,787
  • 12
  • 83
  • 110
  • I followed instructions. System Integrity Protection status: disabled. But I still can't do anything without sudo. I would add that to access terminal on the Bootup page after Cmd + R you need to navigate via the top navigation bar. – boblikesoup Sep 03 '16 at 06:39
  • What do you mean "can't do anything without sudo"? – Abhi Beckert Sep 03 '16 at 11:56
  • I mean running commands like npm run and npm install always require a sudo despite being root admin and disabling SIP. – boblikesoup Sep 05 '16 at 03:21