[NEVER RESOLVED] Using gconftool-2 to set attributes

Support for security such as Firewalls and securing linux
Post Reply
User avatar
warron.french
Posts: 616
Joined: 2014/03/27 20:21:58

[NEVER RESOLVED] Using gconftool-2 to set attributes

Post by warron.french » 2015/08/18 19:57:01

Hello all,
I have a need to make some settings for security compliance on the GUI.

I have been directed to do the following commands:

gconftool-2 --direct \ --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \ --type bool \ --set /apps/gnome-screensaver/idle_activation_enabled true
gconftool-2 --direct \ --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \ --type int \ --set /apps/gnome-screensaver/idle_delay 15
gconftool-2 --direct \ --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \ --type bool \ --set /apps/gnome-screensaver/lock_enabled true
gconftool-2 --direct \ --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \ --type string \ --set /apps/gnome-screensaver/mode blank-only


However, these commands don't appear to be working. The scans pick them right back up like I didn't even attempt to make any changes. Someone told me that when running changes on a system that involve GUI/Gconf2 that I need to execute the same commands, but prefix them with -- "sudo -u gdm " but that too did not work.

I also saw an example of the gconftool-2 commands and they showed an "=" in between the --config-source and the xml~~~~ part of the syntax; still... nothing.

Can someone please provide some help in this matter?
Last edited by warron.french on 2015/12/09 18:09:37, edited 1 time in total.
Thanks,
War

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Using gconftool-2 to set attributes

Post by TrevorH » 2015/08/18 21:44:20

Try using gconf-editor to navigate to that path directly and see what the settings are.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
warron.french
Posts: 616
Joined: 2014/03/27 20:21:58

Re: Using gconftool-2 to set attributes

Post by warron.french » 2015/08/19 11:45:30

TrevorH, doesn't the use of gconf-editor require GUI desktop?
Thanks,
War

User avatar
warron.french
Posts: 616
Joined: 2014/03/27 20:21:58

Re: Using gconftool-2 to set attributes

Post by warron.french » 2015/08/19 12:10:27

TrevorH, thanks, the tool wasn't on my machine but I got it added.

That tool was pretty useful, but I didn't look it addressed my issues properly. The scanning tool may have some false-positives, but I don't know for sure with respect to these 4 commands that need to produce the result; or using the gconf-editor tool.

Any ideas?
Thanks,
War

Post Reply