give permission to standard users to access date and time option macOS Ventura

Muzaffar
New Contributor II

Hi Guys,

We was using the below to give access date & time for standard user but after macOS ventura upgrade this command is not working 

/usr/bin/security authorizationdb write system.preferences.datetime allow

 

If anyone having any other script please pass on to me 

 

Thanks !!

 

10 REPLIES 10

diegoFA
New Contributor II

Seems to be working on my machine running Ventura?

Try without the full path (leave out /usr/bin/): security authorizationdb write system.preferences.datetime allow

Muzaffar
New Contributor II

can you share the script which you are using on Ventura

Muzaffar
New Contributor II

Can you share the working script ?

techgeek
New Contributor III

@Muzaffar Did you ever get a solution working for this? I'm having the same issue as well.

scuser24
New Contributor II

@Muzaffar @techgeek were any of you able to get this working? I'm having the same issue on all my devices on Ventura.

Muzaffar
New Contributor II

Yes i got the solution try this method..

 

# 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

scuser24
New Contributor II

Nvm I was able to get it working with the same script. I had to flush my policy logs and run sudo jamf policy to pull new policies. Thanks!

scuser24
New Contributor II

I tried that but it still prompts for admin creds. I read that it will still ask for the user password when they want to change the date and time but the user doesn't have to be an admin but that didn't work for me either after entering my standard user creds.

tkimpton
Valued Contributor II

Doesn't work for me on Ventura, still prompts for admin

scuser24
New Contributor II

@tkimpton this is the script I use and it works on Ventura. It will still prompt you to enter credentials but you can enter the user or standard user credentials and it will work. It doesn't have to be a admin credentials.

#!/bin/bash

# Allows any user to change the date and time on their Mac.

/usr/bin/security authorizationdb write system.preferences allow
/usr/bin/security authorizationdb write system.preferences.datetime allow
/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;