1

I would like any user's GUI session to be logged out in 15 minutes of inactivity. stock Ubuntu Desktop 18.04 (gnome, systemd, etc). The optimal solution is native (shell script, built in file setting, etc), and not from a PPA (gov space restrictions).

I am aware of How do I restrict my kids' computing time?, but this question addresses a specific time-of-day, not inactivity.

cawwot
  • 332

1 Answers1

2

It looks like the autolog package fills this requirement:

autolog - Log out idle users http://manpages.ubuntu.com/manpages/bionic/man8/autolog.8.html

The time to logout can be set in /etc/autolog.conf for users, groups, etc. Additionally it provides warnings and grace periods so work is not lost.

cawwot
  • 332