Add Guest user to Persistent flash drive

Persistent flash drives made using the leading boot drive creators such as mkusb, Unetbootin, Rufus, YUMI, etc do not come with a Guest user, as does a normal desktop install or Full install to pendrive.

It is possible to log into a flash drive using Try Ubuntu, which will also permit a temporary session, however there is too much privilege with a try Ubuntu session, such as being able to format the internal drives.

I would like to add a Guest user that is exactly the same as the Guest user in a Full install, No power to do anything destructive and a full cleansing of the Guest account after every use.

Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

Guest User accounts are controlled by lightdm.conf.

For a grub2 booters with persistent casper-rw partitions, such as mkusb:

Open casper-rw/upper/etc/lightdm/lightdm.conf and change “allow-guest=true”. Now there will be a Guest account.

For Syslinux booters with persistent casper-rw files such as UNetbootin:
First mount the casper-rw file:

sudo mkdir /media/casper

sudo mount -o loop casper-rw /media/casper/

Then edit casper/upper/etc/lightdm/lightdm.conf and change “allow-guest=true”.
A guest account will be added to boot options.

A bug has been issued for Guest session 16.10 and newer: Bug.
It concerns not confined processes.

For 17.04 Gnome, LightDM has been replaced by GDM and GDM does not include a Guest session.

The user can install LightDM in 17.04 Gnome using sudo apt install lightdm
The install process will ask to remove GDM.

17.04 Gnome reports as being unconfined when in a guest session, caution applies.

Thanks to Gunnar Hjalmarsson for the hint and mc4man for the bug warning.

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply