How do I disable the guest session in Ubuntu 11.10 or higher? I don't want people to be able to use my computer without using a password to log in!
|
|
If you're using the default LightDM, edit
If you're using GDM (which was the default in previous Ubuntu releases), uninstall gdm-guest-session. |
||||
|
|
|
Type this in the terminal
You will see the following:
Add
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!)
With the graphical login session ended, you're returned to the login screen, where you'll notice that guest acount is disabled. That's it--the guest account is no longer usable. |
||||
|
|
|
Simplest method. Just run this (once) at terminal:
You will no longer have 'Guest' as login option, on your next login.
To undo (restore Guest option):
|
||||
|
|
|
Just run
Add the following line
Then (this will immediately log you out, quitting any programs running in your graphical session, so save your work first):
|
||||
|
|
|
Change You can then either reboot or restart the service in the terminal: sudo restart lightdm This is assuming you are using |
||||
|
|
|
Install ubuntu-tweak, get to the tweak tab, turn off the guest button and reboot. That's it! One may find the terminal easier, but in case the need to turn on the guest account arises then one would have to visit this page again and see the instructions (or rather undo). That's the advantage of the GUI thing... one remembers it easily. |
|||
|
|
protected by Community♦ Nov 29 '11 at 11:56
This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.
