Manually create a guest account in Ubuntu20.04

×

狀態訊息

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

You can find more extense and precise information on how to create accounts and manage their permissions from the following Linux Users Tutorial


Continue reading to the next page:
Samba / Windows Server


Go back to read the previous page:
Installation of Restricted Codecs