I have created a Mac OS X helper application that always runs under root. I need to launch other application from it, but not as root. I want it to be launched from the current logged in user (not sudoed root).
I've tried to use [NSTask launchedTaskWithLaunchPath:arguments:]
and many other methods, but they all use root privileges to launch my application.
How can I launch my application from helper as a current Mac OS X logged in user?
It looks like the Authorization Services Programming Guide might help you.