This brief tutorial shows students and new users how to hide or disable the user list on the Ubuntu login screen.
By default, when you install Ubuntu lists all user accounts on the logon screen. All users are listed, and each user can select their account name on the list and log in by typing in the correct password.
If you want users to type their username and password – (this can add another layer of security), simply disable the user list on the logon screen.
Before a user can successfully log in, that user should be able to know both the username and the password for the account.
If you’re a student or new user looking for a Linux system, the easiest place to start is Ubuntu Linux OS. It’s a great Linux operating system for beginners and folks looking for easier Linux distribution to use.
Ubuntu is an open-source Linux operating system that runs on desktops, laptops, servers, and other devices.
To get started with disabling the user list on the Ubuntu login screen, follow the steps below:
Disable the user list on the login screen
For security-minded professionals, removing the user list on the logon screen is another way to provide security to desktops.
To do that on Ubuntu, simply run the commands below to open the greeter configuration file.
First, press Ctrl – Alt – T on your keyboard to open Terminal.
Run the commands below:
sudo nano /etc/gdm3/greeter.dconf-defaults
When the file opens, un-comment (#) the highlighted line in the file as shown below and save.
# Login manager options
# =====================
[org/gnome/login-screen]
#logo='/usr/share/images/vendor-logos/logo-text-version-128.png'
# - Disable user list
disable-user-list=true
# - Disable restart buttons
# disable-restart-buttons=true
# - Show a login welcome message
Save the file and exit.
Restart
After making the changes, restart your desktop and see the changes.

Users must correctly type the username and password on the login screen to gain access.
Conclusion:
This post showed you how to disable the user list on the Ubuntu login screen. If you find any error above, please use the comment form below to report.
You may also like the post below:
Hello,
I tried this command in ubuntu server 20.04 with gnome gui but still it shows user list.
you must exit properly by pressing ctrl-x