[388] in linux-security and linux-alert archive
Re: Problem with /dev/ttyp*
daemon@ATHENA.MIT.EDU (Joe Portman)
Sat Sep 23 19:38:17 1995
Date: Thu, 21 Sep 1995 09:48:51 -0700 (PDT)
From: Joe Portman <baron@aa.net>
To: Adrian Miranda <ade@psg.com>
cc: pfnguyen@netcom.com, linux-security@tarsier.cv.nrao.edu
In-Reply-To: <m0svU2C-0001bMC@vancouver.wsu.edu>
On Wed, 20 Sep 1995, Adrian Miranda wrote:
> I don't think this will work if the rogue process already has the tty
> open before you do the chmod. An "fuser -k" on the device after you
> do the chmod seems to be pretty effective, though probably not
> perfect. Actually, doing an "fuser -k" seems particularly useful on
> Linux, since Linux seems highly prone to leaving processes lying
> around on ptys after someone logs out, especially if their session
> ends in an abnormal fashion. I think I've seen this on most/all Unix
> systems, but Linux seems worse, perhaps because (I'm told) it only
> sends a SIGHUP to the process group leader when someone disconnects
> unexpectedly.
fuser has been broken for many kernel revisions now. It will not work on
ttys (or other files for that matter).
Has anybody got a working version of fuser for 1.2.8 or later?
Thanks,
-----------------------------------------------------------------------------
Joe Portman - Alternate Access Inc. Affordable, Reliable Internet
baron@aa.net Mercer Island: (206) 230-8732 Seattle: (206) 443-3408
Tacoma: (206) 927-6010 Federal Way: (206) 838-8457
Bellevue: (206) 455-8414
For free trial account: set modem to 8-n-1, login as "new"
For questions or support, call our voice line (206) 728-9585.
-----------------------------------------------------------------------------