gconftool-2 as root

José Moyano <[email protected]> Fri, 23 Sep 2011 11:22:21 -0300
Newsgroups gmane.comp.gnome.lib.gconf
Message-ID <CAN-8BXVYMydL8UJp=1a0_nebLb9SdY4Te+BktxKmTw0HgnYfJw@mail.gmail.com>
Hi everybody,

I'm trying to change users proxy settings using the root account, with the
following command

su jose -c "gconftool-2 --type string --set /system/http_proxy/host
someproxy.com"

However, the command does nothing. If I login with my user, then "su" to the
root account, and then execute the previous command, it works.

So I suppose that it is something related to login, like environment variab=
les.
However, the "su --login" command doesn't help.

Anyone knows why it is not possible to change user's gconf with gconftool-2
logged in as root?

I'm using Debian Wheezy

Thanks!
Jos=E9.