Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't change system file permission on El Capitan #28

Open
fullybaked opened this issue Oct 1, 2015 · 4 comments
Open

Can't change system file permission on El Capitan #28

fullybaked opened this issue Oct 1, 2015 · 4 comments
Labels

Comments

@fullybaked
Copy link

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

@chrishunt
Copy link
Owner

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 chrishunt added the bug label Oct 1, 2015
@jbrooksuk
Copy link

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.

chrishunt added a commit that referenced this issue Oct 15, 2015
See #28.

We can no longer replace the default Mac OS X desktop image because of
the new System Integrity Protection introduced in El Capitan. Instead,
we'll write the image to a location that we are able to modify and
inject that path into desktoppicture.db.
@adamdehaven
Copy link

Any progress on this issue?

@chrishunt
Copy link
Owner

Any progress on this issue?

@adamdehaven #29 is the progress so far. 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants