Hi gurus,
Once upon a time I could disable the shutdown/reboot/suspend/hibernate button in gdm by merely editing /etc/gdm/gdm.conf. But in karmic, a lot of gdm's configuration has moved to GConf, so now, apparently, I don't know how to do it.
According to the gdm manual, you can override the default system gdm settings by placing the appropriate gconf stuff in the ~gdm/ home directory (which is /var/lib/gdm/.gconf/).
My understanding is that this means the file:
/var/lib/gdm/.gconf/apps/gdm/simple-greeter/%gconf.xml
Also according to the gdm manual, you can disable the shutdown/reboot buttons by setting the GConf variable /apps/gdm/simple-greeter/disable_restart_buttons to true. So I tried setting that for the user gdm using gconftool-2. That didn't work, even after a reboot there is still a power icon in the lower-right corner of the login screen that allows anyone capable of clicking a mouse to shutdown or reboot the machine.
The next thing I tried was to use gconf-editor. Running the editor as a regular user, I set GConf:/apps/gdm/simple-greeter/disable_restart_buttons to true. Then I copied the contents of ~/.gconf/apps/gdm to ~gdm/.gconf/apps/gdm/, set the ownership and permissions appropriately (owner gdm:gdm, mode 0600 on files, 0700 on folders).
Nope. No go.
The gdm manual also alures to the ability to use PolicyKit to require authentication before allowing reboot/shutdown actions, but sadly lacks the details on how to actually do this. And of course, the official gdm gnome page is ever so helpful -- it has absolutely no information on it at all.
Why, oh why, did they make gdm so difficult to configure, and can anyone help me out?
Bookmarks