20.04: disabling restart and poweroff

Jacques Beigbeder Jacques.Beigbeder at ens.fr
Mon Oct 11 11:17:46 UTC 2021


Hello,

In classrooms, I want to disable restart and poweroff.
First on lightdm screens,
then when a user is logged on.

I already setup
	/usr/share/glib-2.0/schemas/10_ubuntu-settings.gschema.override
so now 'dbus-launch list-recursively ...' displays:
  org.gnome.settings-daemon.plugins.power power-button-action 'nothing'
  org.gnome.settings-daemon.plugins.power button-power 'nothing'
  org.gnome.login-screen disable-restart-buttons true

Activating power button, clicking on Quit upper-right screen
still displays 'restart'.

Any answer?
Thanks,

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






More information about the ubuntu-users mailing list