Solved

DIR not working in FTP

Posted on 2006-11-09
8
1,601 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 

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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

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…
With the rising number of cyber attacks in recent years, keeping your personal data safe has become more important than ever. The tips outlined in this article will help you keep your identitfy safe.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

632 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