How do I disable the guest session in Ubuntu 11.10 or higher?

15 May

Method 1:-

Open terminal using shortcut Key “ctrl+alt+t”. Type this in the terminal.

gksudo gedit /etc/lightdm/lightdm.conf

You will see the following:


Add allow-guest=false to the end so your final result should look like:


Save the document and quit the text editor.

Back in the Terminal, restart the display manager. (This will end the graphical login session, immediately quitting all programs running in it, so make sure your work–like any open documents–is saved first!

sudo restart lightdm

With the graphical login session ended, you’re returned to the login screen, where you’ll notice that guest account is disabled.

That’s it the guest account is no longer usable.

Simplest method.

Just run this (once) at terminal:

sudo /usr/lib/lightdm/lightdm-set-defaults -l false

You will no longer have ‘Guest’ as login option, on your next login.

  • This simply appends allow-guest=false to /etc/lightdm/lightdm.conf.
  • Confirm works on Ubuntu 12.04; should work for 11.10 and upwards (since those versions use LightDM as well).

To undo (restore Guest option):

sudo /usr/lib/lightdm/lightdm-set-defaults -l true

Method 2:-

Ubuntu Tweak is an application to config Ubuntu easier for everyone. It provides many useful desktop and system options that the default desktop environment doesn’t provide with its help, you will enjoy with the experience of Ubuntu!

Install ubuntu-tweak, get to the tweak tab, turn off the guest button and reboot. That’s it!

Home Page

Download Link

Leave a comment

Posted by on May 15, 2013 in Ubuntu



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: