This question already has an answer here:
- How do I disable the guest session? 12 answers
I recently installed Ubuntu 14.04 LTS it works fine but I want to remove the guest account login.
Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:
Add the following line, save and then close.
Reboot, and you're set.
Thanks to Gunnar Hjalmarsson
Based on Gunnar Hjalmarsson comment "ubuntu-session was last updated in the middle of March. Try sudo apt-get install --reinstall ubuntu-session" when that is done, the Guest session returns.
After some research, this can be done a different way as well.
If the file exists, then just add the following line:
Otherwise copy and paste the following into it:
Save the file and exit the editor. Reboot your system, and the changes will remain even after an update to ubuntu-session as mentioned by Gunnar Hjalmarsson's comment.
To remove guest login :
To remove remote login :
Or just add:
along with your
No need to overcomplicate a very simple fix by creating additional config files besides default, which will inevidably only confuse the OS at some point when the two files conflict, or the default file is erased and one of your two 'fixes' gets undone because you didn't do them together.