From owner-freebsd-stable@FreeBSD.ORG Thu Oct 16 20:05:37 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9EF9416A4B3 for ; Thu, 16 Oct 2003 20:05:37 -0700 (PDT) Received: from mail.westbend.net (ns1.westbend.net [216.47.253.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D72A43F85 for ; Thu, 16 Oct 2003 20:05:36 -0700 (PDT) (envelope-from hetzelsw@westbend.net) Received: from Admin02 (admin02.westbend.net [216.47.253.19]) by mail.westbend.net (8.12.9/8.12.9) with SMTP id h9H35W2P097409; Thu, 16 Oct 2003 22:05:33 -0500 (CDT) (envelope-from hetzelsw@westbend.net) Message-ID: <007e01c3945b$89401940$13fd2fd8@Admin02> From: "Scot W. Hetzel" To: "Brandon Fosdick" References: <3F8EFE8C.6070604@lmco.com> Date: Thu, 16 Oct 2003 22:05:30 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Spam-Status: No, hits=-0.6 required=8.0 tests=QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02, USER_AGENT_OE version=2.43 cc: freebsd-stable@freebsd.org Subject: Re: ftp/fetch "command not understood" on stable and current X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Oct 2003 03:05:37 -0000 From: "Brandon Fosdick" > On both stable and current I'm having problems getting ftp or fetch to > connect to ftp servers (fetch can't connect to anything). I'm behind a > firewall but the ftp ports are open and I'm sitting next to an HPUX box > that doesn't have the same problem. > > All of the output below came from a 5.1-R box: > 13:16 bfoz@~>uname -a > FreeBSD mse.fbm.lmms.lmco.com 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Thu > Jun 5 02:55:42 GMT 2003 > root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC i386 > > Here's what happens when I ftp to ftp.freebsd.org and try to do 'ls' (or > anything other command for that matter)... > --- > Trying 2001:4f8:0:2::e... > ftp: connect to address 2001:4f8:0:2::e: No route to host > Trying 204.152.184.73... > Connected to ftp.freebsd.org. > 220 freebsd.isc.org FTP server ready. > Name (ftp.freebsd.org:bfoz): anonymous > 331 Guest login ok, send your complete e-mail address as password. > Password: > 230- > 230-You have reached freebsd.isc.org/ftp.freebsd.org. > 230- > 230- > 230- > 230-This server is operated by Internet Software Consortium (ISC), > 230-on behalf of the FreeBSD Project, and is serving the full > 230-FreeBSD FTP archive via IPv4 and IPv6. > 230- > 230 Guest login ok, access restrictions apply. > Remote system type is UNIX. > Using binary mode to transfer files. > ftp> ls > 500 command not understood > 227 Entering Passive Mode (204,152,184,73,184,121) > --- > Your ftp client went into passive mode. The reason it went to passive mode is because the /etc/login.conf file is setting an environment variable ((FTP_PASSIVE_MODE=YES) to turn on passive mode. To disable it, run ftp or fetch under sh as follows: FTP_PASSIVE_MODE=NO ftp ... FTP_PASSIVE_MODE=NO fetch ... or change FTP_PASSIVE_MODE to NO in the "default" section of /etc/login.conf, and then use cap_mkdb /etc/login.conf to rebuild the login.conf.db. Scot