From owner-freebsd-questions Sat Jan 30 00:28:53 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA00451 for freebsd-questions-outgoing; Sat, 30 Jan 1999 00:28:53 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from alpha.comkey.com.au (alpha.comkey.com.au [203.9.152.215]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id AAA00432 for ; Sat, 30 Jan 1999 00:28:47 -0800 (PST) (envelope-from gjb@comkey.com.au) Received: (qmail 12942 invoked by uid 1001); 30 Jan 1999 08:02:29 -0000 Message-ID: <19990130080229.12941.qmail@alpha.comkey.com.au> X-Posted-By: GBA-Post 1.03 20-Sep-1998 X-Mailer: exmh version 2.0.2 2/24/98 X-PGP-Fingerprint: 5A91 6942 8CEA 9DAB B95B C249 1CE1 493B 2B5A CE30 Date: Sat, 30 Jan 1999 18:02:29 +1000 From: Greg Black To: "Doug" Cc: questions@FreeBSD.ORG, gjb@alpha.comkey.com.au Subject: Re: Identification of the owner of a port References: In-reply-to: of Sat, 30 Jan 1999 01:41:43 EST Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Ok, I need to find a way to get the owner of a port that is currently > open. Say 'user' opened a connection to example.com at port 23, I need a way > to locally at the box tell what user opened that connection. I can gather > the port numbers via netstat, but I don't know how to associate them to > their owner. Install lsof from the ports or packages, read the man page (especially the -i option), and you're fixed. -- Greg Black To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message