disabling everywhere suspend, hibernate, shutdown, restart

Jacques Beigbeder Jacques.Beigbeder at ens.fr
Wed Sep 30 09:18:49 UTC 2009


Hello,

I have some rooms of free-access Linux boxes running Ubuntu 9.04.
Since these computers are heavily used by 1500+ students,
I want to disable:
	suspend, hibernate, shutdown, restart
in all installed window managers: Gnome, KDE, LXDE, Xfce.

I found the following files:
. /etc/gdm/gdm.conf-custom
	[greeter]
	SystemMenu=false
. /etc/gconf/gconf.xml.mandatory/%gconf-tree.xml: set with appropriate syntax:
  	gnome-power-manager/general/can_hibernate = false
	gnome-power-manager/general/can_suspend = false
. setting:
   lrwxrwxrwx 1 root root  10 Sep 30 10:48 /usr/bin/pm-is-supported -> /bin/false
  also helps.

But this is not a complete coverage.

Any hint?

--
Jacques Beigbeder                    |  Jacques.Beigbeder at ens.fr
Service de Prestations Informatiques |     http://www.spi.ens.fr
Ecole normale supérieure             |
45 rue d'Ulm                         |Tel : (+33 1)1 44 32 37 96
F75230 Paris cedex 05                |Fax : (+33 1)1 44 32 20 75





More information about the ubuntu-users mailing list