Script to require an administrator password to access system-wide preferences

dsqbui
New Contributor

Hi,

 

Does anyone have a script to enable the checkbox to admin password system-wide or configuration profile in Jamf Pro to get this done? Thank you in advance.

 

 

2 REPLIES 2

YanW
Contributor III
#!/bin/bash 

security authorizationdb read system.preferences > /tmp/system.preferences.plist

/usr/libexec/PlistBuddy -c "Set :shared false" /tmp/system.preferences.plist 

security authorizationdb write system.preferences < /tmp/system.preferences.plist

Got it from https://community.jamf.com/t5/jamf-pro/require-an-administrator-password-to-access-system-wide/m-p/2...

deep786
New Contributor II

thanks @YanW  its working on Ventura