Wednesday 20 November 2013

Removing Guest Account from Login screen in Ubuntu


Ubuntu 13.04
As shown below by default the Guest account will be enabled in Ubuntu.

To remove this Guest Account from the login screen, first login to Ubuntu as administrator. Then open the terminal and type the command:
sudo gedit /etc/lightdm/lightdm.conf

This will open the “lightdm.conf” configuration file in gedit application. Now add the following line to the end of the file as shown below:
           allow-guest=false

Now save the file by pressing “Ctrl+S” and close the gedit application. In the terminal type the following command to restart the lightdm service
sudo restart lightdm

This will take you to the login screen. Now there will be no guest account entry on the login screen as shown below


Ubuntu 13.10
Here the file you need to edit is a different one. In the terminal type the following command
sudo gedit /etc/lightdm/lightdm.conf.d/50-unity-greeter.conf
This will open the “50-unity-greeter.conf” configuration file in gedit application. Now add the following line to the end of the file as shown below:
           allow-guest=false
For the rest proceed as mentioned for 13.04

No comments:

Post a Comment