If you don't want anyone logging in Ubuntu as a guest you can disable this option with the solution below.


Disable guest session


Assign "false" to allow-guest variable in "50-ubuntu.conf" file, save and restart the computer.


sudo nano /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf

allow-guest=false
sudo reboot