Scott's Weblog The weblog of an IT pro specializing in cloud computing, virtualization, and networking, all with an open source view

Hiding the User List on the Ubuntu Login Screen

In this post, I’m going to share how to hide the user list on the login screen for Ubuntu 16.04. The information here isn’t necessarily new or ground-breaking; however, in searching for the solution myself I found a lot of conflicting information as to how this may or may not be accomplished. I’m publishing this post in the hopes of providing a bit more clarity around this topic.

I’ve verified that this procedure works on the desktop distribution of Ubuntu 16.04. Note also that this is probably not the only way of making this work; it’s likely there are other ways of accomplishing the same thing.

To make configuration changes to the login screen, you’ll want to add configuration files to /etc/lightdm/lightdm.conf.d. I used a single file to hide the user list and disable guest logins; presumably, you could use separate files for each configuration directive.

To disable the user list and disallow guest logins, add this content to a file in the etc/lightdm/lightdm.conf.d directory (I used the filename 00-hide-user-list.conf):


Once this file is in place, you’ll need to either restart your Ubuntu system, or restart the LightDM service. Note that restarting the LightDM service will kill your graphical applications, so be sure to save anything important first. The next time you log in, you should have to manually enter both the username and the password, and guest logins should be disabled.


UPDATE: Via Twitter, I also found this post by Matt Fischer, which has some outstanding information on configuring lightdm.conf. This is an excellent resource.

Metadata and Navigation

Be social and share this post!