Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion files/image_config/bash/bash.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found/command-no
fi

# 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
Copy link
Copy Markdown
Collaborator

@qiluo-msft qiluo-msft Feb 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

egrep

Is it a bug fix or refactor? #Closed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refactor


# if SSH_TARGET_CONSOLE_LINE was set, attach to console line interactive cli directly
if [ -n "$SSH_TARGET_CONSOLE_LINE" ]; then
Expand Down
3 changes: 3 additions & 0 deletions files/image_config/sudoers/sudoers
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ ALL ALL=NOPASSWD: READ_ONLY_CMDS
# Prevent password related command into syslog
Defaults!PASSWD_CMDS !syslog

# Make sure sudo password prompt times out after 5 mins
Defaults passwd_timeout=5
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

passwd_timeout

Is it a well known issue in upstream? Do you have a tracking link for this bug?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d
Expand Down