• 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. Managing MySQL Using Systemd As A Non Root User
  2. How to Configure Remote Rsyslog To Accept TLS and Non-TLS in CentOS/RHEL
  3. kdocker Command Examples in Linux
  4. mountpoint: command not found
  5. How to tar, untar files and view contents of tar file under Linux
  6. How to Disable Docker Process and docker0 Interface on CentOS/RHEL
  7. ‘ip’ Command cheat sheet (Command Line Reference)
  8. IBM DB2 Installation on Red Hat Enterprise Linux
  9. gdebi: command not found
  10. deluser: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright