I'm trying to send a remote script to a set of student laptops through a policy and I'm having some trouble. I assume it's something to do with the management account is the admin and the account we want to alter is the student account (and a standard user?).
The following terminal command sets the checkbox for "Block pop-up windows" to off when run in the user
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2JavaScriptCanOpenWindowsAutomatically -bool true
(found via http://macmule.com/2012/07/31/disabling-safari-5-1-xs-6-xs-pop-up-blocker-from-terminal-2/)
When I set the policy to run on the test client machine (also 10.9.4, new image) in the student user it gives exit code 0, which some googling tells me is a success. The details of the policy log say
Executing Policy Disable Safari Pop-Ups...
[STEP 1 of 1]
Running script Disable Safari Pop-ups...
Script exit code: 0
Script result:
yet, the plist file never gets altered. I've tried adding read/write access for the admin account to the preferences folder, I've looked at logs in console, they all say they're executing the policy but I can't figure out why its not writing the value to the plist.
If I copy and paste the command into terminal in the user and hit return it will execute properly and add the key and the value into the plist just fine.
What am I missing?