How To Disable Guest Session in Ubuntu 11.10 Oneiric Ocelot

By Sajan Gurung on November 2nd, 20117 Comments

Ubuntu 11.10 Oneiric Ocelot has option to run “Guest Session” which allows others to login to your Ubuntu system with a guest account (no password required) and use it. Since, Ubuntu 11.10 uses LightDM as its display manager, many Ubuntu users are wondering how to disable the Guest Session in Ubuntu 11.10 Oneiric Ocelot.  In this post, we will show you how to disable the guest session in Ubuntu 11.10 Oneiric Ocelot.

The simple trick to disable guest session  in Ubuntu 11.10 Oneiric Ocelot is to edit the lightdm.conf file. To edit the lightdm.conf file , at first open it in Gedit by running the command given below.

sudo gedit /etc/lightdm/lightdm.conf

Once the file is opened, you can see that the original contents of the file before editing are as given below.

[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu

Now, add the line given below at the end of this file.

allow-guest=false

lightdm_conf

Then, save the file and restart the your system. The guest session option will not appear in the login screen.

Before disabling the guest session in Ubuntu 11.10, you can see Guest Session option in your profile indicator as shown below.

profile_indicator_guest_session

After disabling the guest session in Ubuntu 11.10, you lose your profile indicator as shown below.

guest_session_disabled

In order to enable the guest session again in Ubuntu 11.10, all you have to do is delete the allow-guest=false line from the lightdm.conf file mentioned above and save the file. Then , restart the system and you will again see the guest session option in the Ubuntu 11.10 login screen.

 

 

Related posts:

Follow the Author:  
share
  • Pingback: Disable guests in Oneiric « 0ddn1x: tricks with *nix

  • Pingback: Ubuntu - pomoc | [Ubuntu 11.10] Wyłączenie sesji gościa

  • http://paktor.biz David L Paktor

    I think it’s a flaw that the User Settings GUI doesn’t handle this particular setting, so I most sincerely appreciate that you took the time to prepare and publish these instructions.
    It certainly isn’t obvious on its own, and wouldn’t have been possible — to say nothing of relatively easy and painless — without them!
    Kudos!

  • http://YourWebsite... Matt

    Hello;

    I followed these instructions, but got this error in the terminal window:
    “(gedit:3436): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel’, but failed: No such file or directory”
    Any suggestions please?

    Thank you

    • Sajan Gurung

      The error could have occurred due to GTK trying to have read/write access to save temporary files in the directory, but the folder is missing.
      One of the possible ways to solve it is to manually create the folder by running following commands in the terminal.

      sudo mkdir -p /root/.local/share

      Type following to see if the folder has been created

      sudo ls /root/.local/

  • http://YourWebsite... Alexandre M.

    Just removed the bloody thing ( indicator-session ) ! it as no use.
    Is redundant with the shutdown menu, and gets in the way.

    Now i have more memory free, more free space in the top bar, and less hassle when the mouse gets nearby.

  • Oak Thanakorn

    Thank you very much :)