How to hide User list on Ubuntu logon screen

|

|

This tutorial guides users, particularly novices, on ho to hide or disable the user list on the Ubuntu login screen for added security. The procedure requires running specific commands in the Terminal to alter the greeter configuration file, disabling the user list, and rebooting the system. As a result, users must correctly enter both their…

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, it 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.

Someone might want to hide or disable the user list on the Ubuntu login screen for a few reasons. One reason is to add an extra layer of security by requiring users to enter their username and password instead of just selecting their name from a list.

This can help prevent unauthorized access to the system. Additionally, it can be useful for computers used by multiple people or in public spaces to prevent others from seeing a list of usernames and potentially trying to access someone else’s account.

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:

Like this:



2 responses to “How to hide User list on Ubuntu logon screen”

  1. Azad A Avatar
    Azad A

    Hello,

    I tried this command in ubuntu server 20.04 with gnome gui but still it shows user list.

    1. no Avatar
      no

      you must exit properly by pressing ctrl-x

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.