Solved

DIR not working in FTP

Posted on 2006-11-09
8
1,510 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
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
[Webinar] Disaster Recovery and Cloud Management

Learn from Unigma and CloudBerry industry veterans which providers are best for certain use cases and how to lower cloud costs, how to grow your Managed Services practice in IaaS clouds, and how to utilize public cloud for Disaster Recovery

 

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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Cursor typing problems 5 37
kerberos errors 7 545
Window 2000 server in a SBS2011 domain DNS Errors 4 458
P2V conversion for Windows NT 4.0 Server 2 2,201
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…
When we talk about DevOps toolchains, I sometimes wonder how many people really get what we’re talking about. I don’t know if it’s just semantics or tone or something else, but sometimes I think it just sounds like buzzword sausage. So it’s always …
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

910 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

21 Experts available now in Live!

Get 1:1 Help Now