Open application with lowered privileges

Posted by GP89 on Super User See other posts from Super User or by GP89
Published on 2012-09-24T16:32:35Z Indexed on 2012/10/07 9:42 UTC
Read the original article Hit count: 264

Filed under:
|
|

I have a mac installer which runs as root with pre and post install bash scripts.

At the end of the post install script I launch the application which inherits and opens as root. Is there a way I can lower the permissions back down to the user that ran the installer and then open the app?

Or a more hackish way I can set the app to open in some scheduler from the script, which then gets opened by the scheduler which would have the users permissions

© Super User or respective owner

Related posts about mac

Related posts about bash