From owner-freebsd-ports Thu Jan 23 6:16:58 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 CEADA37B401 for ; Thu, 23 Jan 2003 06:16:56 -0800 (PST) Received: from straylight.ringlet.net (office.sbnd.net [217.75.140.130]) by mx1.FreeBSD.org (Postfix) with SMTP id 2F78343F13 for ; Thu, 23 Jan 2003 06:16:47 -0800 (PST) (envelope-from roam@ringlet.net) Received: (qmail 18668 invoked by uid 1000); 23 Jan 2003 14:15:45 -0000 Date: Thu, 23 Jan 2003 16:15:45 +0200 From: Peter Pentchev To: Julian Mayer Cc: ports@FreeBSD.org Subject: Re: FreeBSD Port: portupgrade-20021216 Message-ID: <20030123141545.GA452@straylight.oblivion.bg> Mail-Followup-To: Julian Mayer , ports@FreeBSD.org References: <20030123134749.GA377@straylight.oblivion.bg> <9B2BFFA4-2EDC-11D7-9D30-00039303B9CC@mac.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cNdxnHkX5QqsyA0e" Content-Disposition: inline In-Reply-To: <9B2BFFA4-2EDC-11D7-9D30-00039303B9CC@mac.com> User-Agent: Mutt/1.5.3i 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 --cNdxnHkX5QqsyA0e Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 23, 2003 at 03:11:46PM +0100, Julian Mayer wrote: >=20 > >Yes, it would seem that the stock ftpd does not provide a way to=20 > >specify > >a different port/service to use in daemon mode. In inetd mode, > >everything is fine and dandy. > > >=20 > how is this fine in inetd mode? inetd uses /etc/services to map=20 > 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 =2E.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. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 This sentence is false. --cNdxnHkX5QqsyA0e Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+L/kR7Ri2jRYZRVMRApU+AKCkrJh37+diKbumLBzmQ5lrEXIl5ACfVzGG ut/TgNYvyQzAh1oqktzmQ/Y= =nWDc -----END PGP SIGNATURE----- --cNdxnHkX5QqsyA0e-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message