How To Disable The Guest Session In Ubuntu 12.04

If you’re anything like me then you probably have your own machine that you use on a day to day basis that no one else will ever really use. Therefore you may not want to have the Guest Session visible on your logon screen in Ubuntu 12.04. Not only does it waste space on the screen, it stops anyone who doesn’t have a password from accessing your computer.

For those that don’t know, the Guest Session in Ubuntu is a restricted user account designed for ‘public’ use so you can lend your machine to pretty much anyone yet not give them access to anything else on the machine. By default the Guest Session cannot see any of the Home folders on the machine and all changes to the account are wiped when the session is logged out. This means that a fresh desktop is greeting any person whenever they log in to your machine using the Guest Session.

To disable the Guest Session from being visible on the Ubuntu 12.04 logon screen, simply run the command below in terminal:

sudo gedit /etc/lightdm/lightdm.conf

Now enter your password and you will see the LighDM config file. All you need to do is add this line to the end of the config file:

allow-guest=false

Finally, save the config file and re-boot your machine. When it comes back up you shouldn’t see a guest session in the logon window. Here is a before and after from my machine:

Before

After

If you want to enable to Guest Session again, all you need to do is re-open the LightDM config file using the terminal command above and edit the line you added from false to true. The complete config file when the Guest Sesssion is disabled will look something like this:

[SeatDefaults] greeter-session=unity-greeter
user-session=ubuntu
allow-guest=false

 

How To Disable The Guest Session In Ubuntu 12.04
User Rating: 0 (0 votes)