QueHow

A How-To and wiki Blog

  • Operating System
    • Windows
      • Windows 10
      • Windows 7
    • Linux
  • Software
    • Application Software
    • Microsoft Office
      • Outlook
      • Word
      • PowerPoint
  • Internet
    • Browsers
      • Mozilla Firefox
      • Google Chrome
    • CMS
    • Tips & Tricks
  • Website
    • ecommerce
    • Google
    • Social Networking
    • General Websites
  • Mobile
  • Email
    • Gmail
  • Wiki

How you can Disable & Enable Guest User Account in Ubuntu

By Neha T Leave a Comment

Ubuntu comes with one additional account that you had not created, that’s what called as Guest account/ session. Through Guest account, an unauthorized or you can say, anyone with whom you are not willing to share your Ubuntu system, may enter and use it, if the system’s screen is unlocked. However, your private folders will not be accessible to any guest user. But, to be on a safer side, it is recommended to disable the Guest account.

In my own system, the Trusty Tahr i.e. Ubuntu 14.04 LTS (Long Term Support) is installed and what I have examined is that there’s no “/usr/lib/lightdm/lightdm-set-defaults” command, to edit the “Lightdm” configuration file. Now, you may be thinking of what is the use of it? Guys, we are going to disable the Guest account, right! For that, we have to perform some changes in “lightdm.conf” file which was available under the “usr/lib” in the previous versions of Ubuntu.

Well, it’s not the thing to worry about, we”ll create it. Coming to the Lightdm, it is the indispensable X-display manager for Linux systems. X-display manager shows you the login screen that usually prompts for the login credentials. Lightdm provides the well-structured linking with the user interface and the X-server.

I hope you have understood the importance of “Lightdm”. So, in order to create and edit the “lightdm.conf” file, you must look at this article, where you will learn how to disable & enable Guest user account in Ubuntu by following the steps as explained below.

Steps to Disable & Enable Guest User Account in Ubuntu

To Disable the Guest account

Step 1: Firstly, open up the shell Terminal by pressing “Ctrl +Alt + T”. I have already told you that in this version, there’s no “lightdm” commands. To edit the “conf” file of Lightdm, the major requirement is to create the“lightdm.conf” file under “/etc” which is a directory in Ubuntu.

The etc stands for ‘etcetera’ which means “where everything else goes”. It’s better to create system files under this directory. Just type “sudo touch /etc/lightdm/lightdm.conf” and press enter.

If you are not a root user then only use “sudo” otherwise not.

How-you-can-disable-enable-guest-user-account-in-Ubuntu-step1

Step 2: Configuration file is now created. You need to edit it, for that you can use the editors such as vim, gedit or using cat command. Here, we will do it by using the “gedit”, the editor comes by default in the shell.

So, type “sudo gedit /etc/lightdm/lightdm.conf” and press enter.

How-you-can-disable-enable-guest-user-account-in-Ubuntu-step2

Step 3: File gets opened in the respective editor. Then, add the lines written below, just copy paste it from here and save the changes.
[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu
allow-guest=false

The meaning of “Greeter” over here is, the name of the login screen application in Ubuntu. In fact, the greeter is one of the Lightdm themes. It can be used with unity, kde desktop.

How-you-can-disable-enable-guest-user-account-in-Ubuntu-step3

Step 4: Back to the terminal, here you may notice some of the warnings such as IBUS-Warning, Gtk-Warning. That doesn’t matter, you can proceed with restarting the lightdm. So, type “sudo restart lightdm” and press enter.

How-you-can-disable-enable-guest-user-account-in-Ubuntu-step4

Step 5: Once the system restarts, you would find that “Guest Session” is no more available on the login screen. It means you have successfully achieved what you wanted.

How-you-can-disable-enable-guest-user-account-in-Ubuntu-step5

To Enable the Guest Account:

Step 6: Open the file named “lightdm.conf” as stated in the step 3. Then remove the line “allow guest=false” and then click on “Save” button to make the changes.

How-you-can-disable-enable-guest-user-account-in-Ubuntu-step6

Step 7: Restart your Ubuntu system. At the login screen, you will notice that Guest Session is now enabled.

How-you-can-disable-enable-guest-user-account-in-Ubuntu-step7

Stay Tuned with QueHow! For the latest articles about how-to?

You Might Also Like:

How to enable numlock automatically in Ubuntu 14.04 How to Enable / Disable Regedit in Windows 7 How to enable hibernate option in Ubuntu 14.04 How to Remove Guest Account in Ubuntu 14.04 How to easily Enable Root User in Ubuntu how to enable and disable firewall in ubuntuHow to Enable and Disable Firewall in Ubuntu How to enable and disable shutdown dialog box in Ubuntu 14.04 How to enable or disable automatic system updates in Ubuntu 14.04

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Most Viewed

  • How to Install and Use TELNET in Ubuntu
  • How to install Hindi fonts in MS Word
  • How to Change a File Extension in Windows 10?
  • How to create a flipkart account in 3 simple steps
  • How to Change Monitor Refresh Rate in Windows 10?
  • How to install IIS on Windows 10
  • How to Insert Clickable Checkbox in MS Word 2016?
  • How to Set Auto Reply in Outlook 2016?
  • How to Login as Administrator in Windows 10?
  • How to Check RAM Size and System Type in Windows 10?

Recent Additions

  • How to Add Hyperlink to Another Sheet in Excel?
  • How to Add and Remove Watermark in Excel
  • How to use Relative and Absolute Cell Reference in Excel?
  • How to Enable and Disable Scroll Lock in Excel?
  • How to Use INDEX and MATCH Functions in Excel?
  • How to Make Bar Graph in Excel?
  • How to Count Duplicate Values in Excel?
  • How to Wrap Text in Excel?
  • How to Round off Numbers in Excel?
  • How to Create a Bell Curve in Excel?

Related Searches

  • How to empty your trash automatically in Ubuntu 14.04
  • How to Create Gmail Account?
  • How to Export Contacts from Outlook 2010 to Excel
  • How to Partition Hard Drive in Windows 10?
  • How to Edit Video in PowerDirector?

Copyright © 2023 · QueHow · Contact Us