Views:
9,128β
Votes: 2β
Tags:
18.04
gnome
shutdown
Link:
π See Original Answer on Ask Ubuntu β§ π
URL:
https://askubuntu.com/q/1195779
Title:
Gnome3: How to disable "Shutdown" button
ID:
/2019/12/13/Gnome3_-How-to-disable-_Shutdown_-button
Created:
December 13, 2019
Edited: December 16, 2019
Upload:
September 15, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
You can use this extension to hide the shutdown button.
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
andchmod 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.