Re: Launching as Root
Re: Launching as Root
- Subject: Re: Launching as Root
- From: Douglas Davidson <email@hidden>
- Date: Mon, 26 Nov 2001 16:49:48 -0800
On Monday, November 26, 2001, at 02:33 PM, Steve Gehrman wrote:
I'm trying to launch an application with as root.
I'm trying to use the execve(argv[1], aargv, environ) function to
launch the applications executable, but I get this error...
2001-11-26 14:32:14.213 Appname[400] No Info.plist file in application
bundle or no NSPrincipalClass in the Info.plist file, exiting
Any ideas? Does anyone have code that will launch an application as
root?
There can be problems with launching an application if you don't give it
a full path. However, there are easier ways to do this than going
straight to exec--NSTask comes to mind--and for getting root privileges
there is a whole separate Security framework.
Douglas Davidson