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

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • 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. How to disable a specific command for a specific user in Linux
  2. How to Create a MySQL Docker Container for Testing
  3. How to query and modify kernel parameters using sysctl (Immediately and persistently) in CentOS / RHEL
  4. CentOS / RHEL : How to allow or deny Users to login to VSFTP Server
  5. CentOS / RHEL 6,7 : Why the files in /tmp directory gets deleted periodically
  6. How to backup Linux OS using “dd” Command
  7. How to resolve the error “-bash: xclock: command not found” in CentOS / RHEL
  8. Beginners guide to Kernel Module Configuration in Linux
  9. How to increase swap space on Linux
  10. How to Delete ASM Disk on Multipath Device in CentOS/RHEL

You May Also Like

Primary Sidebar

Recent Posts

  • Oracle Database – Configuring Secure Application Roles
  • Extend rule sets by using factors in Oracle Database Vault
  • What are Command Rules in oracle Database
  • Using Rule Sets in Oracle Database Vault
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary