From owner-freebsd-security Fri Oct 6 5:40:47 2000 Delivered-To: freebsd-security@freebsd.org Received: from sentinel.office1.bg (sentinel.office1.bg [195.24.48.182]) by hub.freebsd.org (Postfix) with SMTP id 7FC3537B502 for ; Fri, 6 Oct 2000 05:40:38 -0700 (PDT) Received: (qmail 5890 invoked by uid 1001); 6 Oct 2000 12:33:43 -0000 Date: Fri, 6 Oct 2000 15:33:43 +0300 From: Peter Pentchev To: Walter Hop Cc: Michael Bryan , security@FreeBSD.ORG Subject: Re: cvs commit: src/etc inetd.conf Message-ID: <20001006153343.B232@ringwraith.office1.bg> References: <39D93044.8B0C4E69@ursine.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from walter@skydancer.nl on Tue, Oct 03, 2000 at 03:40:54AM +0200 Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, Oct 03, 2000 at 03:40:54AM +0200, Walter Hop wrote: > [in reply to Michael Bryan , 02/10/00] > > > If any port has a listener on it, as an admin you'd better know what that > > listener is > > This shell script should be in the base ;) > > lsof -i | grep LISTEN | awk '{ print $1 "("$3") " $9} ' | sort | uniq > > Don't recall where I got it from, some Linux site I believe... And to paraphrase an earlier comment by DES, "Funny way to say sockstat | fgrep '*.*'" :) G'luck, Peter -- This would easier understand fewer had omitted. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message