Skip to main content
Question

Local Make Me Admin Skript

  • October 10, 2023
  • 3 replies
  • 19 views

Forum|alt.badge.img+2

Hi folks,

is it possible to set up the very common Make Me Admin Skript for my Macs as a local executable file? It would be no problem to hardcode the local admin credentials into the skript.

Thanks for your replies.

Th.

3 replies

Forum|alt.badge.img+11
  • Contributor
  • October 10, 2023

I wouldn't recommend hard coding credentails into a script, best to obfuscate the string using something like below.

https://github.com/brysontyrrell/EncryptedStrings

 

As far as making the script be a clickable executable. Automator or shortcuts may work for this; depending on the target version of macOS. The most straightforward way would be t o append dot command to the shell script, this would cause it to run when double clicked if permissions are set correctly. ie local admin.command


Forum|alt.badge.img+11
  • Valued Contributor
  • October 10, 2023

If you're looking to manage admin temporary admin rights.  I'd either enable Jamf's makemeadmin script in self service, or look into https://github.com/SAP/macOS-enterprise-privileges


Forum|alt.badge.img+2
  • Author
  • New Contributor
  • October 10, 2023

Thats what i`m looking for - thanx man