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

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.


  • Follow-Ups:
    • Re: AuthorizationExecuteWithPrivileges and CFpreferences issues
      • From: Tackel <email@hidden>
  • Prev by Date: NSFormatter "parent" Control
  • Next by Date: fast cross fade effect between 2 full screen images
  • Previous by thread: Re: AuthorizationExecuteWithPrivileges and CFpreferences issues
  • Next by thread: Re: AuthorizationExecuteWithPrivileges and CFpreferences issues
  • Index(es):
    • Date
    • Thread