macadmins / SupportCompanion

macOS helper application designed to empower end-users
Apache License 2.0
49 stars 3 forks source link

Run actions as logged in user #33

Open dechkovanen opened 1 month ago

dechkovanen commented 1 month ago

When setting custom actions, there could be a boolean value "Run as user" for each entry and defaults to False. Some utility command need to be executed as user, some as root so this would help setting up both.

almenscorner commented 1 month ago

The actions are running as the current user, currently in order to run a command as root you'd have to run it with osascript and specify with administrator privileges to prompt for authentication.