AuthorizationExecuteWithPrivileges and CFpreferences issues
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.