Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: zagar@names.maricopa.edu (Chris Zagar)
Subject: Re: Associating a userid with a network connection
Date: 24 Feb 1994 21:55:43 -0700	[thread overview]
Message-ID: <2kk0cf$47f@names.maricopa.edu> (raw)
In-Reply-To: 2kimdq$nqs@netnews.upenn.edu

>If netstat shows me the existence of a network connection, how do I
>find out what process/userid is using that connection?

For an example of some code that does this, ftp to "ftp.lysator.liu.se"
and download a package called pidentd.  This program is normally used
to augment auditing of TCP connections.  It includes some logic
in a subdirectory called kernel in a file called "other.c" which
shows how to access kernel structures that hold information on 
connections.

I think if you activate the software with certain extended features
turned on, it can also be used to query the local system regarding
connections, so you wouldn't have to write any code to be able
to find the info you want.

---------------------------------------------------------------------------
  /\   /\    Chris Zagar                        Maricopa Community Colleges
 /  \ /  \   Asst. Prog. Mgr./Networking              2411 West 14th Street
/ /\// /\ \  Bitnet: ZAGAR@MARICOPA                        Tempe, AZ  85281
\/   \/  \/  Internet: zagar@names.maricopa.edu              (602) 731-8838



  reply	other threads:[~1994-02-25  4:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-02-24 16:59 Associating a userid with a network connection R. David Murray
1994-02-25  4:55 ` Chris Zagar [this message]
1994-02-28  0:41 ` Anthony Baxter
1994-03-01 22:13   ` R. David Murray
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox