Ubuntu 16.04 Guest Session
As others have pointed out the guest session available in Ubuntu 16.04 LTS may do what you need. The guest session has the following characteristics:
- Does not have any password. Anyone can log into the guest session.
- Guest cannot save any files in the computer (saving to attached USB drive is OK).
- Guest cannot do anything that requires
sudo
such as install or uninstall any software.
- Guest cannot view or access in any way the system folders and home
folders of standard users.
- Any changes the guest makes to the desktop, such as change wallpaper,
add or remove shortcuts, etc. will be reverted back to original state
when the guest logs out and a new guest logs in.
Warning: Ubuntu 16.10 and above have the guest account disabled by default because of a systemd security bug that allows the guest to get into the home directory of any other users. See Guest session stopped working on Ubuntu versions later than 16.04 for more details.
How to modify Ubuntu 16.04 Guest Session
As an administrator you may want to change the guest session look and feel. For example:
- You may want to remove Firefox from the launcher and put the Chrome
there. (You will have to install Chrome using the administrator
account first).
- You may want to stop the backup software pop up and tell the guest to
back up things. (The guest can't use backup anyway.)
Follow these steps to make such changes:
Log on to the administrator account, the account you created when you installed Ubuntu and where you can use sudo
and:
and open a terminal by pressing Ctrl+Alt+T and create the directory /etc/guest-session/skel
sudo mkdir -p /etc/guest-session/skel
Do not close the terminal yet.
While logged to the administrator account, start a guest session. You will need to switch between the guest and administrator account later.
Make any changes to the guest session that you want using whatever
tools/utilities you wish
Wait for Backup setup to show up. Click on don’t show again. This will stop it from showing up every time a guest logs in.
Do not log out the guest session!
Switch back to admin account.
Using the open terminal, find the temporary guest home directory. It will look like guest-XXXXX
, where XXXXX
is a random bunch of numbers and letters. These change every time a new guest session is created.
ls /tmp/guest*
Copy the files in the temporary guest home directory to
/etc/guest-session/skel
using the command:
sudo cp -rT /tmp/guest-XXXXX /etc/guest-session/skel
This will save all the changes you have made to the current guest session.
Log out of the guest session and login again to the guest session to verify the new guest session starts with all the changes you just made.
To make more changes, repeat steps 2-7 as necessary.
Source: http://ubuntuforums.org/showthread.php?t=2152804&p=12687863#post12687863
Hope this helps