As no one has given a valid answer of things that can still be done easily.
No there is no guest session included in Debian but nevertheless you can take one from Ubuntu and implement it in your Debian.
source:
https://blog.vstans.nl/?hl=en#id=7
HowTo: Setup Debian 11 temp guest login
make a backup of 01_debian.conf found in /usr/share/lightdm/lightdm.conf.d/01_debian.conf but outside that directory as it will be deleted otherwise.
search
https://pkgs.org/download/lightdm for the appropriate lightdm.deb that fits your need. For Debian 11 I used lightdm_1.30.0-0ubuntu4~20.04.2_amd64.deb
found in Ubuntu Focal.
install this file with
Code:
dpkg -i lightdm_1.30.0-0ubuntu4~20.04.2_amd64.deb
If required install missing dependencies.
look inside your 01_debian.conf backup file and make sure it has greeter-hide-users=false or it will not show the guest account
mine looks like this:
Code:
[Seat:*]
greeter-session=lightdm-greeter
greeter-hide-users=false
session-wrapper=/etc/X11/Xsession
copy it back to the location /usr/share/lightdm/lighdm.conf.d/
In this directory you will also find file 50-disable-guest.conf change it contents to
Code:
[Seat:*]
allow-guest=true
in the same directory you will find 50-xserver-command.conf change it contents by commenting it out with #
Code:
[Seat:*]
# Dump core
#xserver-command=X -core
or simply delete the file.
That should be all configuration needed to restart lightdm.service
Code:
systemctl restart lighdm.service
Extra's:
The guest user account will be created on every login and deleted on every logout.
To customize the guest account you can create a skeleton in /etc/guest-session/
mkdir /etc/guest-session/skel/
If this directory is not created or found it will use the default directory /etc/skel which you can also use but is not adviced as this is also used for newly created users. you may however copy it's contents to /etc/guest-session/skel/
To disable excisting users from showing on the login you can disable them. Each user has a own file and need to be editted seperatly. ex. for user foobar edit /var/lib/AccountsService/users/foobar and add