I’m currently working on setting up a fresh install of Ubuntu 14.04 and I like to have a clean login menu with no extra options. In a previous post I showed how to disable the guest account and remote login in Ubuntu 13.04 and older. There’s no longer any “Remote Login” option, so only one thing to clear up. The process for disabling the guest account in Ubuntu 14.04 has changed a bit from previous versions. It’s very simple and only involves making a new file instead of editing an existing one.
- Enter the following command to create a new text file in
/usr/share/lightdm/lightdm.conf/ called
50-no-guest.conf :
1sudo nano /usr/share/lightdm/lightdm.conf.d/50-no-guest.conf - Add this text to the file, and don’t forget to leave a blank line at the end!
12[SeatDefaults]allow-guest=false - Exit and save by hitting Ctrl + x and then y .
That’s it! Let me know if you have any questions.
There are 2 comments on this post
Hmmm, After entering the initial string and then adding the two (three) lines to the file, when I try to save I get:
[ Error writing /usr/share/lightdm/lightdm.conf.d/50-no-guest.conf: No such file or directory ]
??
Using 'sudo nano' should create the file automatically if it doesn't exist. If not you can create the file first with the touch command.
sudo touch /usr/share/lightdm/lightdm.conf.d/50-no-guest.conf