Disable Guest Account in Ubuntu

August 24,2015 by MAhmadZ

Ubuntu has a special account, named Guest, which allows access (login) to the system without asking for any password. Although there are limitation applied to this account but maybe its not always desirable to have it. These steps will help in disabling it (tested under 12.04 and 14.04):

Open the file /etc/lightdm/lightdm.conf and add the following line to it at the end:

allow-guest=false

If the file lightdm.conf is missing, then paste the following contents in the blank file:

[SeatDefaults]
allow-guest=false

Once thats done, restart the relevant service:

sudo restart lightdm

This should work!