How to disable the user list at login on CentOS 7

Screen Shot 2015-08-13 at 10.51.47

By default, CentOS 7 will display a list of all users on the system. Click on it, type in the password, and you’re in. This works well when you have a handful of users on the system.

However, on systems with a lot of users, not everyone can be displayed in that list – and scrolling up or down is impossible (and even if it was, it’s impractical at best). The solution is to replace that list with a box to type in a user, much like what would happen when you choose the “Not Listed” option.

Here’s how to do it:

From the command line, login as root and create a file called /etc/dconf/db/gdm.d/00-login-screen. By default it does not exist.

Now add the following lines to it and save the file:

This will tell GNOME not to display the list anymore, and instead bring up a text box as shown below. For the change to take effect, we need to update GNOME with the following command:

And that’s it!

Screen Shot 2015-08-13 at 10.54.55

About Jay Versluis

Jay is a medical miracle known as a Super Survivor. He runs two YouTube channels, five websites and several podcast feeds. To see what else he's up to, and to support him on his mission to make the world a better place, check out his Patreon Campaign.

5 thoughts on “How to disable the user list at login on CentOS 7

  1. Even though this article is three years old, it worked in RHEL 7.2 after they broke the “gsettings set org.gnome.login-screen disable user-list true” and dconf-editor setting for the same issue. Thank you!

Leave a Reply to Jay Versluis Cancel reply