From owner-freebsd-stable@FreeBSD.ORG Fri Oct 17 09:58:31 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 0F59516A4B3 for ; Fri, 17 Oct 2003 09:58:31 -0700 (PDT) Received: from mailgw2a.lmco.com (mailgw2a.lmco.com [192.91.147.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0F2643FB1 for ; Fri, 17 Oct 2003 09:58:29 -0700 (PDT) (envelope-from brandon.h.fosdick@lmco.com) Received: from emss01g01.ems.lmco.com (emss01g01.ems.lmco.com [129.197.181.54]) by mailgw2a.lmco.com (8.11.6p2/8.11.6) with ESMTP id h9HGwOs23124; Fri, 17 Oct 2003 12:58:24 -0400 (EDT) Received: from CONVERSION-DAEMON.lmco.com by lmco.com (PMDF V6.1-1 #40643) id <0HMW00801V5ATE@lmco.com>; Fri, 17 Oct 2003 09:58:23 -0700 (PDT) Received: from lmco.com ([129.197.26.175]) by lmco.com (PMDF V6.1-1 #40643) with ESMTP id <0HMW00JAEV56IU@lmco.com>; Fri, 17 Oct 2003 09:58:18 -0700 (PDT) Date: Fri, 17 Oct 2003 09:58:17 -0700 From: Brandon Fosdick In-reply-to: <007e01c3945b$89401940$13fd2fd8@Admin02> To: "Scot W. Hetzel" Message-id: <3F901FA9.3010904@lmco.com> Organization: Lockheed Martin MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5a) Gecko/20030817 References: <3F8EFE8C.6070604@lmco.com> <007e01c3945b$89401940$13fd2fd8@Admin02> 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 16:58:31 -0000 Scot W. Hetzel wrote: > 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. I changed login.conf and ran cap_mkdb, but ftp still doesn't work quite right. Forunately fetch works now, but its a bit slow to connect. Almost like its having the same problem as ftp. --- 9:35 bfoz@svlw3380c0m~>echo $FTP_PASSIVE_MODE NO 9:36 bfoz@svlw3380c0m~>ftp ftp.freebsd.org Trying 2001:4f8:0:2::e... 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 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,229,15) --- More waiting...and then the listing. Why does it say "command not understood"? ftp works a little better if I use the passive command before connecting: ---9:40 bfoz@svlw3380c0m~>echo $FTP_PASSIVE_MODE NO 9:40 bfoz@svlw3380c0m~>ftp ftp> passive Passive mode: off; fallback to active mode: off. ftp> o ftp.freebsd.org Trying 2001:4f8:0:2::e... 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 200 PORT command successful. 150 Opening ASCII mode data connection for directory listing. total 8 drwxrwxr-x 3 root root 512 Apr 17 2003 pub 226 Transfer complete. ftp> --- although it still says command not understood. What does that mean?