• 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: kCFPreferencesAnyUser w/PreferencePane not working?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kCFPreferencesAnyUser w/PreferencePane not working?


  • Subject: Re: kCFPreferencesAnyUser w/PreferencePane not working?
  • From: Tom Harrington <email@hidden>
  • Date: Wed, 23 Jun 2004 11:56:15 -0600

On Jun 22, 2004, at 3:03 PM, Huyler, Christopher M wrote:
The current user may not have the appropriate permissions to write to
global preferences. I would have expected the error in that case to be
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.

But that doesn't answer the question. OK, so Apple's examples use that. Are you sure that *you* want it? The examples don't mean you should always do exactly what they demonstrate.

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.

If by having admin permissions, you just mean that the user is an admin, that's not what I meant. Typically you'd do this through some kind of setuid-root tool. Authorization services documentation explains doing this.


--
Tom Harrington
email@hidden
_______________________________________________
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.


References: 
 >RE: kCFPreferencesAnyUser w/PreferencePane not working? (From: "Huyler, Christopher M" <email@hidden>)

  • Prev by Date: Re: Controller layer & document architecture
  • Next by Date: Re: Dynamic User Interface with Cocoa
  • Previous by thread: Re: kCFPreferencesAnyUser w/PreferencePane not working?
  • Next by thread: RE: kCFPreferencesAnyUser w/PreferencePane not working?
  • Index(es):
    • Date
    • Thread