10

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

1 Answer 1

9

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
3
  • 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, 2017 at 6:37
  • 1
    Tried same with unloading RCD, but after enabling protection back - it become loaded again.
    – extempl
    Oct 10, 2020 at 4:25
  • @extempl Same experience. I created a separate question here.
    – triple_sec
    Jun 2, 2021 at 1:04

You must log in to answer this question.

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