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.
This commit is contained in:
Daniel Weismüller
2013-02-05 21:35:16 +01:00
committed by Michael Tremer
parent be82627d34
commit 778ac3ed83

View File

@@ -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