• 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: NSTask as root
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask as root


  • Subject: Re: NSTask as root
  • From: Ben Borofka <email@hidden>
  • Date: Sat, 19 Mar 2005 17:55:49 -0800

This is frustrating. The examples I've found are confusing, and would require me to rewrite my NSTasks into C function calls, if I'm understanding things correctly.

Why is there no simple, robust, pure Cocoa/Obj-C API for handling Authentication? Five years of OS X, and we don't have this yet? I just want to run some NSTasks as root, that is all. sudo chown -r root:wheel <app> is not an appropriate solution for me.

I've heard of BLAuthentication, but I can't find it anywhere. I've heard good and bad things about it. I'd at least like to try it out. Anyone know where to get it?

Thanks.

Ben


On Mar 17, 2005, at 11:55 PM, Rakka wrote:

On Mar 18, 2005, at 6:32 PM, Ben Borofka wrote:

I need to run a series of NSTasks as root. I've found some samples out there but they are old, complicated, confusing and C-based. Is there an easy way of doing this in Objective-C? I'd like to just have a standard Authentication dialogue pop up and then have a method go and execute a bunch of NSTasks with those privileges. Is that a lot of work?

Thanks.

Ben


I also prefer using NSTask opposed to the other methods (AEWP). What I would do if I were you is to have the app relaunch as root, then run your NSTasks. There are other ways though. But I find this way useful for me as I have to execute a lot of different tasks.

Thanks

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSTask as root
      • From: Nick Zitzmann <email@hidden>
References: 
 >NSTask as root (From: Ben Borofka <email@hidden>)
 >Re: NSTask as root (From: Rakka <email@hidden>)

  • Prev by Date: Re: Progress bar
  • Next by Date: Faking large arrays in bindings to satisfy sparse data...
  • Previous by thread: Re: NSTask as root
  • Next by thread: Re: NSTask as root
  • Index(es):
    • Date
    • Thread