Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can inactive users be automatically logged out?

Shell

How can inactive users be automatically logged out?

by  pcunix  Posted    (Edited  )
From http://pcunix.com/SCOFAQ/scotec6.html#idleout :


The "idleout" program has been included with SCO Unix versions since Xenix. It is a shell script, so you can easily modify it if it doesn't quite answer your needs.

There are some limitations to it, however, so you may want to use something else.

A better program is nidleout ( ftp://ftp.armory.com/pub/admin/nidleout ) by John Dubois. That's a ksh script- it's complicated, though, and probably hard to modify unless you understand ksh scripts very well. However, it may
do exactly what you want without modification.

It's possible that just setting the TMOUT variable in ksh or bash may be enough for your needs; see the man pages for your shell.

Linux has "autolog", and a compiled OSR5 version (complete with man pages) is available from http://www.tkrh.demon.co.uk/files/.

There are also commercial solutions. Computronics Logmon ( http://pcunix.com/Reviews/logmon.html ) is product that doesn't have the limitations of idleout and offers extensive configuration capability.

Finally, I have a Perl script that has its own way of approaching the problem:: http://pcunix.com/Unix/piddle.html
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top