Skip to main content
Question

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

  • October 12, 2022
  • 2 replies
  • 41 views

Forum|alt.badge.img+2

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

YanW
Forum|alt.badge.img+11
  • Contributor
  • 180 replies
  • October 13, 2022
#!/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/202151#M190873


Forum|alt.badge.img+4
  • New Contributor
  • 5 replies
  • March 29, 2023

thanks @YanW  its working on Ventura