Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Associating a userid with a network connection
@ 1994-02-24 16:59 R. David Murray
  1994-02-25  4:55 ` Chris Zagar
  1994-02-28  0:41 ` Anthony Baxter
  0 siblings, 2 replies; 4+ messages in thread
From: R. David Murray @ 1994-02-24 16:59 UTC (permalink / raw)


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

--
david	


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Associating a userid with a network connection
  1994-02-24 16:59 Associating a userid with a network connection R. David Murray
@ 1994-02-25  4:55 ` Chris Zagar
  1994-02-28  0:41 ` Anthony Baxter
  1 sibling, 0 replies; 4+ messages in thread
From: Chris Zagar @ 1994-02-25  4:55 UTC (permalink / raw)


>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



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Associating a userid with a network connection
  1994-02-24 16:59 Associating a userid with a network connection R. David Murray
  1994-02-25  4:55 ` Chris Zagar
@ 1994-02-28  0:41 ` Anthony Baxter
  1994-03-01 22:13   ` R. David Murray
  1 sibling, 1 reply; 4+ messages in thread
From: Anthony Baxter @ 1994-02-28  0:41 UTC (permalink / raw)


david@wal6000b.udc.upenn.edu (R. David Murray) writes:

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

lsof 2.28 and later supports DEC OSF/1. Its available from
vic.cc.purdue.edu. This will allow you to find which process
is using which connection.

Anthony
-- 
anthony baxter @ /\/\||   |= Sarah McLachlan mailing =| australian artificial 
email: anthony@aaii.oz.au |= list: mail fte-request@ =| intelligence institute
phone: +613 663 7922      |= yoyo.cc.monash.edu.au.  =| 1 grattan st, carlton  
Practice random kindness and senseless acts of sarcasm.    australia 3053.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Associating a userid with a network connection
  1994-02-28  0:41 ` Anthony Baxter
@ 1994-03-01 22:13   ` R. David Murray
  0 siblings, 0 replies; 4+ messages in thread
From: R. David Murray @ 1994-03-01 22:13 UTC (permalink / raw)


Anthony Baxter (anthony@aaii.oz.au) wrote:
: david@wal6000b.udc.upenn.edu (R. David Murray) writes:
: lsof 2.28 and later supports DEC OSF/1. Its available from
: vic.cc.purdue.edu. This will allow you to find which process
: is using which connection.

Thank you very much!  This is exactly what I was looking for.  I've also
installed ident, since I really ought to have it up anyway, but I
couldn't figure out how to get it to tell *me* anything, and don't have
time to munge code right now.  But lsof tells me what I need to know.

--David


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1994-03-01 22:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-02-24 16:59 Associating a userid with a network connection R. David Murray
1994-02-25  4:55 ` Chris Zagar
1994-02-28  0:41 ` Anthony Baxter
1994-03-01 22:13   ` R. David Murray

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