Re: A second question of Security

Steve Shah (sshah@alteon.com)
Mon, 20 Dec 1999 08:25:56 -0800


On Mon, Dec 20, 1999 at 05:11:01PM +0100, Mathias Feiler wrote:
> I was'nt able to tell what process it was.
> I worked it out by just killing one by one ... Bloddy !

Ouch.

> Now the Q:
> Is there a standard way (Linux,Aix,Solaris,..) to get the
> port-process-mapping out of the kernel?
> I.e. something like "netstat -UgglySwitch" or such

Try netstat -ap

the -p will give the process to port mapping.

If you don't have a recent enough version of netstat to do that,
you can use something like lsof or fuser.

lsof: ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/README

fuser comes with RedHat.

-Steve

-- 
______________________________________________________________________________
Steve Shah (sshah@alteon.com) | Alteon Web Systems Inc. (Developer/Sysadmin)
    http://www.alteon.com     |   Voice: 408.360.5500  Fax: 408.360.5500
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
             Beating code into submission, one OS at a time...
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu