Re: CFPreferencesSetValue in pref pane not working if logged in as non-admin
Re: CFPreferencesSetValue in pref pane not working if logged in as non-admin
- Subject: Re: CFPreferencesSetValue in pref pane not working if logged in as non-admin
- From: Finlay Dobbie <email@hidden>
- Date: Tue, 13 Nov 2001 19:47:02 +0000
On Tuesday, November 13, 2001, at 02:21 pm, Kevin Bohan wrote:
CFPreferencesSetValue(str, tempNum, MY_PREF_FILE_NAME,
kCFPreferencesAnyUser, kCFPreferencesCurrentHost);
However I have noticed that if I log in as a non admin user this
function appears to fail, as does the get function.
The get function works fine. You need to have administrative rights to
set the preferences, so you'll need to launch a setuid tool to do the
work if you want to "gain" administrative rights like this, and use some
form of IPC.
-- Finlay