Multiple FTP servers with different characteristics on one server?

Jeff Jirsa jeff at
Mon Apr 14 16:46:18 PDT 2003

[ Sorry about the previous useless message ]

On Mon, 14 Apr 2003, Paul Hoffman wrote:

> Greetings again. Under NetBSD, the inetd.conf file could have entries such as:
> stream tcp nowait root /usr/libexec/ftpd ftpd -d -ll -c /etc/a
> stream tcp nowait root /usr/libexec/ftpd ftpd -d -ll -c /etc/b
> Meaning that an FTP session request to would use the
> configuration in /etc/a, while one to would use the
> configuration in /etc/b.
> That doesn't work in FreeBSD 4.8: the first field is not recognized.

You can simply not use inetd, and rather, start the two ftpd processes
from a script.

You'll want the -D and -a options to ftpd.

Specifically, I'd assume the following should work, although I don't have
a box to test with at the moment:

ftpd -d -ll /etc/a -D -a
ftpd -d -ll /etc/b -D -a

The man page for ftpd that I'm looking at doesn't mention the -c
<filename> option, so even though you can have separate daemons running on
different addresses, you may not be able to specify the alternate config
files, and you may have to set the options you want on the command line.

- Jeff Jirsa

More information about the freebsd-questions mailing list