SUSE Support

Here When You Need Us

Disable the user list on the login screen in SLE15

This document (000019890) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 15 SP2
SUSE Linux Enterprise Server 15 SP1
SUSE Linux Enterprise Server for SAP Applications 15 SP2
SUSE Linux Enterprise Server for SAP Applications 15 SP1

Situation

By default, the login screen for SLE15 will show a list of available users to chose from for logging in.  For security reasons, it's best to disable the user list and provide only login user name prompts. 

Resolution

To disable the user list so that only a username prompt appears on the login screen do the following as root:

1. Using your favorite editor create the gdm profile which contains the following lines:

/etc/dconf/profile/gdm

user-db:user
system-db:gdm
file-db:/usr/share/gdm/greeter-dconf-defaults

2. Then create the following file and add the following contents:

/etc/dconf/db/gdm.d/00-login-screen

[org/gnome/login-screen]
# Do not show the user list
disable-user-list=true

3. Update the system database:

#dconf update

5. Restart display-manager service:

#systemctl restart display-manager.service

After the desktop restarts the login screen should now present the user with login name and password prompts.
 

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000019890
  • Creation Date: 26-Feb-2021
  • Modified Date:02-Mar-2021
    • SUSE Linux Enterprise Server
    • SUSE Linux Enterprise Server for SAP Applications

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.