Re: non-root app writing to root file
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 20:03:43 -0600
nm I figured out the Framework
Matt
On Jul 26, 2004, at 6:09 PM, Matt Jaffa wrote:
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.
_______________________________________________
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.