Question

I've been trying to add "official company Fonts" to my DeployStudio workflow imaging new Macs. I'm testing it a terminal and in the DeployStudio Runtime environment (like WinPE for PC).

Here’s the actual command:

find /Common/Fonts/ -type f -exec cp {} /System/Library/Fonts \;

The many fonts are in a folder structure that has many levels, hence the find command…

Each time I get a permission error using local admin or root user.

What am I missing? It's right in my face right?

Was it helpful?

Solution

/System/Library/Fonts is restricted with System Integrity Protection, since this folder is intended purely for macOS built-in first-party fonts.

Instead, choose one of the following locations depending on your intentions:

  • /Library/Fonts to apply to every user, existing and newly created.
  • ~/Library/Fonts to apply to the current user.
  • /Library/User Template/Non_localized/Library/Fonts to apply to new users.

OTHER TIPS

Thanks everybody for all the quick aswers!

Looks like a simpler script did the trick:

cp -R /Volume/HDD/Fonts/ /Volume/HDD/Library/Fonts/

Have a good one!

Licensed under: CC-BY-SA with attribution
Not affiliated with apple.stackexchange
scroll top