From owner-freebsd-questions Tue Mar 2 10:46:28 1999 Delivered-To: freebsd-questions@freebsd.org Received: from gatekeep.kcc.com (gatekeep.kcc.com [192.136.16.2]) by hub.freebsd.org (Postfix) with ESMTP id DBB9D14E3B for ; Tue, 2 Mar 1999 10:46:25 -0800 (PST) (envelope-from ellis@kcc.com) Received: from mail.kcc.com (ustcax00.kcc.com [205.203.65.10]) by gatekeep.kcc.com (8.8.6 (PHNE_14041)/8.8.6) with SMTP id KAA04417 for ; Tue, 2 Mar 1999 10:58:49 -0600 (CST) Received: from 205.203.65.10 by mail.kcc.com with ESMTP (WorldSecure Server SMTP Relay(WSS) v3.2 SR1); Tue, 02 Mar 99 12:44:29 -0600 X-Server-Uuid: fc96bae8-3f98-11d2-a40d-00805f199815 Received: by ustcax00.kcc.com with Internet Mail Service (5.5.2448.0) id ; Tue, 2 Mar 1999 12:44:29 -0600 Message-ID: <2B2253731B41D211846400805F19594B024783A4@ustcax08.kcc.com> From: "Ellis, Joshua" To: "'Dean Hollister'" , "FreeBSD Questions" Subject: RE: virtual domains Date: Tue, 2 Mar 1999 12:46:01 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) X-WSS-ID: 1AC2EE07994494-01-01 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Is anonymous ftp available in virtual domains? Ie, if > I have the virtual domain: > > ftp.aieh.org.au > > and I cname that to the designated server. How to I > setup the ftp server to know what filesystem to access > for any anonymous requests to that domain? Use wu-ftpd. Quicky instructions: Grab the latest wu-ftpd from ftp://ftp.academ.com/pub/wu-ftpd/private/ and unpack the distribution. cd into the wu-ftpd-2.4.2-beta-NN (where will be some number) and edit src/makefiles/Makefile.fbs and support/makefiles/Makefile.fbs to add -DVIRTUAL (and whatever other compiler options you want, such as -O2 -m486 -pipe) to CFLAGS. Then do "./build fbs" and "./build install". Edit /etc/inetd.conf to change the entry from ftp: change /usr/libexec/ftpd to /usr/local/libexec/ftpd and replace "ftpd -l" at end of line with "ftpd -a". Re-start inetd (kill -hup `cat /var/run/inetd.pid`). In the wu-ftpd distribution, there should be a sample ftpaccess file; make sure this is in /usr/local/ftpaccess. Use the "virtual" statments inside ftpaccess to setup anonymous FTP based on IP address, like this: virtual 123.123.123.123 root /usr/ftp/ftp.aieh.org.au/ftproot virtual 123.123.123.123 banner /usr/ftp/ftp.aieh.org.au/banner.msg virtual 123.123.123.123 logfile /usr/ftp/ftp.aieh.org.au/ftp.log Just be sure there is a "bin" folder containing ls under the ftproot. -joshua --- Joshua Ellis: Kimberly-Clark Internet / Notes Services work: ellis@kcc.com http://www.kimberly-clark.com phone: (920)721-2779 Fax: (920)721-6180 [SDG] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message