Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ucbvax!hplabs!hpda!hpcupt1!kluft From: kluft@hpcupt1.HP.COM (Ian Kluft) Newsgroups: comp.unix.questions Subject: Re: How do I use ksh TMOUT on 5.2 Message-ID: <6060012@hpcupt1.HP.COM> Date: 9 Jun 88 19:03:54 GMT References: <130@wash08.UUCP> Organization: HP Network Systems Group, Cupertino CA Lines: 23 > / txr98@wash08.UUCP (Timothy Reed) / 3:29 pm Jun 7, 1988 / > hopefully easy question: how do I access the TMOUT variable to zap an > idle user. Ideally I'd like to trap it in a user's login shell. MKS > doc indicates that TMOUT's sends a SIGALRM, but ksh does not seem > recognize such a signal on the unix 5.2 system I am running ksh on. I > manually set TMOUT to '1', and got a 'shell timeout in 60 seconds' with > every tap of the return key! > Thanks in advance... > +-------------------------------------------------------+ > | Timothy Reed - American Chemical Society | > | UUCP: ..uunet!wash08!txr98 | > ... etc. If you want everyone on your system to have their KSH time out after, say, 5 minutes, set TMOUT in the /etc/profile to 5*60 seconds or 300. This would be the line you'd add to /etc/profile: TMOUT=300; export TMOUT; readonly TMOUT With the readonly on there, the users cannot change or unset it in their login shell. Ian Kluft HP Network Systems Group hplabs!hprasor!kluft Cupertino, CA