Skip to content

Instantly share code, notes, and snippets.

@smrachi
Last active February 9, 2025 10:28
Show Gist options
  • Save smrachi/47055e2b98f07e0230e1d0fbbd111331 to your computer and use it in GitHub Desktop.
Save smrachi/47055e2b98f07e0230e1d0fbbd111331 to your computer and use it in GitHub Desktop.

Disable Users List on UBUNTU Login Page

  1. Create a folder at /etc/lightdm/ called lightdm.conf.d:
sudo mkdir -p /etc/lightdm/lightdm.conf.d
  1. Create a file and call it 10-ubuntu.conf:
sudo gedit /etc/lightdm/lightdm.conf.d/10-ubuntu.conf
  1. Add these lines to it (for Ubuntu 16.04 or newer):

Change the line user-session= to whatever desktop you are using, like if you are using Xubuntu, change it to user-session=xubuntu.

[Seat:*]
user-session=ubuntu
greeter-show-manual-login=true    
greeter-hide-users=true    
allow-guest=false
  1. Reboot.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment