The default Ubuntu 20.04 installation uses GDM as a default display manager. Since GDM does not support Guest session in this article you will learn how to switch to and alternative display manager LightDM and enable guest session.

WARNING
Any data created and settings configured using Guest session are temporary and will be deleted at the end of the session ( log out ).


In this tutorial you will learn:
  • How to install LightDM display manager
  • How to switch from GDM to LightDM
  • How to enable Guest session
  • How to login to Guest session
Guest session on Ubuntu 20.04 Focal Fossa Linux
Guest session on Ubuntu 20.04 Focal Fossa Linux

Software Requirements and Conventions Used

Software Requirements and Linux Command Line Conventions
Category Requirements, Conventions or Software Version Used
System Installed Ubuntu 20.04 or upgraded Ubuntu 20.04 Focal Fossa
Software N/A
Other Privileged access to your Linux system as root or via the sudo command.
Conventions # - requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ - requires given linux commands to be executed as a regular non-privileged user

Enable Guest session Ubuntu 20.04 step by step instructions

  1. First step is to install and switch to LightDM display manager. To do so execute the bellow command:
    $ sudo apt install lightdm
    
    Install LightDM display manager
    Install LightDM display manager
    Select LightDM as a default display manager
    Select LightDM as a default display manager
  2. Enable Guest session by executing the following command:
    sudo sh -c 'printf "[Seat:*]\nallow-guest=true\n" > /etc/lightdm/lightdm.conf.d/40-enable-guest.conf'
    

  3. SUBSCRIBE TO NEWSLETTER
    Subscribe to Linux Career NEWSLETTER and receive latest Linux news, jobs, career advice and tutorials.


  4. Reboot your system:
    $ reboot
    
  5. Login to Guest session:

    Click on users menu
    Click on user's menu. Please note that your login screen might be different.
    Select Guest Session and log in.
    Select Guest Session and log in.
FIND LATEST LINUX JOBS on LinuxCareers.com
Submit your RESUME, create a JOB ALERT or subscribe to RSS feed.
LINUX CAREER NEWSLETTER
Subscribe to NEWSLETTER and receive latest news, jobs, career advice and tutorials.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.

You may also be interested in:



Comments and Discussions