- Create a folder at
/etc/lightdm/
calledlightdm.conf.d
:
sudo mkdir -p /etc/lightdm/lightdm.conf.d
- Create a file and call it
10-ubuntu.conf
:
sudo gedit /etc/lightdm/lightdm.conf.d/10-ubuntu.conf
- 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 touser-session=xubuntu
.
[Seat:*]
user-session=ubuntu
greeter-show-manual-login=true
greeter-hide-users=true
allow-guest=false
- Reboot.