Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

It seems i can't edit the plist file from LaunchAgents—even if I sudo, I'm prevented from any deletion/alteration. Do I have to necessarily disable SIP to do this?

share|improve this question
    
Did you try it & see what happens? – Tetsujin Jan 13 at 10:50
up vote 5 down vote accepted

Disable the LaunchAgent (not LaunchDaemons) and reboot your machine (without sudo):

$ launchctl unload /System/Library/LaunchAgents/com.apple.gamed.plist

In case you want to enable it again at one point:

$ launchctl load /System/Library/LaunchAgents/com.apple.gamed.plist
share|improve this answer
    
it says: /System/Library/LaunchAgents/com.apple.gamed.plist: Could not find specified service I'm on 10.11.2; thanks for the suggestion! – jrgd Jan 13 at 12:25
    
I just tried it on my machine and it worked fine. Same OS (10.11.2). Did you copy and paste the command from my answer? Edit: make sure to not use sudo – frdmn Jan 13 at 12:26
    
yep I did; check also inside the directory and the plist file is there… did you remove SIP/rootless by any chance in the past? – jrgd Jan 13 at 12:28
    
No, I haven't: paste.frd.mn/loyon - Do you see the service in launchctl list? – frdmn Jan 13 at 12:32
1  
You're very welcome! – frdmn Jan 13 at 12:40

According to this thread you can also do something like:

defaults write com.apple.gamed Disabled -bool true
share|improve this answer

what about sudo launchctl unload /System/Library/Launch\ Daemons/com.apple.gamed.plist ?

share|improve this answer
    
/System/Library/Launch Daemons/com.apple.gamed.plist: No such file or directory --- I'm on 10.11.2 (thanks for the suggestion) – jrgd Jan 13 at 11:24
    
my bad, it's a LaunchAgent : sudo launchctl unload /System/Library/Launch\ Agents/com.apple.gamed.plist – PEM8000 Jan 13 at 12:25
    
thanks; the directory is LaunchAgents on my machine; upon using the right path i got a "Could not find specified service" that makes me sad – jrgd Jan 13 at 12:31

You have to first enter csrutil disable in Terminal when in Recovery Mode, then restart make changes, restart again in Recovery Mode and do csrutil enable, restart.

But I do not know which processes when modified will compromise boot in El Capitan

share|improve this answer
    
This enables root login. What does it have to do with gamed? – Dmitry Dulepov Jun 23 at 5:05
    
This is a really really bad idea from a security standpoint, and it doesn't address the question. – ruief Sep 11 at 5:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.