Close console session due to user inactivity#9890
Merged
prgeor merged 1 commit intosonic-net:masterfrom Feb 2, 2022
Merged
Conversation
Signed-off-by: Prince George <prgeor@microsoft.com>
qiluo-msft
reviewed
Feb 1, 2022
| Defaults!PASSWD_CMDS !syslog | ||
|
|
||
| # Make sure sudo password prompt times out after 5 mins | ||
| Defaults passwd_timeout=5 |
Collaborator
Contributor
Author
There was a problem hiding this comment.
qiluo-msft
reviewed
Feb 1, 2022
|
|
||
| # 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 |
Collaborator
qiluo-msft
approved these changes
Feb 1, 2022
qiluo-msft
pushed a commit
that referenced
this pull request
Feb 8, 2022
Signed-off-by: Prince George <prgeor@microsoft.com>
judyjoseph
pushed a commit
that referenced
this pull request
Feb 14, 2022
Signed-off-by: Prince George <prgeor@microsoft.com>
yxieca
pushed a commit
that referenced
this pull request
Oct 25, 2022
Signed-off-by: Prince George <prgeor@microsoft.com>
Contributor
Author
|
@rlhui please help merge this PR to 201911 |
abdosi
pushed a commit
that referenced
this pull request
Jan 30, 2023
Signed-off-by: Prince George <prgeor@microsoft.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Prince George prgeor@microsoft.com
Why I did it
The default sudo password prompt timeout is NOT working. This is causing the console session to be held up even though the user in active for a long period of time. Due to this, TMOUT or auto-logout is not taking effect because user cannot login to bash, leaving the console unusable.
How I did it
Explicitly set the password prompt timeout in sudoers
How to verify it
Verified
Which release branch to backport (provide reason below if selected)
Description for the changelog
A picture of a cute animal (not mandatory but encouraged)