9

Good day,

Does anyone know how to modify the login screen so that users are required to type their username along with their password?

I'm running Ubuntu 12.04 with all default settings

Jorge Castro
  • 71,754
Jan Geep
  • 1,997

4 Answers4

10

You need three settings in /etc/lightdm/lightdm.conf to get exactly what you want:

[SeatDefaults]
greeter-show-manual-login = true
greeter-hide-users = true
allow-guest = false
Johann
  • 207
mfisch
  • 3,643
2

Well I've found one option that seems to work partially

add greeter-show-manual-login = true to /etc/lightdm/lightdm.conf and then reboot.

It still shows local accounts which is not ideal but does allow me to log in with ldap user accounts now.

Thomas Ward
  • 74,764
Jan Geep
  • 1,997
0

Tested in Ubuntu 22.04 just now.

Source where I learned this: https://askubuntu.com/a/1037289/327339

sudo nano /usr/share/gdm/greeter.dconf-defaults

Find the line where it says this:

[org/gnome/login-screen]

...and underneath it, uncomment this:

disable-user-list=true

(Required): then, run this:

sudo dpkg-reconfigure gdm3

Now reboot to test it:

reboot
0

If you are using Kubuntu, the above does NOT work due to a bug in the kde greeter

Create this file: /etc/lightdm/lightdm-kde-greeter.conf and include the following contents.

[greeter]
theme-name=classic
boatcoder
  • 599