[comp.unix.questions] root monitor tty...

scarroll@cup.portal.com (Scott A Carroll) (06/25/91)

  Okay, here is the question: I need to monitor a tty, a group of ttys (includi
ng [pt]tty).  Can I adjust the FIFO to pipe the info to a fil(like conlog)?   
If I tail -f,or cat the tty ports it skips an echo, and on the next line except
s
the input.  This may be an easy thing to do, it should be but because of the 
user friendly manuals I can't seem to find the info I need. By the way I am 
the system admin, and we are having a security/abuse problem.

Scott Carroll

 *****************************************************************************
 *      scarroll@sabea-oc.af.mil (131.18.15.11) scarroll@cup.portal.com      *
 *****************************************************************************

ag@amix.commodore.com (Keith Gabryelski) (06/29/91)

Followups to c.u.admin.

scarroll@cup.portal.com (Scott A Carroll) writes:
> I need to monitor a tty, a group of ttys (including [pt]tty).

Generally, you can't do this on a unix system.  It has been done, with varing
results using kernel (clist) hacking routines (for machines that use clists for
tty processing).

Streams ttys offer an easier interface.  A module could be pushed on a stream
tty which would tee off the output to another device which could be read by
another process.

I have written such a streams module a posted it to alt.sources a
while back.  It is called advise and allows a use to place his
terminal in another user's terminal stream.  The advising user can
send and receive i/o as if they were the advisse user.  It only works
on System V Release 4 machines, though so it may not be of much help
to you.

Pax, Keith
-- 
Keith Gabryelski                                 Advanced Products Group
ag@amix.commodore.com                                 ...!cbmvax!amix!ag