• 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
AuthorizationExecuteWithPrivileges and CFpreferences issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AuthorizationExecuteWithPrivileges and CFpreferences issues


  • Subject: AuthorizationExecuteWithPrivileges and CFpreferences issues
  • From: Tackel <email@hidden>
  • Date: Mon, 8 Mar 2004 13:41:51 +0100

Hi Guys,

I've got a tool that is executed from a cocoa application with
AuthorizationExecuteWithPrivileges. This tool besides some operations
that require admin privileges modifies one of the ByHost preferences.
The problem is that once it updates the preferences using
CFPreferencesAppSynchronize, the user has no access to this preference
because now the owner is System.

The only way I found to solve this issue is to change file privileges
from the tool after calling CFPreferencesAppSynchronize.

- Do you have any other way to do it?

- There is also another problem in order to change preference
privileges since byhost preferences have the mac address appended to
the file name (ie com.apple.HIToolbox.000393144e76.plist). Is there any
way to get preferences' path easily?

Thanks,
Tackel.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: AuthorizationExecuteWithPrivileges and CFpreferences issues
      • From: Allan Odgaard <email@hidden>
  • Prev by Date: Re: -retain and -release Questions
  • Next by Date: Re: cocoa-dev digest, Vol 2 #3798 - 13 msgs
  • Previous by thread: [ANN] Docoa Browser 0.2
  • Next by thread: Re: AuthorizationExecuteWithPrivileges and CFpreferences issues
  • Index(es):
    • Date
    • Thread