How to Remove Guest Session in Ubuntu

Image result for How to Remove Guest Session in Ubuntu

 

1. Open terminal by pressing Ctrl+Alt+T or searching for “Terminal” from the start menu.

2. When the terminal opens, run command to create and edit a lightdm configuration file:

sudo apt install gksu && gksudo gedit /etc/lightdm/lightdm.conf.d/50-no-guest.conf

When the file opens, paste below rules and save it.

[SeatDefaults]
allow-guest=false

https://i0.wp.com/tipsonubuntu.com/wp-content/uploads/2017/04/disable-guest-rule-610x207.jpg

That’s it. You won’t see the guest session at next login.