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.
Posted on 05-11-2023 02:54 AM
Doesn't work for me on Ventura, still prompts for admin
Posted on 05-11-2023 06:57 AM
@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;
Posted on 06-13-2023 09:05 AM
The script worked great for the Date/Time. How can we implement this for Network/Wi-Fi settings and for Print/Copy settings?
Posted on 06-13-2023 09:09 AM
@josefrometa I had to update the script to work with macOS 14.0. Try using this script. It works for me.
#!/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
/usr/bin/security authorizationdb write system.preferences.datetime allow
/usr/bin/security authorizationdb write system.settings.datetime allow
exit 0;
Posted on 07-25-2023 07:11 AM
This worked when nothing else did! Thank you!
Posted on 10-05-2023 09:57 AM
Thank you for this, but is there a reason lines 6 and 9 are identical?
Posted on 10-05-2023 10:04 AM
No. Looks like a duplicate and you can remove one of the lines.
Posted on 06-13-2023 09:13 AM
The script works great for the date/time preference/settings. I want to do the same with the network/wifi settings and print/scan settings. These were my previous code that doesn't work anymore:
#Unlock Network preference pane
security authorizationdb write system.preferences.network allow
security authorizationdb write system.services.systemconfiguration.network allow
#Unlock Print & Scan preference pane
security authorizationdb write system.preferences.printing allow
Thanks
Posted on 06-13-2023 09:17 AM
@josefrometa ah read your post wrong. Try these script for Network and Printer management.
#!/bin/bash
# Workaround as shown in https://www.jamf.com/jamf-nation/discussions/19050/add-wifi-networks-without-admin-privileges
# Allows non-admin users to manage their Network configuration.
#For WiFi
/usr/bin/security authorizationdb write system.preferences.network allow
/usr/bin/security authorizationdb write system.services.systemconfiguration.network allow
/usr/bin/security authorizationdb write com.apple.wifi allow
/usr/bin/security authorizationdb write system.settings.network allow
exit 0;
#!/bin/bash
# Allows non-admin users to manage their Printer configuration.
#For printing
/usr/bin/security authorizationdb write system.preferences.printing allow
/usr/bin/security authorizationdb write system.print.operator allow
/usr/sbin/dseditgroup -o edit -n /Local/Default -a everyone -t group lpadmin
/usr/sbin/dseditgroup -o edit -n /Local/Default -a everyone -t group _lpadmin
/usr/bin/security authorizationdb write system.settings.printing allow
exit 0;
Posted on 06-13-2023 09:22 AM
WOW! Thank you so much! That did it :) I'm sure it will be useful for many others. Have an amazing day.
11-14-2023 03:30 AM - edited 11-14-2023 03:33 AM
I had to update the script to work with macOS 14.1. Try using this script. It worked for me to allow standard user to change date and time.
#!/bin/bash
# Allows any user to change the date and time on their Mac.
/usr/bin/security authorizationdb write system.preferences.datetime allow
exit 0;