unopenable tty
Kartik Subbarao
subbarao at phoenix.Princeton.EDU
Fri Sep 21 07:00:08 AEST 1990
In article <6429 at castle.ed.ac.uk> expc55 at castle.ed.ac.uk (Andrew Myles) writes:
>ioctl(1,TIOCEXCL); /* no more opens - when I use this I find
> that mail demons cannot tell me of new
> mail, sysops cannot wall etc... :-) */
>
This is not the case! "biff", "talk" and "wall" seem to work fine for me
even with the tty - exclusive on mode. The reason talk works is because the
talk daemon is a root process, and "wall" is a setuid root (or root run)
program. As to "mail", it is another thing which works. Root can have his
way regardless of what you do.
I ran a program like this for quite a while (still do) to stop direct writes
on my tty with cat and friends, but still allow talk messages.
subbarao@{phoenix or gauguin}.Princeton.EDU -|Internet
kartik at silvertone.Princeton.EDU (NeXT mail) -|
subbarao at pucc.Princeton.EDU - Bitnet
More information about the Comp.unix.questions
mailing list