I have some kiosk PCs that pretty much work like the Ubuntu guest session. The kiosk users home has a union filesystem mounted on top of it so the can't change anything but can still save files while working at the machine (and take them with them using a USB key).
Users sometimes leave the stations with private stuff still on the desktop. Because of that I want them logged out after - say - 10 minutes of inactivity (the union file system will be emptied on logout).
Any ideas if there is an existing solution (autolog only logs the user out of active terminal sessions).
Frustrated with
autolog
, I wrote my own script too. It's on Github./usr/bin/idlekiller
To set it up:
I wrote my own script to do this. There is a tool called xprintidle that gives you the idle time of an xsession. You need to install it first
Then create the script, for example in /root/bin/idle_check.sh:
I opened roots crontab to make it check every minute
and have it look like this
Works like a charm.