Skip to main content
Question

Allow Standard Users to change Date and Time on Sequoia

  • January 18, 2025
  • 13 replies
  • 429 views

Forum|alt.badge.img+5

Previously, we deployed the following script to allow standard users to change the date and time without requiring admin credentials. However, this is no longer working on Sequoia devices. Can someone assist in enabling this functionality on Sequoia devices?

#!/bin/bash # Allows any user to change the date and time on their Mac. /usr/bin/security authorizationdb write system.preferences.dateandtime.changetimezone allow /usr/bin/security authorizationdb write system.preferences.datetime authenticate-session-owner-or-admin exit 0;

 

13 replies

dennisnardi
Forum|alt.badge.img+15
  • Jamf Heroes
  • January 18, 2025

If you replace

....system.preferences....

with

....system.settings....

you should get the same effect on Sequoia.


Forum|alt.badge.img+5
  • Author
  • Contributor
  • January 18, 2025

If you replace

....system.preferences....

with

....system.settings....

you should get the same effect on Sequoia.


I have tried suggested changes but still asking for admin credentials.

#!/bin/bash # Allows any user to change the date and time on their Mac. /usr/bin/security authorizationdb write system.settings.datetime allow /usr/bin/security authorizationdb write system.settings.datetime authenticate-session-owner-or-admin exit 0;

 


Forum|alt.badge.img+5
  • Author
  • Contributor
  • January 20, 2025

If you replace

....system.preferences....

with

....system.settings....

you should get the same effect on Sequoia.


@dennisnardi  made changes like below but with this still its asking admin credentials


#!/bin/bash # Allows any user to change the date and time on their Mac. /usr/bin/security authorizationdb write system.settings.datetime allow /usr/bin/security authorizationdb write system.settings.datetime authenticate-session-owner-or-admin exit 0;

dennisnardi
Forum|alt.badge.img+15
  • Jamf Heroes
  • January 20, 2025

This is the complete script I use in my environment and it works with Sequoia and earlier systems:

#!/bin/sh # Unlock System Preferences for non admins. sudo security authorizationdb write system.preferences allow sudo security authorizationdb write system.settings allow # Unlock Date and Time sudo security authorizationdb write system.preferences.datetime allow sudo security authorizationdb write system.settings.datetime allow sudo security authorizationdb write system.preferences.dateandtime.changetimezone allow # Unlock Energy Saver preference pane sudo security authorizationdb write system.preferences.energysaver allow sudo security authorizationdb write system.settings.energysaver allow # Unlock Network preference pane sudo security authorizationdb write system.preferences.network allow sudo security authorizationdb write system.settings.network allow sudo security authorizationdb write system.services.systemconfiguration.network allow /usr/libexec/airportd prefs RequireAdminNetworkChange=NO RequireAdminIBSS=NO /usr/bin/security authorizationdb write com.apple.wifi allow # Unlock Print & Scan Preference pane sudo security authorizationdb write system.preferences.printing allow sudo security authorizationdb write system.settings.printing allow # Unlock Time Machine preference pane sudo security authorizationdb write system.preferences.timemachine allow sudo security authorizationdb write system.settings.timemachine allow # Give Everyone Print Operator Access sudo dseditgroup -o edit -n /Local/Default -a everyone -t group lpadmin

MemnochTheRed
Forum|alt.badge.img+2

This is the complete script I use in my environment and it works with Sequoia and earlier systems:

#!/bin/sh # Unlock System Preferences for non admins. sudo security authorizationdb write system.preferences allow sudo security authorizationdb write system.settings allow # Unlock Date and Time sudo security authorizationdb write system.preferences.datetime allow sudo security authorizationdb write system.settings.datetime allow sudo security authorizationdb write system.preferences.dateandtime.changetimezone allow # Unlock Energy Saver preference pane sudo security authorizationdb write system.preferences.energysaver allow sudo security authorizationdb write system.settings.energysaver allow # Unlock Network preference pane sudo security authorizationdb write system.preferences.network allow sudo security authorizationdb write system.settings.network allow sudo security authorizationdb write system.services.systemconfiguration.network allow /usr/libexec/airportd prefs RequireAdminNetworkChange=NO RequireAdminIBSS=NO /usr/bin/security authorizationdb write com.apple.wifi allow # Unlock Print & Scan Preference pane sudo security authorizationdb write system.preferences.printing allow sudo security authorizationdb write system.settings.printing allow # Unlock Time Machine preference pane sudo security authorizationdb write system.preferences.timemachine allow sudo security authorizationdb write system.settings.timemachine allow # Give Everyone Print Operator Access sudo dseditgroup -o edit -n /Local/Default -a everyone -t group lpadmin

This worked for me in Sequoia. 

#!/bin/sh # Unlock System Preferences for non admins. sudo security authorizationdb write system.preferences allow sudo security authorizationdb write system.settings allow # Unlock Date and Time sudo security authorizationdb write system.preferences.datetime allow sudo security authorizationdb write system.settings.datetime allow sudo security authorizationdb write system.preferences.dateandtime.changetimezone allow

