Ubuntu Guest Session feature provides a convenient way with a high level of security to lend your computer to someone else. A guest cannot view the home folders of other users and by default any saved data or changed settings will be removed/reset at logout.
How to Enable/Disable Guest Session Account in Ubuntu(Linux) ?
- Open your Terminal (Ctrl+Alt+T) and type the following command then press “Enter”
sudo gedit /etc/lightdm/lightdm.conf
- Now, Give your system password and press “Enter”
- You will get a text editor with lightdm.conf file opened, Add the below line and save,
[SeatDefaults] allow-guest=false
- Restart you System
You have successfully disabled your guest session account, You can enable it just by removing those line from lightdm.conf
Thank You !!