Solved

DIR not working in FTP

Posted on 2006-11-09
8
1,496 Views
Last Modified: 2010-04-13
We are having a strange problem. We've created FTP user accounts and the associated Virtual Folder in IIS on a Windows 2000 server. We can FTP to the server and run DIR and get results. If we CD to the folder where the files and run a DIR we get the message The parameter is incorrect. The LS command works but the LS -L command does not. All other commands work except for DIR. I've pasted the results below. Any idea? It's not happening on all of our Servers, just a couple.

Thank you.

ftp> dir
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
11-09-06  01:47PM       <DIR>          New Folder
11-09-06  01:48PM                    0 New Text Document.txt
11-09-06  01:47PM                    0 Text Document.txt
226 Transfer complete.
ftp: 171 bytes received in 0.00Seconds 171000.00Kbytes/sec.
ftp> cd ftpradt
250 CWD command successful.
ftp> dir
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
550 .: The parameter is incorrect.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
CMS_RRA_ftp.txt
CMS_RRA_ftp_fix.txt
CMS_RRA_ftpold.txt
test.txt
226 Transfer complete.
ftp: 68 bytes received in 0.00Seconds 68000.00Kbytes/sec.
ftp> ls -l
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
550 -l: The parameter is incorrect.
0
Comment
Question by:cabloss
8 Comments
 
LVL 12

Expert Comment

by:RubenvdLinden
Comment Utility
It might be NTFS-permissions.
Please try this:

- Open Windows Explorer on your FTP server
- Right-click the folder which causes problems and click Properties
- Choose the Security tab
- Check if the FTP user accounts have 'List Folder Contents' and 'Read' rights on the filesystem, if not add them.

I hope this helps
0
 
LVL 63

Expert Comment

by:SysExpert
Comment Utility
Also, are you sure windows supports

ls -l

I hope this helps !
0
 
LVL 67

Expert Comment

by:sirbounty
Comment Utility
doubtful it's permissions, but maybe long file names?
try

dir *.txt

and see if only test.txt is returned
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

by:cabloss
Comment Utility
Permissions are fine. DIR and LS- l works fine after first logging on to the server. It's once you do a CD that it stops working. Still is confusing us to no end.

Take a look again.

ftp> dir (connected at the root)
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
11-09-06  01:47PM       <DIR>          New Folder
11-09-06  01:48PM                    0 New Text Document.txt
11-09-06  01:47PM                    0 Text Document.txt
226 Transfer complete.
ftp: 171 bytes received in 0.00Seconds 171000.00Kbytes/sec.

ftp> ls -l
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
11-09-06  01:47PM       <DIR>          New Folder
11-09-06  01:48PM                    0 New Text Document.txt
11-09-06  01:47PM                    0 Text Document.txt
226 Transfer complete.
ftp: 171 bytes received in 0.00Seconds 171000.00Kbytes/sec.

ftp> cd ftpradt
250 CWD command successful.

ftp> dir
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
550 .: The parameter is incorrect.

ftp> ls -l
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
550 -l: The parameter is incorrect.

ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
CMS_RRA_ftp.txt
CMS_RRA_ftp_fix.txt
CMS_RRA_ftpold.txt
test.txt
0
 

Author Comment

by:cabloss
Comment Utility
Actually I just figured it out. It seem it doens't like FTP in the file name.
Thanks.
0
 
LVL 67

Expert Comment

by:sirbounty
Comment Utility
This question is still open.  Please see http://www.experts-exchange.com/help.jsp#hs5 for options for closing.
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
Comment Utility
PAQed with points refunded (250)

Computer101
EE Admin
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Windows 2000 Sever Lab Setup 1 652
Windows Explorer and WinZXip 4 491
website 1 296
Retrieve process time in memory in VB 6 115
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now