no /System/Library/Caches folder?

Hello


I just saw that I didn't have the System Caches folder...

no folder at this address : /System/Library/Caches

is that normal ?

Thanks


Mac Pro

Posted on Sep 2, 2019 12:58 PM

Reply
11 replies

Sep 6, 2019 10:54 PM in response to keyman

Press command - shift - N on the keyboard an empty untitled folder is created it will prompt to enter admin password , type Caches in the empty field , click on enter key on the keyboard to reestablish the folder alphabetically at right position .



Note : if you have deleted caches folder or it get deleted due to some software installed ( avoid using these cleaners ) , restart the Mac and open safari and browse the Caches folder will automatically create .

Sep 2, 2019 1:51 PM in response to keyman

Not normal. It should be there. If you run this from the Terminal do you get the enabled result?


csrutil status

System Integrity Protection status: enabled.


Something, probably some third-party so-called "Mac Cleaner" product has removed this particular Cache folder location, and the reason why we leave the above protection enabled is to block third-party applications from changing the System folder.


Sep 2, 2019 2:08 PM in response to keyman

Here is all of what I had intended to post. Steps to replace the Caches folder below.


Not normal. It should be there. If you run this from the Terminal do you get the enabled result?


csrutil status

System Integrity Protection status: enabled.


Something, probably some third-party so-called "Mac Cleaner" product has removed this particular Cache folder location, and the reason why we leave the above protection enabled is to block third-party applications from changing the System folder.


The remedy is to boot into Recovery ( ⌘-R ), and run the Terminal from Utilities. On the Terminal command-line:


# csrutil disable
# cd /System/Library
# mkdir Caches
# chown root:wheel ./Caches
# chmod 755 ./Caches
# csrutil enable
# exit



I have listed the steps in the proper order to replace the Caches folder in the /System/Library location with the proper ownership and permissions. I have not had to do this myself, so it isn't clear if one can just carry on as I have shown after disabling System Integrity Protection (SIP), performing the steps, and then re-enabling SIP.


If not, then you can reboot again into Recovery, make the changes following csrutil disable, and finish with csrutil enable before exiting Terminal and rebooting normally.

Sep 2, 2019 2:46 PM in response to VikingOSX

Thanks for your answer,

but please be very careful to give the right command especially when you are asking others users to use the (powerful) Terminal...

Your commands are not perfect :

1. you have to reboot to activate or deactivate SIP

2. when you reboot in Recovery your are not booting on your regular hard drive so cd /System/Library is not in the right place ... right ? :-)

Thanks anyway

Sep 3, 2019 3:13 AM in response to keyman

Ordinarily, I test before I post, and this was one of those epic failures where I neither tested, nor bothered to check about the rebooting to change the SIP status. The steps between the csrutil lines would be done from the Terminal while in a normal boot and would need to be prefaced with sudo to effect the changes from your user account.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

no /System/Library/Caches folder?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.