Hi Guys,
We're intending to deploy a policy to disable checking of software updates in iTunes. There is a command-line that will do this and I've created a script around this command. The script is shown below:
#!/bin/sh
# Shell script to disable software update checking in iTunes.
# Compatible with iTunes 11.1 and earlier.
# R.Grunwald, 27 Sep 2013
#------------------------------------------------------------
LOGIN_ID=$3
echo "Updating preference file for ... "${LOGIN_ID}
sudo -u ${LOGIN_ID} defaults write com.apple.iTunes disableCheckForUpdates -bool YES
However, the setting doesn't apply and we can still select iTunes -> Check for Updates from the Apple menu-bar. When I run the above defaults command in Terminal, an error message appears as shown below.
bash-3.2# sudo -u appletest defaults write com.apple.iTunes disableCheckForUpdates -bool YES
2013-09-27 11:54:10.665 defaults[4254:a07] Could not write domain /Users/appletest/Library/Preferences/com.apple.iTunes; exiting
bash-3.2#
The permissions and ownership of the iTunes (.plist) files are:
bash-3.2# ls -l *iTunes*
-rw------- 1 appletest staff 14702 Sep 27 11:43 com.apple.iTunes.eq.plist
-rw------- 1 appletest staff 119693 Sep 27 11:44 com.apple.iTunes.plist
I really can't figure out why the iTunes (.plist) file cannot be modified. Would anyone have any suggestions?
Our test environment uses Macs running OS X 10.8.2 and iTunes 11.1. Our Casper JSS is version 8.7.
Cheers,
Ron.
