Re: AuthorizationExecuteWithPrivileges and CFpreferences issues
Re: AuthorizationExecuteWithPrivileges and CFpreferences issues
- Subject: Re: AuthorizationExecuteWithPrivileges and CFpreferences issues
- From: Tackel <email@hidden>
- Date: Tue, 9 Mar 2004 10:22:16 +0100
Hi Rainer,
That was exactly what I was looking for. Many times forget I'm working
on a unix OS.
Many thanks,
Tackel
El 08/03/2004, a las 21:28, Rainer Brockerhoff escribis:
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.
_______________________________________________
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.