From 778ac3ed83223d9bd234e5516456407ee1404157 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Weism=C3=BCller?= Date: Tue, 5 Feb 2013 21:35:16 +0100 Subject: [PATCH] Close console after 10 minutes idle. For security reasons, all local consoles get closed after 10 min idle. This does not count for screen or ssh sessions. --- config/bash/dot_bashrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/bash/dot_bashrc b/config/bash/dot_bashrc index 6e6d1e1f17..90b96b4326 100644 --- a/config/bash/dot_bashrc +++ b/config/bash/dot_bashrc @@ -10,3 +10,9 @@ alias mv='mv -i' if [ -f /etc/bashrc ]; then . /etc/bashrc fi + +# Automatically logout only console users after 10 minutes. +export TMOUT=0 +if [ -z "${SSH_TTY}" ] && [ -z "${STY}" ]; then + export TMOUT=600 +fi -- 2.39.5