• 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: FOUND Workaround Re: Disk Utility....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FOUND Workaround Re: Disk Utility....


  • Subject: Re: FOUND Workaround Re: Disk Utility....
  • From: Andy Satori <email@hidden>
  • Date: Wed, 06 Oct 2004 09:51:55 -0400

Because when I went poking around, I couldn't find said API call (I hate the
docs layout sometimes). Thanks for the tip though :-). I can't complain
though, I found a way to do it manually too, and I learned something new.
Well, make that two somethings new thanks to your tip.

Andy


On 10/6/04 5:17 AM, "stephane sudre" <email@hidden> pounded the
keyboard to produce:

>
> Le Oct 5, 2004, à 10:03 PM, Andy Satori a écrit :
>
>> I recently ran into a similar problem...
>>
>> I have a PostgreSQL isntallation that I wanted to be able to stop /
>> start /
>> restart from a Cocoa GUI App. The problem was that while the
>> Authentication
>> stuff from the Security framework did in fact promote the user to admin
>> rights, it did not in fact allow you to excute an NSTask as root, so
>> calling
>> the StartupItem script would fail because ConsoleMessage requires
>> root, not
>> just admin.
>>
>> After poking around a bit, and with some help from my fellow evil-doers
>> (bringing .NET to Cocoa) in #cocoa# found a solution...
>>
>> In the end, I created a little BSD Tool that was embedded in, and
>> called
>> from the Cocoa App with Admin privs, which then calls the StartupItem
>> with
>> ROOT rights.
>>
>> For the code, see my blog:
>> http://homepage.mac.com/dru_satori/C304053603/E617707927/index.html
>
> Stupid question: If by StartupItem, you're referring to a component in
> Library/StartupItems, why don't you just use SystemStarter?
>
>
>

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
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
References: 
 >Re: FOUND Workaround Re: Disk Utility.... (From: stephane sudre <email@hidden>)

  • Prev by Date: Re: Binding/KVC : valueForKey: and NSDictionary (was: valid accessor for framework objects. (was: implicit and explicit invocation of description method))
  • Next by Date: Re: adding menu items and making them work [Java]
  • Previous by thread: Re: FOUND Workaround Re: Disk Utility....
  • Next by thread: Need to learn Quartz 2D programming
  • Index(es):
    • Date
    • Thread