Skip to main content
Question

Run plugin update app without admin permission

  • Sep 11, 2024 5:01 PM UTC
  • 1 reply
  • 24 views

Forum|alt.badge.img+1

Hey All,

I am trying to find a way to have one of out users be able to update his plugins without us needing to scope the make me an admin script onto his machine all of the time. I made a script to run the plugin manager app as admin then kill it after 10 minutes for security, but wanted to see if there is a better way to do this. Here is what I have

 

 

#!/bin/bash

# Run the app as administrator

sudo open -a "/System/Applications/MyApp.app"

# Shutdown the app after 10 minutes

sleep 10m

pkill myapp

1 reply

WickedSmaht
Forum|alt.badge.img+5
  • Contributor
  • Dec 2, 2026 9:10 AM UTC

I'd avoid running an entire GUI application with elevated privileges. sudo open -a doesn't reliably guarantee that the application itself runs as root, and terminating it after 10 minutes doesn't necessarily terminate any privileged child processes it may have spawned.

There are a few cleaner alternatives:

  • Jamf Self Service: If the plugin manager supports command-line updates, create a policy that performs the update as root without elevating the user.

  • Jamf Connect / Self Service+ Privilege Elevation: Allow temporary administrator privileges with automatic revocation, justification and audit logging.

  • Vendor-supported privileged helper: Check whether the plugin manager supports installing updates from a standard user account through a privileged helper.

We're using Self Service+ privilege elevation in our environment with a 15-minute window, biometric authentication and mandatory justification.

However, for a recurring plugin update, I'd still prefer a dedicated Self Service policy. It follows the principle of least privilege and avoids granting unnecessary administrative access.

Which plugin manager are you using? There might already be a supported CLI or silent update mechanism.