desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Can't change system file permission on El Capitan

Open fullybaked opened this issue 9 years ago • 4 comments

After upgrading to El Capitan then attempting to use desktop I was presented with the following message

It looks like this is the first time you've tried to change your desktop.

We need to make your desktop image writable before we can change it. This only needs to be done once.

$ sudo chown -h $('whoami'):staff /System/Library/CoreServices/DefaultDesktop.jpg && sudo chown $('whoami'):staff /System/Library/CoreServices/DefaultDesktop.jpg
$ sudo chmod -h 664 /System/Library/CoreServices/DefaultDesktop.jpg && sudo chmod 664 /System/Library/CoreServices/DefaultDesktop.jpg

This is despite desktop being installed prior to the update (obviously the update resets permissions on the file)

However the new SIP in El Capitan prevents you from writing to many system directories such as /usr, /System & /bin, regardless of whether or not you are root.

I don't know what the solution is, other than to possibly follow the advice here https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/El_Capitan_and_Homebrew.md and boot into recovery mode to set the permissions

fullybaked avatar Oct 01 '15 11:10 fullybaked

Ah, bummer! Thanks for letting me know. I just updated to El Capitan as well, so I'll start taking a look at this.

chrishunt avatar Oct 01 '15 14:10 chrishunt

FWIW, I've updated to El Capitan and ran the permissions stuff from the linked document (to get Homebrew to work again) and it's still not working. Stupid SIP.

jbrooksuk avatar Oct 07 '15 11:10 jbrooksuk

Any progress on this issue?

adamdehaven avatar Mar 15 '16 18:03 adamdehaven

Any progress on this issue?

@adamdehaven https://github.com/chrishunt/desktop/pull/29 is the progress so far. :grin:

chrishunt avatar Mar 16 '16 22:03 chrishunt