• 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 Disable user list on GNOME login screen in CentOS/RHEL 8

by admin

Question: How to disable the user list being shown when logging into a CentOS/RHEL 8 system?

disable user list on GNOME login in CentOS RHEL 8

There are 2 ways to disable the user list being shown on the login screen in CentOS/RHEL 8.

  1. Per user Settings
  2. Globally Settings for all users

Method 1 – Per User Setting

In this method, an individual user is removed from the user list which appears on the login screen. So if we disable the user “sandy”, it will not appear in the user list while other users will still be there on the list. If you want to disable all users to not appear in the user list, you will have to apply the same setting to an individual user. Instead, you can approach the global method of disabling the completed user list.

1. Modify the user profile settings file /var/lib/AccountsService/users/[username] and modify the line “SystemAccount=false” to “SystemAccount=true“. So if the username is john, you need to edit the profile settings file – /var/lib/AccountsService/users/john.

# vi /var/lib/AccountsService/users/john
id='centos'
version-id='8'

[User]
Icon=/home/john/.face
SystemAccount=false

2. Logout from the account and verify the login screen. The user “john” should not appear in the user list now.

remove user from GNOME user list in CentOS RHEL 8

Method 2 – Global Settings for all users

As we said earlier if you do not want any user list to appear at all on the login screen, follow the steps outlined below.

1. Create or modify the gdm keyfile /etc/dconf/db/local.d/00-login-screen and add the below lines to the keyfile.

# vi /etc/dconf/db/local.d/00-login-screen
[org/gnome/login-screen]
# Do not show the user list
disable-user-list=true

2. After the file is modified, run “dconf update” as the root user to have it take effect. Also restart the gmd service if the changes are not reflecting.

# dconf update
# systemctl restart gdm

3. log out from the session and verify the login screen. It should now not show any user list on the login screen and instead ask for a username to be entered.

disable user list on GNOME for CentOS RHEL 8

Filed Under: CentOS/RHEL 8, Linux

Some more articles you might also be interested in …

  1. chgrp Command Examples in Linux
  2. Linux “shutdown”, “poweroff”, “halt”, “reboot” Commands
  3. nm : Command to list the symbols in object files.
  4. wget Command Examples in Linux
  5. Understanding /etc/login.defs file
  6. How to disable NetworkManager on CentOS / RHEL 7
  7. How to find Which Process Is Killing mysqld With SIGKILL or SIGTERM on Linux
  8. CentOS / RHEL 7 : How to modify Network Interface names
  9. RHEL 7 – RHCSA Notes – input / output redirection
  10. How to Replace a Failed Btrfs Device

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