Gnome3: How to disable "Shutdown" button

Solution 1:

You may use this gnome-shell-extension Remove PowerOff

Ubuntu 18.04.3 enter image description here

Ubuntu 19.10 enter image description here

Solution 2:

You can use this extension to hide the shutdown button.

hide shutdown button.png


This article describes how to disable shutdown and reboot:

Certain Linux distros such as Ubuntu, Linux Mint, Mandriva just to mention but a few, make it possible to reboot/halt/shutdown the system as a normal user, by default. This is not ideal setting especially on servers, it must be something to worry about especially for a system administrator.

Here are a summary of steps in article:

  • Edit /etc/sudoers to disable shutdown.
  • Use chmod o-x /sbin/shutdown and chmod o-x /sbin/reboot to deny permissions.
  • For systemd based systems (probably most today) use: chmod o-x /bin/systemctl which /sbin/shutdown and the rest have symbolic links to.

I don't know how to change the GUI to remove the "Shutdown" button but you can tell the users not to press it and if they do nothing will happen.