Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jan 2003 16:15:45 +0200
From:      Peter Pentchev <roam@ringlet.net>
To:        Julian Mayer <julianmayer@mac.com>
Cc:        ports@FreeBSD.org
Subject:   Re: FreeBSD Port: portupgrade-20021216
Message-ID:  <20030123141545.GA452@straylight.oblivion.bg>
In-Reply-To: <9B2BFFA4-2EDC-11D7-9D30-00039303B9CC@mac.com>
References:  <20030123134749.GA377@straylight.oblivion.bg> <9B2BFFA4-2EDC-11D7-9D30-00039303B9CC@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030123141545.GA452>