Solved

DIR not working in FTP

Posted on 2006-11-09
8
1,583 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 12

Expert Comment

by:RubenvdLinden
ID: 17913273
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
ID: 17914672
Also, are you sure windows supports

ls -l

I hope this helps !
0
 
LVL 67

Expert Comment

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

dir *.txt

and see if only test.txt is returned
0
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 

Author Comment

by:cabloss
ID: 17941957
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
ID: 17942005
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
ID: 18152097
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
ID: 18753170
PAQed with points refunded (250)

Computer101
EE Admin
0

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Here's how to start interacting with our community through Post.
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

729 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