• 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: Helper tool, root and MoreAuthSample?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Helper tool, root and MoreAuthSample?


  • Subject: Re: Helper tool, root and MoreAuthSample?
  • From: Fredrik Olsson <email@hidden>
  • Date: Wed, 12 Jul 2006 16:27:03 +0200

Finlay Dobbie skrev:
On 12/07/06, Fredrik Olsson <email@hidden> wrote:
I find this code hard to read. Maybe outdated (project builder
project?), and I am not able to build it with XCode 2.3.

Upgrade the projects to native, and uncheck "treat warnings as errors" in the target settings. I have filed a bug against it to get it updated (<rdar://problem/4625036>).

Is there another sample project out there, for having a helper tool
running as root?

It's still the best. Have you read the relevant documentation (Performing Privileged Operations with Authorization Services)? Do you have any specific questions?

Not really. Lazy as I am I had more or less expected NSSetOwnedByRootAndSUID() :).

Is there any good reason why I should not do as it is done in TunnelBlick 3?
There chown and chmod are run with AuthorizationExecuteWithPrivileges to fix the helper tool from the main UI app.


// Fredrik Olsson

-- Finlay

_______________________________________________ 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: Helper tool, root and MoreAuthSample?
      • From: James Bucanek <email@hidden>
References: 
 >Helper tool, root and MoreAuthSample? (From: Fredrik Olsson <email@hidden>)
 >Re: Helper tool, root and MoreAuthSample? (From: "Finlay Dobbie" <email@hidden>)

  • Prev by Date: Re: DNS lookup for SMB
  • Next by Date: Re: DNS lookup for SMB
  • Previous by thread: Re: Helper tool, root and MoreAuthSample?
  • Next by thread: Re: Helper tool, root and MoreAuthSample?
  • Index(es):
    • Date
    • Thread