Re: kCFPreferencesAnyUser w/PreferencePane not working?
Re: kCFPreferencesAnyUser w/PreferencePane not working?
- Subject: Re: kCFPreferencesAnyUser w/PreferencePane not working?
- From: Finlay Dobbie <email@hidden>
- Date: Wed, 23 Jun 2004 18:36:27 +0100
On 22 Jun 2004, at 22:03, Huyler, Christopher M wrote:
a failure to write, but I could be mistaken about that. Also, are you
sure you want kCFPreferencesAnyHost rather than
kCFPreferencesCurrentHost?
All the examples on Apple's site use kCFPreferencesAnyHost as the
default. The user I tested it with has admin permissions. How would I
know whether the user has permissions? How could I allow a user w/o
permissions to save the preferences? I am already requiring the user
to
authenticate to run some shell scripts that make changes to the
backend,
I could incorporate updating the preferences into that, but I'm not
sure
how.
Just set the preferences from your setuid root tool.. If you're not
already using a tool, I strongly suggest you read the Authorization
Services documentation and the AuthSample/MoreAuthSample code from DTS.
:-)
-- Finlay
_______________________________________________
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.