I just used this snippet for our needs. 


Forum|alt.badge.img+5
  • Author
  • Contributor
  • April 28, 2025

This worked for me in Sequoia. 

#!/bin/sh # Unlock System Preferences for non admins. sudo security authorizationdb write system.preferences allow sudo security authorizationdb write system.settings allow # Unlock Date and Time sudo security authorizationdb write system.preferences.datetime allow sudo security authorizationdb write system.settings.datetime allow sudo security authorizationdb write system.preferences.dateandtime.changetimezone allow

I just used this snippet for our needs. 


Thanks for your comment. But unfortunately this is not working for me at Sequoia Devices.


MemnochTheRed
Forum|alt.badge.img+2

Odd. Mine keeps reverting back to requiring admin. It works for a bit then reverts. You do have to close system settings before the change is in effect.


BookMac
Forum|alt.badge.img+9
  • Jamf Heroes
  • August 28, 2025
I have the feeling that the settings are reset after a macOS update?

Person
Forum|alt.badge.img+9
  • Jamf Heroes
  • August 28, 2025

Thought i chime in but have been curious. I have not have not had any luck configuring auth using System Settings.  I have seen it work and then not work.  If people do have this working are they running this on a schedule or login?   


mattjerome
Forum|alt.badge.img+7
  • Jamf Heroes
  • August 28, 2025

I put this together earlier today to allow users to set their time zone as well as check networktime and time server. Run it from Self Service as a policy. 

#!/bin/bash

# Get the list of timezones
timezones=$(systemsetup -listtimezones | tail -n +2 | paste -sd "," -)

# Use it in swiftDialog
selection=$(dialog \
--title "Timezone Selector" \
--message "Choose your preferred timezone." \
--messagealignment "center" \
--selecttitle "Timezones" \
--selectdefault "America/New_York" \
--selectvalues "$timezones" \
--small \
--ontop)

# Extract the actual timezone value from the JSON result
selected_timezone=$(echo "$selection" | awk -F'"' '/SelectedOption/ {print $4}')

# Set the timezone
echo "Setting time zone to $selection."
systemsetup -settimezone "$selected_timezone"
echo "verifying network time is on and network time server is time.apple.com"
/usr/sbin/systemsetup -setusingnetworktime on -setnetworktimeserver time.apple.com

 


Forum|alt.badge.img+3
  • Contributor
  • November 7, 2025

I put this together earlier today to allow users to set their time zone as well as check networktime and time server. Run it from Self Service as a policy. 

#!/bin/bash

# Get the list of timezones
timezones=$(systemsetup -listtimezones | tail -n +2 | paste -sd "," -)

# Use it in swiftDialog
selection=$(dialog \
--title "Timezone Selector" \
--message "Choose your preferred timezone." \
--messagealignment "center" \
--selecttitle "Timezones" \
--selectdefault "America/New_York" \
--selectvalues "$timezones" \
--small \
--ontop)

# Extract the actual timezone value from the JSON result
selected_timezone=$(echo "$selection" | awk -F'"' '/SelectedOption/ {print $4}')

# Set the timezone
echo "Setting time zone to $selection."
systemsetup -settimezone "$selected_timezone"
echo "verifying network time is on and network time server is time.apple.com"
/usr/sbin/systemsetup -setusingnetworktime on -setnetworktimeserver time.apple.com

 

Haven't you found any other way for a user to change the time zone on their own without being an admin on macOS 26 without going into self-service?


Forum|alt.badge.img+20
  • Valued Contributor
  • November 12, 2025

I put this together earlier today to allow users to set their time zone as well as check networktime and time server. Run it from Self Service as a policy. 

#!/bin/bash

# Get the list of timezones
timezones=$(systemsetup -listtimezones | tail -n +2 | paste -sd "," -)

# Use it in swiftDialog
selection=$(dialog \
--title "Timezone Selector" \
--message "Choose your preferred timezone." \
--messagealignment "center" \
--selecttitle "Timezones" \
--selectdefault "America/New_York" \
--selectvalues "$timezones" \
--small \
--ontop)

# Extract the actual timezone value from the JSON result
selected_timezone=$(echo "$selection" | awk -F'"' '/SelectedOption/ {print $4}')

# Set the timezone
echo "Setting time zone to $selection."
systemsetup -settimezone "$selected_timezone"
echo "verifying network time is on and network time server is time.apple.com"
/usr/sbin/systemsetup -setusingnetworktime on -setnetworktimeserver time.apple.com

 

Thanks, I’m going to try this.


swissbuechi
  • New Contributor
  • November 28, 2025

Is this issue specifically tied to the time .datetime and timezone .dateandtime.changetimezone settings or did all the other autorizationdb changes like .location or .energysaver stop working too?

Thanks for clarification.