Solved

DIR not working in FTP

Posted on 2006-11-09
8
1,526 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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows server 2000 : Windows cannot access the specified device, path or file 5 823
windows explorer 21 175
Windows startup/shutdown date/time log 7 140
Screen Mirroring 7 67
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…
SEO can be a real minefield to navigate, but there are three simple ways to up your SEO game just be re-assessing your content output.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

776 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