From: Per Olofsson Date: Tue, 11 Dec 2018 09:34:02 +0000 (+0100) Subject: Clarify defaults write commands. X-Git-Tag: v1.4~3^2~2 X-Git-Url: https://git.p6c8.net/policy-templates.git/commitdiff_plain/53fcf1ccc32356d7cb3b3100493abcf5cdf27d1b?ds=inline;hp=--cc Clarify defaults write commands. --- 53fcf1ccc32356d7cb3b3100493abcf5cdf27d1b diff --git a/mac/README.md b/mac/README.md index e2c5103..9fa0ac1 100644 --- a/mac/README.md +++ b/mac/README.md @@ -26,11 +26,11 @@ which would be set in the plist file like this: http://example.com ``` -can be set via the command line like this: -``` -defaults write org.mozilla.firefox Homepage__URL -string "http://example.com" +As correctly writing nested values with the `defaults` command can be hard, Firefox also supports writing nested values by separating them with `__`, like this: +```bash +sudo defaults write /Library/Preferences/org.mozilla.firefox Homepage__URL -string "http://example.com" ``` Before any command line policies will work, you need to enable policies like this: -``` -defaults write org.mozilla.firefox EnterprisePoliciesEnabled -bool TRUE +```bash +sudo defaults write /Library/Preferences/org.mozilla.firefox EnterprisePoliciesEnabled -bool TRUE ```