While the Guest session can be useful for some people, I’ve generally considered it to be security vulnerability as unauthorized users could gain physical access to some areas of your system that are not secured as well as they “should” be.
Additionally, the default behavior that allows for the username(s) to be stored and listed on the login screen are less than ideal.
Here we remove both!
- Create the config folder:
sudo mkdir -p /etc/lightdm/lightdm.conf.d
- Create a new config file:
sudo vi /etc/lightdm/lightdm.conf.d/10-ubuntu.conf
- Add the following: