Skip to content
  • PC & Mobile
    • Windows
    • Mac
    • Linux
    • Mobile
    • Android
    • iOS
    • Chrome OS
  • Hardware
    • Hardware & Gadgets
    • Product Review
    • Smart Home
  • Lifestyle
    • Internet
    • Gaming
    • Productivity
    • How Things Work
    • Glossary
  • Cheatsheets
  • About
    • About Us
    • Contact Us
    • Privacy
    • Advertise with Us
    • Write For Us

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.

Damien
Damien

Damien Oh started writing tech articles since 2007 and has over 10 years of experience in the tech industry. He is proficient in Windows, Linux, Mac, Android and iOS, and worked as a part time WordPress Developer. He is currently the owner and Editor-in-Chief of Make Tech Easier.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Popular Posts

How to Set Up a VNC Server In Ubuntu

7 Ways to Speed up Ubuntu

3 Quick and Easy Ways to Open Any File as Root in Ubuntu

Ubuntu Software Center Not Working? Here Are the Fixes

How to Fix High CPU Usage in Linux

5 Ways to Hide Desktop Icons in Ubuntu

How to Change the Screen Resolution in Ubuntu

How to Hide the Top Bar and Side Panel in Ubuntu

How to Fix the "No Installation Candidate" Problem in Ubuntu

How to Enable Wake-on-LAN in Ubuntu

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

© 2023 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.