On Sun, 30 Nov 2008 09:48:15 +0000, Mick wrote: > I've exported TMOUT=1200 to make sure an absent minded colleague does > not leave his console logged in as root and walk away. > > This has the desired effect - except that when I am su'd in via SSH it > also kicks in and logs me out midstream whatever I have been doing at > the time.
Where do you set this, in the profile/bashrc? You could test $SSH_TTY
before setting the variable, so it is not set for SSH logins. I use a
similar method to give a different prompt for SSH sessions.
[[ -n "${SSH_TTY}" ]] || export TMOUT=1200
--
Neil Bothwick
Always proofread carefully to see if you any words out.
signature.asc
Description: PGP signature

