Skip to content
  • PC & Mobile
    • Windows
    • Mac
    • Linux
    • Mobile
    • Android
    • iOS
    • Chrome OS
  • Hardware
    • PC Hardware
    • Product Review
    • Smart Home
  • Lifestyle
    • Internet
    • Gaming
    • Productivity
    • How Things Work
    • Glossary
    • News
  • Cheatsheets
  • Deals

Dark mode:

Home > Linux

How to Disable Guest Account in Ubuntu

Damien
Damien
Jun 25, 2013

If you have not noticed, at the login screen of Ubuntu, anyone can select the “Guest Session” and login to your computer without password. Of course, the guest won’t be able to access your files and folders. What they will see is the default Ubuntu desktop and they won’t be able to store any file permanently as all saved files are deleted on reboot. The guest session is great if you are borrowing someone your laptop for a quick email check or web browsing. However, if you are the only user of your computer and you hate the “Guest Session” option cluttering up your login screen, here is how you can disable guest account in Ubuntu.

1. Login to your computer with your personal account. Open a terminal and type the following:

sudo nano /etc/lightdm/lightdm.conf

You should see the following:

guest-account-ubuntu-ightdm-conf

2. Move the cursor to a new line at the end and enter the following line:

allow-guest=false

add-line-to-lightdm-conf-to-disable-guest-account

3. Press “Ctrl +o” to save the changes and “Ctrl + x” to exit.

4. Restart Lightdm.

sudo restart lightdm

Alternatively, you can restart the computer. On the next login, the “Guest Session” mode will no longer show up in the login option.

login-screen-without-guest-session

More Configuration

If you want to disable the “remote login” option as well, add the following line to the lightdm.conf file.

greeter-show-remote-login=false

disable-remote-login-ubuntu

Don’t forget to restart Lightdm

sudo restart lightdm

login-screen-without-guest-session-remote-login

Restoration

To restore the login screen to the default state, simply undo the changes you have made. That means, remove the line “allow-guest=false” or “greeter-show-remote-login=false” from the lightdm.conf file.

Is this article useful?
Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

  • Facebook
  • Tweet

Popular Posts

7 Useful Cron Alternatives For Linux

How to Build and Install a Custom Kernel on Ubuntu

8 of the Best Linux Distros for Windows Users

The Beginner's Guide to Git

How to Use the G++ Compiler on Linux

How to Use tcpdump for Packet Capture

9 of the Best Email Clients for Linux

How to Use the Nessus Vulnerability Scanner on Linux

How to Use Emacs for RSS with Elfeed

How to Use Email within Emacs

Affiliate Disclosure: Make Tech Easier may earn commission on products purchased through our links, which supports the work we do for our readers.

Read Next

8 of the Best Linux Distros for Windows Users
7 Useful Cron Alternatives For Linux
How to Manage Git in Emacs with Magit
How to Build and Install a Custom Kernel on Ubuntu
The Beginner’s Guide to Git
How to Use Sed in Linux for Basic Shell Tasks
5 Tools to Easily Create a Custom Linux Distro
What Is the Matrix Protocol and How to Install It

© 2022 Uqnic Network Pte Ltd.
All rights reserved.

  • About
  • Contact
  • Advertise
  • Write For Us
  • Terms of Use
  • Privacy Policy
  • RSS Feed Terms
Do not share my Personal Information.