• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to Configure GNOME Console Login Banner in CentOS/RHEL 7 and 8

by admin

Question: How to set the banner shown as part of a console in CentOS/RHEL 8?

GNOME console banner is a screen with a certain message that is shown before any user logins into the system using his/her login credentials. Login is performed by the Gnome Display Manager (GDM) tool. The steps to configure the GNOME login screen banner are outlined below. All steps are performed as the root user.

1. Create the GDM profile (if it doesn’t exist) in /etc/dconf/profile/gdm which contains the following lines:

# vi /etc/dconf/profile/gdm
user-db:user
system-db:gdm
file-db:/usr/share/gdm/greeter-dconf-defaults

Here, GDM is the name of a dconf database.

2. Create a GDM database for machine-wide settings in /etc/dconf/db/gdm.d/01-banner-message. You may have to create the directory /etc/dconf/db/gdm.d if its not already present.

# mkdir/etc/dconf/db/gdm.d
# vi /etc/dconf/db/gdm.d/01-banner-message
[org/gnome/login-screen]
banner-message-enable=true
banner-message-text='Type the banner message here'

In our case, lets have the banner message as follows:

This is geeklab system. Only geeks are allowed to login
Note: There is no character limit for the banner message. GNOME Shell auto-detects longer stretches of text and enters two column mode. However, the banner message text cannot be read from an external file.

3. Update the system databases:

# dconf update

If the banner message does not show, make sure you have run the dconf update command. In case the banner message does not update, try restarting gdm.

4. Logout and login again to view the new GNOME login banner. Voila, here is our new GNOME login banner.

configure GNOME login banner centos rhel 7 and 8

Filed Under: CentOS/RHEL 7, CentOS/RHEL 8, Linux

Some more articles you might also be interested in …

  1. sudoedit: command not found
  2. Unable To Extend LVM File System with Associated Snapshot in CentOS/RHEL
  3. Understanding SELinux File Labelling and SELinux Context
  4. df Command Examples in Linux
  5. CentOS / RHEL : How to log all LVM commands
  6. Linux OS Service ‘yum-updatesd’
  7. qm migrate Command Examples in Linux
  8. CentOS / RHEL 6 : Install and Configure SNMPv3
  9. scriptreplay: command not found
  10. How to recover from a corrupt RPM database (rebuilding an RPM database)

You May Also Like

Primary Sidebar

Recent Posts

  • “az storage account” Command Examples (Manage storage accounts in Azure)
  • “az sshkey” Command Examples (Manage ssh public keys with virtual machines)
  • “az redis” Command Examples
  • “az provider” Command Examples (Manage resource providers)

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright