diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-09-27 11:32:42 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-09-28 13:21:18 +0000 |
commit | ee2dc735e02930ac46c6ccc96dc5486ab96179e5 (patch) | |
tree | 129263100c11e8cd35b87c403311203329887cd0 /data | |
parent | 5fe0e9c163ee2f8229e298fc20dbfe6746c2cdcc (diff) | |
download | vyos-1x-ee2dc735e02930ac46c6ccc96dc5486ab96179e5.tar.gz vyos-1x-ee2dc735e02930ac46c6ccc96dc5486ab96179e5.zip |
login: T4715: Auto logout user after inactivity
Ability to terminate interactive sessions (TTY/PTS) after a period
of inactivity.
set system login timeout '300'
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/login/autologout.j2 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/data/templates/login/autologout.j2 b/data/templates/login/autologout.j2 new file mode 100644 index 000000000..dc94eecc3 --- /dev/null +++ b/data/templates/login/autologout.j2 @@ -0,0 +1,5 @@ +{% if timeout is vyos_defined %} +TMOUT={{ timeout }} +readonly TMOUT +export TMOUT +{% endif %} |