The settings are saved at
“/Library/Managed Preferences/$RESTRICTED_USER/com.apple.familycontrols.timelimits.plist”
where $RESTRICTED_USER is the short username of the account you want to parentally control.
You can modify this two ways.
Neither are particularly user-friendly.
I’m going to refer to that full filename path as “$PLIST” and assume the username is ‘ethan’
RESTRICTED_USER=ethan
PLIST=“/Library/Managed Preferences/$RESTRICTED_USER/com.apple.familycontrols.timelimits.plist”
in Terminal,
sudo defaults read "$PLIST"
will show you the settings, which you could modify using
sudo defaults write
but there are arrays involved and that always gets ugly IMO.
A slightly easier way is to edit the plist directly:
First, you have to convert it to XML so you can edit it:
sudo plutil -convert xml1 "$PLIST"
Then you want to edit it in a text editor. This next command will open the file in TextEdit:
sudo open -n -W -F -e "$PLIST"
When you are done editing the file, quit TextEdit, and then run
sudo plutil -convert binary1 "$PLIST"
This will change the plist back into binary form. That may not be necessary, but it won’t hurt.
NOTE: if you use BBEdit, their command line tool
bbedit
will automatically convert the plist, so you could just do this instead:
bbedit "$PLIST"
and it will prompt you to enter your admin password when needed.
The file has settings for Day 0 (Monday) to Day 4 (Friday) and then separate settings for Day 5 and 6 (Saturday and Sunday). (Only a computer scientist would start the week on Monday and number it 0.)
<key>timeLimitSeconds</key> <integer>10800</integer>
That controls how long the account can be used for. 900 seconds would be 15 minutes.
I hope that helps.
Note: you can see the script I made at http://dl.dropbox.com/u/18414/bin/pc-restrict-time.sh