7

While I was trying to unload my nfsd instance I found out that I cannot do it anymore.

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.nfsd.plist

/System/Library/LaunchDaemons/com.apple.nfsd.plist: Operation not permitted while System Integrity Protection is engaged

This behaviour was introduced with the Mac OS Sierra update 10.12.4.

How can I enable/disable the nfsd daemon?

Should I disable the System Integrity Protection, stop/start the service and enable the System Integrity Protection every time? And, if yes, how?

0
7

Firstly, you'll need to disable the "System Integration Protection":

How to Disable System Integrity Protection

And now, you'll be able to disable your "Notification Center":

launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist

And then, kill the current instance of "Notification Center":

killall NotificationCenter

When you reboot, isn't necessary to do that anymore...

I hope I've helped

PS: Don't forget, at this point your root user will have all permissions. I recommend to reboot into recovery mode one more time to enable your System Integration Protection:

csrutil enable
2
  • 7
    Not sure if I have understood your answer. My question was about how to disable nfsd aka network file system daemon, so what's Notifications Center? – freedev May 24 '17 at 6:37
  • Tried same with unloading RCD, but after enabling protection back - it become loaded again. – extempl Oct 10 '20 at 4:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .