Guest Session: delete files when logoff

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Lebwoski

Guest Session: delete files when logoff

Post by Lebwoski »

Hi,

as far as i know, there is no possibility to create an guest-Account with mdm like with lightdm. Because of this, i created an user "user". The hom-directory is /home/user. The problem is, that every user can make changes, which will be saved in the corresponding config-file. Is there a way, to delete all files, if this user logout?

Thank you
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
PatH57

Re: Guest Session: delete files when logoff

Post by PatH57 »

Hi,

you could use lightdm or because the login manager in 17 uses MDM, which is based on Gnome 2's GDM. you could try this:

The first step is simple - create a new user (called Guest, if you like). with no admin rights

Next, we need to lock down your home folder so only you can access your files. To do so, open a terminal (while logged in as your main account) and type:

chmod 700 ~

This will change the permissions on your home folder so that only you and root can view it.

You're all done! You now have a second user account that anyone can use, that cannot access your personal home folder and from time to time delete it and recreate it to wipe the files.
Locked

Return to “MATE”