Close console session due to user inactivity (#9890)
Signed-off-by: Prince George <prgeor@microsoft.com>
This commit is contained in:
parent
660c0cbe7b
commit
ff14aebef9
@ -55,7 +55,7 @@ if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found/command-no
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Automatically log out console ttyS* sessions after 15 minutes of inactivity
|
# Automatically log out console ttyS* sessions after 15 minutes of inactivity
|
||||||
tty | grep ttyS >/dev/null && TMOUT=900
|
tty | egrep -q '^/dev/ttyS[[:digit:]]+$' && TMOUT=900
|
||||||
|
|
||||||
# if SSH_TARGET_CONSOLE_LINE was set, attach to console line interactive cli directly
|
# if SSH_TARGET_CONSOLE_LINE was set, attach to console line interactive cli directly
|
||||||
if [ -n "$SSH_TARGET_CONSOLE_LINE" ]; then
|
if [ -n "$SSH_TARGET_CONSOLE_LINE" ]; then
|
||||||
|
@ -64,6 +64,9 @@ ALL ALL=NOPASSWD: READ_ONLY_CMDS
|
|||||||
# Prevent password related command into syslog
|
# Prevent password related command into syslog
|
||||||
Defaults!PASSWD_CMDS !syslog
|
Defaults!PASSWD_CMDS !syslog
|
||||||
|
|
||||||
|
# Make sure sudo password prompt times out after 5 mins
|
||||||
|
Defaults passwd_timeout=5
|
||||||
|
|
||||||
# See sudoers(5) for more information on "#include" directives:
|
# See sudoers(5) for more information on "#include" directives:
|
||||||
|
|
||||||
#includedir /etc/sudoers.d
|
#includedir /etc/sudoers.d
|
||||||
|
Loading…
Reference in New Issue
Block a user