FTP LS problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: N (N_at_N)
Date: 02/19/04


Date: Thu, 19 Feb 2004 12:28:57 -0500

I have a customer who is having trouble accessing my FTP site. They
connect and log in just fine, but the LS command fails unless an LCD
command is issued first. The LCD command doesn't even need to change
the local directory. The following transcript starts out in H:\. After
  an LS fails, it issues a "LCD H:\", and then the LS succeeds. No
files are listed since the directory actually has no LIST access for the
user. The same problem is seen even with a directory that has LIST
access. Also, I see the same behavior with GET - can't GET a file
unless LCD has been called.

H:\>ftp <ftp site>
Connected to <ftp site>.
220 Serv-U FTP-Server v2.5n for WinSock ready...
User <ftp site>): firs2276
331 Response to otp-md5 309 tile845 required for skey.
Password:
230 User logged in, proceed.
ftp> ls
200 PORT Command successful.
150 Opening ASCII mode data connection for /bin/ls.
Aborting any active data connections...
226 Transfer complete.
ftp> lcd
Local directory now H:\.
ftp> ls
200 PORT Command successful.
150 Opening ASCII mode data connection for /bin/ls.
Aborting any active data connections...
226 Transfer complete.
ftp> lcd h:\
Local directory now H:\.
ftp> ls
200 PORT Command successful.
150 Opening ASCII mode data connection for /bin/ls.
226 Transfer complete.
ftp>

Not sure exactly what flavor of winXP they are running, but they did not
have this problem a couple of weeks ago.

How can I solve this problem, short of inserting the LCD command before
each LIST or GET?

Thanks,
Neal



Relevant Pages

  • Re: mput $list_of_filenames
    ... lcd /home/directory ... Is there another way I can read in the files_to_go to the ftp command? ...
    (comp.unix.shell)
  • Re: lcd referring remote machine
    ... When I write ftp ... thats why "lcd" command is not ... command invoke my machine to transfer files? ...
    (comp.unix.shell)
  • Re: file not found with lcd command
    ... Barry's suggestion is that a "cd" command BEFORE starting ftp will have ... the same effect that "lcd" should have. ...
    (comp.unix.shell)
  • Re: FTP PUT with Store Unique
    ... years ago but had totally forgotten - I appreciated that the STOU command is ... covers the point I want to make which is that the FTP client commands are ... An SUNIQUE command compatible ...
    (bit.listserv.ibm-main)
  • Re: FTP PUT with Store Unique
    ... The best list for topics related to the Communications Server IP ... command or vice versa. ... Instructs the FTP client not to include a name with the STOU ... -- If NONAME is in effect, no name string specifying a foreign_file value follows ...
    (bit.listserv.ibm-main)