I know I've tracked this down before but can't find the answer.
When I start a bash shell on CentOS 7 (from X Windows GNOME or KDE), the variable TMOUT is set which causes the shell to timeout after the specified period of inactivity.
The variable is readonly so I can't unset it or change it!
unset TMOUT
# prints bash: unset: TMOUT: cannot unset: readonly variable
export TMOUT=99999
# prints bash: TMOUT: readonly variable
Normally /etc/bashrc sets these kinds of things. I've tried to find where it is set using:
grep TMOUT $HOME/.??* /etc/* 2> /dev/null
# not found
So I don't think the TMOUT is actually being set in /etc/bashrc or if it is not being set in the way I was looking for it.
Other questions have been asked but they are not the same or not helpful.