To set the Guest account login times (time limits, or curfew):
Use the following long comnand, edit the values for start and end for each day.
dscl . -mcxedit /Users/Guest com.apple.familycontrols.timelimits limits-list '({allowancesActive = 1;curfews = {friday = ({end = "06:00:00";start = "00:00:00";},{end = "23:59:59";start = "17:00:00";});monday = ({end = "06:00:00";start = "00:00:00";},{end = "23:59:59";start = "17:00:00";});saturday = ({end = "06:00:00";start = "00:00:00";},{end = "23:59:59";start = "17:00:00";});sunday = ({end = "06:00:00";start = "00:00:00";},{end = "23:59:59";start = "17:00:00";});thursday = ({end = "06:00:00";start = "00:00:00";},{end = "23:59:59";start = "17:00:00";});tuesday = ({end = "06:00:00";start = "00:00:00";},{end = "23:59:59";start = "17:00:00";});wednesday = ({end = "06:00:00";start = "00:00:00";},{end = "23:59:59";start = "17:00:00";});};groupID = "__COMPUTER__";itemType = "com.apple.familycontrols.timelimits.computer";name = Computer;})'
To see the status of guest account time limits:
dscl . -mcxread /Users/Guest com.apple.familycontrols.timelimits limits-list
or:
dscl . -mcxread /Users/Guest com.apple.familycontrols.timelimits limits-list | egrep "end|start" | sort | uniq
FILES INVOLVED:
/Library/Managed Preferences/Guest/com.apple.familycontrols.timelimits.plist
Contains curfew data for local Guest account
/Library/Managed Preferences/Guest/complete.plist
Compilation of all Managed Preference settings for Guest account
This is the data that the system uses to set the curfew:
/private/var/db/dslocal/nodes/Default/users/Guest.plist