From owner-freebsd-current Wed Aug 16 13:11:55 2000 Delivered-To: freebsd-current@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 229FB37B72A for ; Wed, 16 Aug 2000 13:11:46 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=root) by scientia.demon.co.uk with esmtp (Exim 3.16 #1) id 13P97z-00058b-00; Wed, 16 Aug 2000 20:45:31 +0100 Received: (from ben@localhost) by strontium.scientia.demon.co.uk (8.9.3/8.9.3) id UAA49916; Wed, 16 Aug 2000 20:45:31 +0100 (BST) (envelope-from ben) Date: Wed, 16 Aug 2000 20:45:31 +0100 From: Ben Smithurst To: Donn Miller Cc: current@freebsd.org Subject: Re: ftp and /etc/services... Message-ID: <20000816204531.C18766@strontium.scientia.demon.co.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Donn Miller wrote: > This is on a recently-built -current box. When I try to move ftp from > port 21 to port 2121 in /etc/services, I get a "Connection refused" > message when I try to login to anonymous ftp sites. Well _there's_ a surprise. > Should ftp be this dependent on /etc/services? Uh, yes, that's the whole _point_ of /etc/services, so you can dynamically get a port number rather than hardcoding it. Of course, the port number for things like ftp/http/smtp and the other popular protocols are very unlikely to ever change, but that's not the point. If you change port numbers in /etc/services, things will break. > What if you _have_ no services running, e.g. inetd & portmap? ?? What relevance does that have to your problem/question? -- Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D FreeBSD Documentation Project / To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message