Wednesday, 28 December 2011

How-to: Disable Guest Login Ubuntu 11.10

If you're sociable and you like having guests in your house, or indeed, logged onto your computer, skip over this. If you have a need to lock out casual visitors to your machine, then you'll want to ditch the guest login that came by default with Ubuntu 11.10.

'Guest' suddenly appeared with the LightDM login manager in 11.10 and I just want to take it out of the login list.

This is easy enough if you're using the default LightDM in Ubuntu 11.10. Edit the LightDM configuration file /etc/lightdm/lightdm.conf, with root privilege:

sudo gedit /etc/lightdm/lightdm.conf

In the section SeatDefaults and add the line 'allow-guest=false' in the manner of:


Save the document. It needs a restart, or you can use a terminal command:

sudo restart lightdm

Which will return to your login screen where the guest acount is disabled. This will also effectively kill everything in your current session, so save and close anything else that's running first.

If you're using GDM (which was the default in previous Ubuntu releases), it's a package removal, you have to uninstall gdm-guest-session. RC