From owner-freebsd-ports Thu Jan 23 13:24:13 2003 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 43AD137B401 for ; Thu, 23 Jan 2003 13:24:12 -0800 (PST) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.89]) by mx1.FreeBSD.org (Postfix) with ESMTP id C257E43F5B for ; Thu, 23 Jan 2003 13:24:09 -0800 (PST) (envelope-from julianmayer@mac.com) Received: from asmtp02.mac.com (asmtp02-qfe3 [10.13.10.66]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id h0NLO5r4027682 for ; Thu, 23 Jan 2003 13:24:09 -0800 (PST) Received: from mac.com ([80.110.68.229]) by asmtp02.mac.com (Netscape Messaging Server 4.15) with ESMTP id H96RG400.N96; Thu, 23 Jan 2003 13:24:04 -0800 Date: Thu, 23 Jan 2003 22:24:02 +0100 Subject: Re: FreeBSD Port: portupgrade-20021216 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v551) Cc: ports@FreeBSD.org To: Peter Pentchev From: Julian Mayer In-Reply-To: <20030123141545.GA452@straylight.oblivion.bg> Message-Id: Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.551) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Am Donnerstag, 23.01.03, um 15:15 Uhr (Europe/Vienna) schrieb Peter Pentchev: > On Thu, Jan 23, 2003 at 03:11:46PM +0100, Julian Mayer wrote: >> >>> Yes, it would seem that the stock ftpd does not provide a way to >>> specify >>> a different port/service to use in daemon mode. In inetd mode, >>> everything is fine and dandy. >>> >> >> how is this fine in inetd mode? inetd uses /etc/services to map >> protocolstoports too AFAIK... > > As I wrote in my very first reply to you, all you need to do is modify > inetd.conf and invoke the ftpd program via a *different* service, not > 'ftp'. That is, take the following line: > > ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l > > ..and change it to: > > 221 stream tcp nowait root /usr/libexec/ftpd ftpd -l > > Restart inetd, and you have an FTP daemon listening on port 221 instead > of 21. > hm, that seem to work for me (in fact i not only tried to replace "ftp" with a number, but also with another servicename to get it running on another port) anyway how should inetd be able to run ftpd on another port if ftpd itself doesnt have this capability? regards, julian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message