I have put TMOUT=1800;export TMOUT in the /etc/profile, put it does not work, by the way the root default shell is sh. but I wana every one including root to terminate the session after setting idle for 1800 seconds. thank for the help.
I don't think TMOUT is available in sh, so you'll either have to switch to ksh (which I know isn't adviseable in terms of system recovery for example) or bash. I guess another option is to write your own script to find out who's been idle for > 30 minutes using the finger idle column as the basis. My script at faq822-1270 though not exactly what you wanr, might give you some ideas.
I have just put this (succesfully) into my .profile as
"export TMOUT=1800" (Thanks Ken) although
env command shows a strange output. But it must go in every user .profile. I didn't bother with root.
Or type it in at the command prompt, you could test it with a low value.
this timeout does not depend on the telnet itself but it is a shell feature; sh does not have this feature but ksh, bash, csh and tcsh (other's may have this, too)
Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.