• 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: non-root app writing to root file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: non-root app writing to root file


  • Subject: Re: non-root app writing to root file
  • From: Matt Jaffa <email@hidden>
  • Date: Mon, 26 Jul 2004 18:09:01 -0600

Hi,


As a followup to the message I posted below. I was noticing that Other Apple SystemPreferences whenever they are going to write the file to a root owned file, a helper app writeconfig is launched from the Private Admin.Framework, is there any way I can get at this framework and know how to use writeconfig to write the file for me???

And also is there a way that I can class dump Admin.Framework(the private framework), to see what I can call in there????

Matt


On Jul 24, 2004, at 6:26 PM, Matt Jaffa wrote:

Hi,

I was wondering if anybody has an example I could download or could help me with this question.

I want to implement something similar to Apple's SystemPreferences, where it has that lock that you can authenticate as an admin so that you can change some of the root owned files found in /Library/Preferences/...... . For example /Library/Preferences/SystemConfiguration/preferences.plist behaves like this, and the SystemPreference that changes this file is the Network one.

So I want to perform similar actions, I have a root owned file stored in a similar location and need that file to be modified by my system preference, but they are run as the current user, so that is why I am sure they have that Authorization/Authentication in the Security.Framework, I have been reading up on it, but have found no examples or help regarding being able to use Cocoa/Objective-C NSArray writeToFile, or whatever those functions are. I have successfully gotten that Authentication window to popup and return with the AuthRef, but my code still can't do those writing to files , to the root files.

Any help,
Thanks,
Matt
_______________________________________________
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.


  • Follow-Ups:
    • Re: non-root app writing to root file
      • From: Finlay Dobbie <email@hidden>
    • Re: non-root app writing to root file
      • From: Matt Jaffa <email@hidden>
References: 
 >non-root app writing to root file (From: Matt Jaffa <email@hidden>)

  • Prev by Date: Re: Debugging IB Palettes
  • Next by Date: Default button background black for dual G5, not single G4
  • Previous by thread: Re: non-root app writing to root file
  • Next by thread: Re: non-root app writing to root file
  • Index(es):
    • Date
    • Thread