Posted on 12-16-2022 01:14 AM
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 !!
Posted on 12-16-2022 07:15 AM
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
Posted on 12-18-2022 10:50 PM
can you share the script which you are using on Ventura
Posted on 01-02-2023 10:40 PM
Can you share the working script ?
Posted on 02-13-2023 09:26 AM
@Muzaffar Did you ever get a solution working for this? I'm having the same issue as well.
Posted on 02-20-2023 04:47 PM
Posted on 02-20-2023 07:46 PM
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
Posted on 02-21-2023 12:55 PM
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!
Posted on 02-21-2023 07:40 AM
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.
a month ago
Doesn't work for me on Ventura, still prompts for admin
a month ago
@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;