[comp.unix.xenix.sco] Logging off idle users under SCO Xenix

dts@quad.sialis.com (David Sandberg) (01/08/91)

I need to find a program which will automatically log out users
who haven't touched their terminals in a certain length of time.
I've heard of a program called untamo from the comp.sources.unix
archives which does this, but my impression is that it is rather
BSD-dependent.  If anyone has a SCO Xenix 2.3.2 solution to this
quandray, I would be very grateful to them if they'd fill me in.
(Yes, I have the development system, so source is an option.)

Thanks in advance!

-- 
 \\         David Sandberg         \     ,=,       ,=,           \\
 //      dts@quad.sialis.com       /     | |uadric `=,ystems     //
 \\  uunet!umn-cs!sialis!quad!dts  \     `=\       `='           \\

grwalter@watfun.uwaterloo.ca (Fred Walter) (01/08/91)

In article <645@quad.sialis.com> dts@quad.sialis.com (David Sandberg) writes:
>I need to find a program which will automatically log out users
>who haven't touched their terminals in a certain length of time.
...
>(Yes, I have the development system, so source is an option.)

Do you have the manuals ? If so, look up the "idleout" command in the
System Administration (ADM) section.

	fred

bob@consult.UUCP (Bob Willey) (01/08/91)

In article <645@quad.sialis.com> dts@quad.sialis.com (David Sandberg) writes:
>I need to find a program which will automatically log out users
>who haven't touched their terminals in a certain length of time.
>I've heard of a program called untamo from the comp.sources.unix
>archives which does this, but my impression is that it is rather
>BSD-dependent.  If anyone has a SCO Xenix 2.3.2 solution to this
>quandray, I would be very grateful to them if they'd fill me in.
>(Yes, I have the development system, so source is an option.)
> \\         David Sandberg         \     ,=,       ,=,           \\
> \\  uunet!umn-cs!sialis!quad!dts  \     `=\       `='           \\


I think that this is something of importance to a lot of users 
out there.  Posting is in order I feel.

There is an option in SCO Xenix 2.3.2 called idleout, where you
can specify a time in minutes and if there is no activity on that
terminal for the specified time limit, it will cancel the process.
The downside is in the exact implementation.  I works on keyboard
input.  i.e.  If you haven't touched the keyboard in XX minutes
you get logged out.  The danger is that if you set the time for
say 120 minutes and run a long posting sequence that does not prompt
for any input and takes 3 hours to run, at 2 hrs into the posting you
will be logged out, and the posting terminated.  This can be disastrous.

It does works just as advertised so it is not broken.  Just not what
a lot of us were looking for in its implementation.

Hope this helps. 

-- 
>.. CCS Enterprises, Inc.           ..    Bob Willey, CDP     ..<
>.. P.O. Drawer 1690                ..    uunet!consult!bob   ..<
>.. Easton, Maryland  21601         ..    (301) 820-4670      ..<
>.......................BBS: (301) 476-5098.....................<

mike@bria.UUCP (Michael Stefanik) (01/09/91)

In article <645@quad.sialis.com> dts@quad.sialis.com (David Sandberg) writes:
>I need to find a program which will automatically log out users
>who haven't touched their terminals in a certain length of time.
>I've heard of a program called untamo from the comp.sources.unix
>archives which does this, but my impression is that it is rather
>BSD-dependent.  If anyone has a SCO Xenix 2.3.2 solution to this
>quandray, I would be very grateful to them if they'd fill me in.
>(Yes, I have the development system, so source is an option.)

Well, yup, I actually do have a general purpose program called "watchdog"
that will monitor processes and zap 'em if they linger.  I originally
wrote it under AIX (but it works swimmingly under XENIX) to kick our
programmers off modems.  How watchdog differs from idleout is that
watchdog monitors *any* type of process that you want it to, not just
login shells (it's great for zapping turkeys who dialup a system 3000
miles away, and then go out for lunch without disconnecting ...)

Generally, how it works is this: you tell watchdog what processes you're
looking for (in your case "-sh" for login shells), what is the amount
of time that the associated terminal must be idle before the process is
killed, and the interval for checking up on people.  Watchdog will then
nice itself and become a (rather deadly) daemon.  Everytime it nails
someone, it updates a text file /usr/adm/watchdog, telling you when it
got 'em and why.

As an aside, I also wrote a penable and pdisable for XENIX, which will
enable and disable ports ala telinit or enable/disable; the difference
being that if you pdisable a port, all processes associated with said
port are killed (violently, at times :-) unlike disable, which wimps out
and moans how someone is on that port.

Remember, if you're gonna kill 'em, kill 'em fast and kill 'em hard!
And if you want the watchdog, send mail to uunet!bria!mike

-- 
Michael Stefanik, Systems Engineer (JOAT), Briareus Corporation
UUCP: ...!uunet!bria!mike
--
technoignorami (tek'no-ig'no-ram`i) a group of individuals that are constantly
found to be saying things like "Well, it works on my DOS machine ..."