Operation not permitted turning off airplay mirroring I'm running the command

sudo chmod 000 /System/Library/CoreServices/AirPlayUIAgent.app/Contents/MacOS/AirPlayUIAgent


Because AirPlay mirroring is messing with one of my programs, but it tells me "Operation is Not Permitted". I'm the owner of this Mac and should definitely be permitted, some help please?
You'll need to disable System Integrity Protection (SIP). It stops anything from modifying System files.

Disabling SIP: (more info in this article)


Enter Recovery HD
From the Utilities menu, select Terminal
Type in csrutil disable