Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

GokulKrish

macrumors newbie
Original poster
Apr 12, 2014
11
0
Chennai
I am using LaunchDaemon , which launches a binary from root session .

Now ,when I execute shell command using NSTask , It would run as a root User .(Example : I run "whoami" , It would respond as "root")

Is it possible to run NSTask (from daemon launched binary ) as a loggedon user ? (Example : I run "whoami" , It should respond as "UserName")
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.