troglobit / finit

Fast init for Linux. Cookies included
https://troglobit.com/projects/finit/
MIT License
633 stars 63 forks source link

TTY inactivity timeout #131

Closed troglobit closed 3 years ago

troglobit commented 4 years ago

Like SSH logins, many customers today require support for automatically logging out even inactive console logins.

magnusmalm commented 3 years ago

This can be achieved by setting the environment variable TMOUT in /etc/profile (systemwide) or ~/.profile (per-user)

For example, to set a timeout of 2 minutes, add the following line:

export TMOUT=120

troglobit commented 3 years ago

Great work on this, thanks closing!