Local Make Me Admin Skript

Computerdoc
New Contributor

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 3

mschlosser
Contributor II

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

daniel_behan
Contributor III

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

Computerdoc
New Contributor

Thats what i`m looking for - thanx man