From owner-freebsd-questions@FreeBSD.ORG Wed Jan 6 11:31:28 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D336106566B for ; Wed, 6 Jan 2010 11:31:28 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 2CBE38FC08 for ; Wed, 6 Jan 2010 11:31:28 +0000 (UTC) Received: from r55.edvax.de (port-92-195-53-52.dynamic.qsc.de [92.195.53.52]) by mx01.qsc.de (Postfix) with ESMTP id 4AC9B3D71F; Wed, 6 Jan 2010 12:31:26 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id o06BVGSl004784; Wed, 6 Jan 2010 12:31:16 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 6 Jan 2010 12:31:16 +0100 From: Polytropon To: Matthew Seaman Message-Id: <20100106123116.94b43ca9.freebsd@edvax.de> In-Reply-To: <4B446819.8050701@infracaninophile.co.uk> References: <4B446819.8050701@infracaninophile.co.uk> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org, Paul Shi Subject: Re: Setup FTP service on FreeBSD 2.0.5? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jan 2010 11:31:28 -0000 On Wed, 06 Jan 2010 10:38:17 +0000, Matthew Seaman wrote: > As I recall for that vintage of FreeBSD, it was simply a matter of uncommenting > the appropriate line in /etc/inetd.conf [...] Which would be something like ftp stream tcp nowait root /usr/sbin/ftpd ftpd -ll Note that I've appended "ftpd -ll" to enable extended logging which is often useful when running an FTP server, so you can check things if problems occur. To make this setting take effect, "touch /var/log/ftpd.log" and !ftpd *.* /var/log/ftpd.log to your /etc/syslog.conf. I'm not sure if all these mechanisms have already been present on 2.0.5, because I'm a FreeBSD user since 4.0. Did 2.0.5 already have sysinstall? I seem to remember that when enabling FTP, a little subtree was created in /var/ftp. But I think it was related to anonymous FTP. If you're not going to use it - I didn't say anything. :-) > Enabling it to be automatically started on reboot is pretty much the same as > nowadays: just stick inetd_enable="YES" into /etc/rc.conf. Hasn't there been ,,ftpd_enable="YES"'' in 2.0.5's rc.conf already? Allthough I'm running FTP services, I've never used that setting (inetd is sufficient). > If you want to > provide anonymous FTP, then I believe there were instructions in the ftpd(8) > man page. At least on my (7-S) system it is the case, but there should be similar information in earlier man pages. It describes the stuff sysinstall does, as I mentioned (guessed) before. For security considerations, keep an eye on /etc/ftpusers; the names "ftp" (stands for anonymous FTP "account" - if you don't want to provide that service) and of course "root" should be contained. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...