• 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: Can Xcode run my application elevated?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can Xcode run my application elevated?


  • Subject: Re: Can Xcode run my application elevated?
  • From: Dave Camp <email@hidden>
  • Date: Tue, 4 Mar 2008 08:08:50 -0800

On Mar 3, 2008, at 9:57 PM, Terry Simons wrote:

Yes, I completely understand the problem... A process running in my user's context (Xcode) can't monkey with a process running in someone else's context (root).

My suggestions were that perhaps it's sub-optimal to require users to enable the root account (Which Apple disables per default on Mac OS X) to gain this sort of functionality, and that somehow hooking into the security subsystems that are provided (and used by every other Apple-provided application for similar situations) would be a much nicer solution, and like I said I'm happy to file a radar instance to help this along.

I had been playing with trying to get Xcode to run in the root context earlier tonight with the "open" command with no luck, though I've finally managed to get it to do what I want without enabling the root account... It's not optimal, but it's better than enabling the root account...

I'm just running the Xcode binary with sudo instead... Not sure why "open /Developers/Applications/Xcode.app" when logged in with "sudo su" didn't seem to work, maybe I did something wrong, but running the binary directly from within the application bundle works, provided I pass the path to my project.

My (untested) suggestion would be to edit the executable item in the project to use remote debugging via ssh (i.e. have it ssh to the local machine as the root user). In theory that should work...


Dave


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Can Xcode run my application elevated? (From: Terry Simons <email@hidden>)
 >Re: Can Xcode run my application elevated? (From: Rick Altherr <email@hidden>)
 >Re: Can Xcode run my application elevated? (From: Terry Simons <email@hidden>)
 >Re: Can Xcode run my application elevated? (From: Rick Altherr <email@hidden>)
 >Re: Can Xcode run my application elevated? (From: Terry Simons <email@hidden>)
 >Re: Can Xcode run my application elevated? (From: Rick Altherr <email@hidden>)
 >Re: Can Xcode run my application elevated? (From: Terry Simons <email@hidden>)

  • Prev by Date: Re: WebView searchFor
  • Next by Date: Re: Can Xcode run my application elevated?
  • Previous by thread: Re: Can Xcode run my application elevated?
  • Next by thread: Re: Can Xcode run my application elevated?
  • Index(es):
    • Date
    • Thread