From owner-freebsd-newbies@FreeBSD.ORG Thu Feb 17 20:19:30 2005 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B56216A4CE for ; Thu, 17 Feb 2005 20:19:30 +0000 (GMT) Received: from ns1.tiadon.com (SMTP.tiadon.com [69.27.132.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id AECB743D46 for ; Thu, 17 Feb 2005 20:19:27 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from [69.27.131.0] ([69.27.131.0]) by ns1.tiadon.com with Microsoft SMTPSVC(6.0.3790.211); Thu, 17 Feb 2005 14:19:24 -0600 Message-ID: <4214FC4A.9060302@daleco.biz> Date: Thu, 17 Feb 2005 14:19:22 -0600 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.3) Gecko/20041210 X-Accept-Language: en-us, en MIME-Version: 1.0 To: crzdgns1@starpower.net References: <28cde7f9.d01b424d.81d0700@ms07.mrf.mail.rcn.net> In-Reply-To: <28cde7f9.d01b424d.81d0700@ms07.mrf.mail.rcn.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 17 Feb 2005 20:19:25.0485 (UTC) FILETIME=[F993C5D0:01C5152D] cc: freebsd-newbies@freebsd.org Subject: Re: Which type of FTP do I have X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Feb 2005 20:19:30 -0000 crzdgns1@starpower.net wrote: >Hello, > >I am a new user of FreeBSD/UNIX and have recently installed >FreeBSD-5.3-RELEASE on my home computer. I am running IPFilter >as my firewall using the ruleset found in the Handbook. I have found >that FTP no longer functions since I began the filter. I have done lots >of searching on the web and I think this is a common problem and I >will be able to find a solution on my own. But here is my question. >The solutions to this problem variously refer to ftp clients or ftp >servers. I know that a client and a server aren't necessarily the >same. If I look in my bin files, I find something named ftpd, which I >assume is the ftp daemon. I know that I didn't specifically download >or install any ftp software. Whatever I have came with the base >installation. So here is my question, how do I know, or how do I >determine, if what I have is an ftp server or an ftp client? > >Thanks > >Mark > > You have both, unless somehow you built the system without the "contrib" software, and I don't know if that's possible 'cause I've never tried it that way. "ftpd" is the server, maintained by FreeBSD, and the ftp client is "ftp", which is actually "lukemftp", written by Luke Mewburn of the NetBSD project. Some information from the system itself: [kadmin@archangel][~] whereis ftpd ftpd: /usr/libexec/ftpd /usr/share/man/man8/ftpd.8.gz /usr/src/libexec/ftpd [kadmin@archangel][~] grep -i -A 2 rcsid /usr/src/libexec/ftpd/ftpd.c static const char rcsid[] = "$FreeBSD: src/libexec/ftpd/ftpd.c,v 1.163.2.10 2005/01/22 16:40:11 yar Exp $"; #endif /* not lint */ [kadmin@archangel][~] whereis ftp ftp: /usr/bin/ftp /usr/share/man/man1/ftp.1.gz /usr/src/usr.bin/ftp [kadmin@archangel][~] grep -i -A 2 rcsid /usr/src/contrib/lukemftp/src/main.c __RCSID("$NetBSD: main.c,v 1.86 2003/08/07 11:13:56 agc Exp $"); #endif #endif /* not lint */ It seems interesting that neither of them seem to have a "--version" switch. It looks as though some work has been done, maybe on the ftpd server lately. Note that "Trivial ftpd" is also in the base system. Both of these may be enabled in /etc/inetd.conf (and, in turn, inetd is enabled in /etc/rc.conf.) To use the ftp client, simply type "ftp" at the command prompt (assuming your $PATH is correctly set). See the man page for ftp(1) for more details. HTH, Kevin Kinsey