• 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. Understanding MySQL Pluggable Authentication
  2. CentOS / RHEL 7 : How to setup yum repository using locally mounted DVD
  3. What are SELinux Modes and how to set them
  4. How to Setup a squid proxy server on CentOS/RHEL 7
  5. Examples of using dmsetup command in Linux
  6. How To Create A SSH Banner in CentOS/RHEL Server
  7. UNIX / Linux : How to lock or disable an user account
  8. How to disable Ctrl+Alt+Del causing system reboot in CentOS/RHEL 6
  9. rm: cannot remove ‘doc/by-app’: Function not implemented (CentOS/RHEL 7)
  10. Error “530: permission denied” when user logs in to vsftpd server via ftp

You May Also Like

Primary Sidebar

Recent Posts

  • JavaFX ComboBox: Set a value to the combo box
  • Nginx load balancing
  • nginx 504 gateway time-out
  • Images preview with ngx_http_image_filter_module

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright