On Sunday 30 November 2008, Neil Bothwick wrote: > 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?
No, only in /root/.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
Thanks, I entered this and I think it works (not sure I spent enough time
online to be certain). Time will tell, ha!
--
Regards,
Mick
signature.asc
Description: This is a digitally signed message part.

