I'm using the latest Ubuntu 18.04 LTS bionic.
When I login it shows my username and I just need to type a password.
I don't want usernames to be shown. I want to be forced to type a username and password.
How do I do that? All I found is info for old versions or lightdm (18 uses gdm).
Settings for gdm3 are done in
/usr/share/gdm/greeter.dconf-defaults
.Uncomment these 2 lines:
(Only un-commenting the 2nd line will crash your login: bugreport confirming it works for 18.04) and restart the login manager with
and reboot (or restart with
sudo systemctl stop gdm
and log out).Make a backup 1st so in case something get messed up and you can not log in you can use tty3 to redo your changes. edit: this wont work; gdm also takes care of the tty sessions so tty3 is dead too... you will need to user a live session or grub rescue prompt.
Another way that works for 17.10 and 18.04 (from comment #7 by fprietog in the bug report):