mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
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:
committed by
Michael Tremer
parent
be82627d34
commit
778ac3ed83
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user