• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Launching as Root
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Launching as Root (From: Steve Gehrman <email@hidden>)

  • Prev by Date: Re: some info - check it
  • Next by Date: NSDate bug
  • Previous by thread: Launching as Root
  • Next by thread: Re: Launching as Root
  • Index(es):
    • Date
    • Thread