Re: AuthorizationExecuteWithPrivileges and CFpreferences issues
Re: AuthorizationExecuteWithPrivileges and CFpreferences issues
- Subject: Re: AuthorizationExecuteWithPrivileges and CFpreferences issues
- From: Rainer Brockerhoff <email@hidden>
- Date: Mon, 8 Mar 2004 17:28:25 -0300
>
From: Tackel <email@hidden>
>
Date: Mon, 8 Mar 2004 13:41:51 +0100
>
>
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.
I have a similar situation where I bracket the preference writing code with seteuid() calls to temporarily change the effective user ID back to the original user ID.
--
Rainer Brockerhoff <email@hidden>
Belo Horizonte, Brazil
"It's extremely unlucky to be superstitious, for no other reason
than it is always unlucky to be colossally stupid." (Stephen Fry)
Weblog:
http://www.brockerhoff.net/bb/viewtopic.php
_______________________________________________
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.