From owner-freebsd-questions Mon Jan 21 13:33: 4 2002 Delivered-To: freebsd-questions@freebsd.org Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141]) by hub.freebsd.org (Postfix) with ESMTP id E61E937B417 for ; Mon, 21 Jan 2002 13:32:58 -0800 (PST) Received: from k7.mavetju.org (topaz.mdcc.cx [212.204.230.141]) by topaz.mdcc.cx (Postfix) with ESMTP id F0D762B69B; Mon, 21 Jan 2002 22:32:56 +0100 (CET) Received: by k7.mavetju.org (Postfix, from userid 1001) id 4DDD337D; Tue, 22 Jan 2002 08:32:51 +1100 (EST) Date: Tue, 22 Jan 2002 08:32:50 +1100 From: Edwin Groothuis To: Jim McIver Cc: freebsd-questions@freebsd.org Subject: Re: port Message-ID: <20020122083250.G823@k7.mavetju.org> Mail-Followup-To: Edwin Groothuis , Jim McIver , freebsd-questions@freebsd.org References: <3C4C16CF.18360.13CC36BA@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C4C16CF.18360.13CC36BA@localhost>; from jmciver@lmtribune.com on Mon, Jan 21, 2002 at 01:25:32PM +0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Jan 21, 2002 at 01:25:32PM +0000, Jim McIver wrote: > How would tell what port a daemon is running on? > > I know that FTP is suppose to use port 21 and 20, but is there a way to > see this? You can... 1. Read the RFC about FTP, it explains which well-known ports are used for it. 2. Check /etc/services, which has an entry for ftp and ftp-data 3. Check /etc/inetd.conf, which has an entry for ftp in it, together with 2. 4. Run lsof or sockstat, which tells which processes are using which ports. Edwin -- Edwin Groothuis | Personal website: http://www.MavEtJu.org edwin@mavetju.org | Interested in MUDs? Visit Fatal Dimensions: ------------------+ http://www.FatalDimensions.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message