I -- I want to do something simple, but no matter what way I write the following script, it doesn't seem to change anything;
#!/bin/bash
#Backup the original authorization file
/bin/cp /etc/authorization /etc/authorization.original.backup
# Unlock Energy Saver preference pane
/usr/libexec/PlistBuddy -c 'Set :rights:system.preferences.energysaver:group everyone' /etc/authorization
Or
#Copy the authorization file to a temporary location & make it a plist
/bin/cp -pr /etc/authorization /private/tmp/authorization.plist
#Allow Device region code to be set
/usr/libexec/PlistBuddy -c 'Set :rights:system.device.dvd.setregion.initial:group everyone' /private/tmp/authorization.plist
# Unlock the Energy saver preference pane
/usr/libexec/PlistBuddy -c 'Set :rights:system.preferences.energysaver:group everyone' /private/tmp/authorization.plist
# Move file back to original location
/bin/mv /private/tmp/authorization.plist /etc/authorization
The script completes without failure, but nothing has changed with the Energy Saver preferences.
I'm not even sure it's the script, because if I run that command via terminal, it doesn't seem to do anything either.
Is there another way of allowing non-administrators to change their sleep/wake times in Energy Saver in Mountain Lion?