Remove Guest Account

Removing the Guest account from login screen

Ubuntu Remove Guest Account from Login Screen


By default after installation, Ubuntu creates a Guest account which allows access to your system in a read only manner. To disable this account and remove it from the initial login screen, simply follow the instructions for your version of Ubuntu.



Remove Guest Account on Ubuntu 14.04 LTS


Simply rename the following file: /etc/lightdm/lightdm.conf.d/50-unity-greeter.conf.dpkg-bak to 50-unity-greeter.conf.dpkg-bak 50-unity-greeter.conf using the commands below:



$ cd /etc/lightdm/lightdm.conf.d
$ sudo mv 50-unity-greeter.conf.dpkg-bak 50-unity-greeter.conf

Now add the following line(s) into your configuration file. (In this example I am using the "vi editor"):



$ sudo vi /etc/lightdm/lightdm.conf.d/50-unity-greeter.conf

Change your configuration file to look like the entry below:



[SeatDefaults]
greeter-session=unity-greeter
allow-guest=false

Now save your file. For these changes to be picked up, you can either logout and then back in again or simply issue the following command from your terminal: sudo restart lightdm



$ sudo restart lightdm


Remove Guest Account on Ubuntu 13.10


Open the following file: /etc/lightdm/lightdm.conf.d/50-unity-greeter.conf in the editor of your choice. In the example below, I am using "vi" from the terminal.



john@john-desktop:~$ sudo vi /etc/lightdm/lightdm.conf.d/50-unity-greeter.conf

Now add the following line into your configuration file:



allow-guest=false

Your configuration file should look like the entry below:



[SeatDefaults]
greeter-session=unity-greeter
allow-guest=false

Now save your file. For these changes to be picked up, you can either logout and then back in again or simply issue the following command from your terminal: sudo restart lightdm



john@john-desktop:~$ sudo restart lightdm

Remove Guest Account on Ubuntu 12.04, Ubuntu 12.10 and Ubuntu 13.04


Open the following file: /etc/lightdm/lightdm.conf in the editor of your choice. In the example below, I am using "vi" from the terminal.



john@john-desktop:~$ sudo vi /etc/lightdm/lightdm.conf

Now add the following line into your configuration file:



allow-guest=false

Your configuration file should look like the entry below:



[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu
allow-guest=false

Now save your file. For these changes to be picked up, you can either logout and then back in again or simply issue the following command from your terminal: sudo restart lightdm



john@john-desktop:~$ sudo restart lightdm