Remove Shutdown and Reboot Option from Linux GUI Login Screen ( GDM Setup )

Q. I’ve a central Linux test server. It has GDM based GUI login screen. How do I remove both shutdown and reboot server options from the login screen?

A. GDM is gnome specific display manager. It is a display manager that implements all significant features required for managing attached and remote displays. GDM is highly configurable, and many configuration settings can affect security. The GDM daemon is responsible for managing displays on the system. This includes authenticating users, starting the user session, and terminating the user session.

ADVERTISEMENTS

GUI tool gdmsetup

The gdmsetup application can be used to configure GDM. Open terminal and type the command:
$ sudo gdmsetup
Select “Local” tab > unselect “Show Actions menu” > Close

Remove the Shutdown / Reboot options from the GNOME system login screen
(Fig. 01: gdmsetup in action)

Note: You can start gdmsetup by visiting System > Administration > Login Screen / Login Windows. You can also modify configuration file stored at /etc/gdm/ directory.

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
4 comments… add one
  • saqib Jan 16, 2008 @ 19:15

    hi dear i m facing a problem .I have install Red Hat Enterprise Linux 5 .and when i want to connect from xmanager 2.1 from my labtop its showing me a msg “System Administrator is not allowed to login in this Screen” more surprising i can connect any other user except “root”.Root is not allowed.I have enable the gdm and done all other things

  • slvjerome Aug 27, 2008 @ 11:50

    But the user can still hit F10 and get all the options. Is there a way to disable F10 at the login screen?

  • kcmakwana Nov 20, 2008 @ 14:39

    edit the file /etc/ssh/sshd_config, in this file, set the parameter of PermitRootLogin to yes(it may be set to no). this will allow you to login via network as root. further info, kcmakwana@rediffmail.com

  • thahir1986 Jun 27, 2010 @ 14:12

    Where is the answer for the question man……He asked u how to disable shutdown, reboot options from login screen…but u replied him how to change the login theme….what a craze….

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.