How to Remove Guest Session in Ubuntu 17.04

Remove Guest Login

This quick tutorial is going to show you how to remove the Guest Session from Ubuntu 17.04 Login screen.

Ubuntu is shipped with a guest session feature that allows visitors log in without providing a password. If you find this feature is useless for you, easily disable the Guest session by following below steps:

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

launch-terminal

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

disable-guest-rule

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

About ml

ml is a part time stay-at-home dad who've been using Ubuntu Desktop for a few years. He writes in the free time and wishes to share some useful tips with Ubuntu beginners and lovers.

Leave a Reply

Your email address will not be published. Required fields are marked *

*