Manually create a guest account in Ubuntu20.04

×

Mensaje de estado

If you have any questions about this page or if you find any errors, please write a message to the support wall and a Labdoo volunteer will help resolve it. Thank you for helping to improve our wiki pages.

Ubuntu20.04 has some problem with Guest Session. You can create a guest account with the following procedures
---
1. Select "Administration->Users and Groups ->Add" , to create a new "guest" user:
Name: guest
Username: guest
2. Select the "guest" user and go to the "Advance Setting"
1. Under "Advanced" tab, deselect "Disable account" box
2. Click on "Change" Password, and select "Don't ask for password on login" box
3. Edit "/etc/lightdm/lightdm.conf " file to disable the guest session created by Ubuntu20.04 and add logout procedure for new guest account

allow-guest=false
session-cleanup-script=/home/labdoo/Public/guest_logout.sh

4. Create a /home/labdoo/Public/guest_logout.sh file as followed

#!/bin/bash
if [ $USER = "guest" ]
then
rm -r /home/guest/*
cd /home/guest
mkdir Desktop Documents Downloads Music Pictures Public Templates Videos
chown guest *
chgrp guest *
rm -rf /home/guest/.mozilla/firefox
fi


Continue reading to the next page:
Change keyboard layout when logging in (Boot)


Go back to read the previous page:
16.04 LTS does not boot, graphic resolution on screen low