If you are not forced to use defaults write you can use the following command. It interacts with the OS the same as if you were to utilize System Preferences.
TESTED ON:
- 10.5.x
- 10.6.x
- 10.7.x
- 10.8.x
- 10.9.x
sudo osascript -e 'tell application "System Events" to set require password to wake of security preferences to false'
NOTE: If the command is being run inside of a script that has been given root privileges you would not need the sudo.
osascript -e 'tell application "System Events" to set require password to wake of security preferences to false'
First of all you may need to unhide the hiden files so open terminal and run those commands :
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
To switch back, do the same but substitute FALSE for TRUE.
Now
Login to your guest account, there set chrome as your default browser (or even Firefox)
Then do not logout ! This would erase your session, so use the on the top right corner use the swich user drop down menue,
Now that you are back again in your Admin account,
Find the new temporary guest home folder, under
Users/Guest
Select all the folders inside of it,
And copy them in :
/System/Library/User Template/English.lproj/
English or whatever your languish is if you are using your computer in french this should be :
/System/Library/User Template/French.lproj/
as you can see in this folder there was the defaults folders for the guest account
By modifying them you have just modified default appearance of the guest user account
You may want to save this folder in a safe place before, in case you want to undo your work.
For reference ,
You just have to follow the steps as shown in this video :
https://www.youtube.com/watch?v=JU-W2-_c5bA
Or if you prefer text version :
http://www.michaelsmac.com/modules.php?name=News&file=article&sid=394
Best Answer
Like any part of the OS, Apple can change or modify the preference keys. Anecdotally, I can certainly remember people commenting that some keys have been removed, so that setting a particular preference no longer works.
For instance, Apple changed
PMPrintingExpandedStateForPrint
toPMPrintingExpandedStateForPrint2
at some point. This is the key that specified whether the print dialog is expanded or simplified.As mentioned on this site before, Apple does not document many of the available keys; most of which have been found by inquisitive people searching for text strings in executables. So a list of changes seems unlikely.
The
defaults write
command does not check for validity. So I can add the keyIamFabulous -bool true
to Preview's plist, and it will sit there doing nothing. Preview will never check for the value of that key. Any 'defunct' key/value will act similarly.