Skip to main content
Question

Run GUI app from Self Service as root?

  • April 11, 2016
  • 3 replies
  • 21 views

AVmcclint
Forum|alt.badge.img+21

In the past uninstalling the WebEx productivity Tools only required me to index the package via Casper Admin, enable the uninstall option for it, then create a policy that uninstalls it. The recent version no longer works when I do that. I see that there is now /Applications/WebEx/Productivity Tools/Uninstall.app and that works when I run it from the GUI. The problem is that it requires admin credentials to run. I'd like to make this available via Self Service but I can't figure out how to let it run without requiring admin credentials. I tried a simple open /Applications/WebEx/Productivity Tools/Uninstall.app command since it would run as root from self service, but it still prompts the user to login as an admin.

Is there a way to make any GUI app behave the way I want when triggered from Self Service?

3 replies

AVmcclint
Forum|alt.badge.img+21
  • Author
  • Esteemed Contributor
  • April 11, 2016

I've tried the tips here but everything I try shows it running as the user - not as root. We're only on Yosemite right now, so we aren't encountering any SIP stuff yet.


Forum|alt.badge.img+15
  • Contributor
  • April 11, 2016

Can you look inside the app to find a way to run it command line? Perhaps there's a script or binary in there that you can execute? Find a way to do it command line, then replicate in self service.


AVmcclint
Forum|alt.badge.img+21
  • Author
  • Esteemed Contributor
  • April 11, 2016

I figured out my goof. I was running

open /Applications/WebEx/Productivity Tools/Uninstall.app/Contents/MacOS/Uninstall

When I should have just been running

/Applications/WebEx/Productivity Tools/Uninstall.app/Contents/MacOS/Uninstall

without "open". Doing it that 2nd way does exactly what I need.