Guest account is a paswordless account which allow users to get access to Ubuntu with limited access to some features such as all partitions including the file system partition are not accessible or modifiable except the home directory for the guest user. Here in this tutorial I will show how disable the guest account from the LightDM on Ubuntu 12.04 LTS Precise Pangolin.
[How To]: Disable The Guest Account On Ubuntu 12.04 LTS Precise Pangolin
Open your favorite terminal emulator or the default one “Ctrl+Alt+t”, I use “Terminator”
We will need to edit the lightdm.conf file though terminal by using the “nano” text editor or any text editor. Also you can edit the file using a graphical user interface text editor application.
It will ask you for the administrator password.
then set the value for the guest account to be false by adding this line at the end of the file.
The file should look like this after you have done editing with.
Ctrl+x to Exit the application, then press “Y” to save the modification, and confirm the file name as it is.
Finally restart the lightDM
This command will restart the lightDM and will end will logout of the currently running session.
Modify the file using a GUI text editor
If you would like to modify the lightdm.conf file using a graphical user interface application, run this command down below.
This command will use the gedit text editor.
Then restart the lightdm.
Post has been updated: Same instructions works for disabling the guest session for Ubuntu 12.10 Quantal Quetzal and Ubuntu 13.04 Raring Ringtail.