Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save erikng/97d9910ca16e86c720e667bbce6850a2 to your computer and use it in GitHub Desktop.
Save erikng/97d9910ca16e86c720e667bbce6850a2 to your computer and use it in GitHub Desktop.
10.13.4 profile install failure
To prevent unintended installations, profiles containing certain payloads (specifically com.apple.Safari) will require a manual verification even when running as root.
Example:
sudo profiles install -path ~/Desktop/safari.mobileconfig
Enter the admin user name:
sudo profiles -IvF ~/Desktop/safari.mobileconfig
profiles: verbose mode ON
profiles install profile ~/Desktop/safari.mobileconfig for user: (null)
Enter the admin user name:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadIdentifier</key>
<string>cpe.browsers.safari</string>
<key>PayloadRemovalDisallowed</key>
<true/>
<key>PayloadScope</key>
<string>System</string>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>bf900530-2306-0131-32e2-000c2944c108</string>
<key>PayloadOrganization</key>
<string>CPE</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>PayloadDisplayName</key>
<string>Safari</string>
<key>PayloadContent</key>
<array>
<dict>
<key>PayloadType</key>
<string>com.apple.Safari</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>PayloadIdentifier</key>
<string>cpe.browsers.safari</string>
<key>PayloadUUID</key>
<string>3377ead0-2310-0131-32ec-000c2944c108</string>
<key>PayloadEnabled</key>
<true/>
<key>PayloadDisplayName</key>
<string>Safari</string>
<key>ShowFavoritesBar</key>
<true/>
</dict>
</array>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadIdentifier</key>
<string>cpe.browsers.safari</string>
<key>PayloadRemovalDisallowed</key>
<true/>
<key>PayloadScope</key>
<string>System</string>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>bf900530-2306-0131-32e2-000c2944c108</string>
<key>PayloadOrganization</key>
<string>CPE</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>PayloadDisplayName</key>
<string>Safari</string>
<key>PayloadContent</key>
<array>
<dict>
<key>PayloadType</key>
<string>com.apple.ManagedClient.preferences</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>PayloadIdentifier</key>
<string>cpe.browsers.safari</string>
<key>PayloadUUID</key>
<string>3377ead0-2310-0131-32ec-000c2944c108</string>
<key>PayloadEnabled</key>
<true/>
<key>PayloadDisplayName</key>
<string>Safari</string>
<key>PayloadContent</key>
<dict>
<key>com.apple.Safari</key>
<dict>
<key>Forced</key>
<array>
<dict>
<key>mcx_preference_settings</key>
<dict>
<key>ShowFavoritesBar</key>
<true/>
</dict>
</dict>
</array>
</dict>
</dict>
</dict>
</array>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment