Ubuntu and Linux Mint come with a default guest user account that does not require a password. In this tutorial we shall see how to disable guest account in Ubuntu 13.04.
What is guest account?
Before going further lets talk about guest user accounts and why or why not you should disable a guest account. How do you feel when someone asks to use your personal computer? Are you skeptical of what that person might do with your computer, your personal data and settings. This is where guest user account comes in picture. It gives anyone temporary access to your computer without putting your digital data at risk. A guest user can access internet but cannot change settings. As soon as the guest user logs off, your computer is restored back to the state it was in, largely. Moreover, it does not require any password to login. Talking of passwords, you should know that it is really easy to hack Ubuntu admin passwords.
But how often does guest accounts come in use? For me, I am the only user of my laptop and the guest session have never been used in my system. Then why should I keep it? I would rather prefer to disable the guest account from Ubuntu and prevent it from showing in login screen.
You may have your own reasons to not use guest sessions. Let’s see how can we disable guest account session in Ubuntu 13.04.
Disable guest session account in Ubuntu:
We’ll see two command line trick to disable guest account Ubuntu 13.04.
Open the terminal (Ctrl+Alt+T) and use the following command to disable the guest session:
sudo /usr/lib/lightdm/lightdm-set-defaults -l false
To re-enable guest session in Ubuntu 13.04, use the same command but with option true this time.
sudo /usr/lib/lightdm/lightdm-set-defaults -l true
If you are not comfortable with the commands above then you can configure lightdm to disable the guest session. Use the following commands to open the lightdm configuration in Gedit:
gksudo gedit /etc/lightdm/lightdm.conf
Change the following line to false in the file and save it:
That;s it. You won’t be troubled with guest sessions any more. I hope this tutorial helps you to disable guest account in Ubuntu 13.04. Ciao