From owner-freebsd-questions@FreeBSD.ORG Fri Jun 18 07:09:09 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7476016A4CF for ; Fri, 18 Jun 2004 07:09:09 +0000 (GMT) Received: from auk1.snu.ac.kr (auk1.snu.ac.kr [147.46.100.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 16D9043D48 for ; Fri, 18 Jun 2004 07:09:09 +0000 (GMT) (envelope-from stopspam@users.sourceforge.net) Received: from [147.46.44.181] (stopspam@users.sourceforge.net) by auk1.snu.ac.kr (Terrace Internet Messaging Server) with ESMTP id 2004061816:08:09:004707.24301.2944080816 for ; Fri, 18 Jun 2004 16:08:09 +0900 (KST) Message-ID: <40D294E4.5060906@users.sourceforge.net> Date: Fri, 18 Jun 2004 16:08:20 +0900 From: Rob User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040507 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <00a201c45500$464f7570$0200a8c0@LLAPTOP> In-Reply-To: <00a201c45500$464f7570$0200a8c0@LLAPTOP> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-TERRACE-SPAMMARK: NO (SR:8.89) (by Terrace) Subject: Re: [FreeBSD]: how to setup ftpd server? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jun 2004 07:09:09 -0000 LW Ellis wrote: > I'm trying to configure my ftpd so I can access the http server from another > computer. > (for uploading web pages) > According to The Complete FreeBSD > (I am a complete newby) > I need to add a line to my /etc/rc.local file > I don't have one. > I have a /etc/rc.conf > Are they the same? > Or do I need a new file? > > Next question > The line I need to add ??? > echo " ftpd" && ftpd -a -D xxx.xxx.xxx > (to restrict address to only one) > (from what I gleaned from ftpd(8) of the manual) Please use a more appropriate subject for your questions!! --- Why are you not using inetd.conf for that? Then you don't need the rc.local file at all! I suppose, you have inetd running, unless in /etc/rc.conf you have a line like inetd_enable="NO" FreeBSD 4 enables by default the inetd server. Then edit /etc/inetd.conf, and uncomment this line: #ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l Next, restart inetd by sending the HUP signal to the executable: # kill -HUP (you know how to find the pid of the inetd daemon, don't you?) For security, edit /etc/hosts.allow; in your case: ftpd : xxx.xxx.xxx : allow ALL : ALL : deny The last line denies access to everything else, so that all lines below will have no effect. -------------------------------------- Once you've got this up and running, consider at a later stage to investigate how to use 'secure ftp', or sftp. This needs a different configuration and has nothing to do with above settings. It is much more secure (at least people say so....). Regards, Rob.