Problem with LIST - WeOnlyDo Discussion board

Problem with LIST (wodFtpDLX / wodFtpDLX.NET)

by dtw01, Tuesday, September 12, 2006, 23:11 (6624 days ago)

I'm having a problem when the command LIST -al is issued on a particular server. It gives the error permission denied.

Here is my output from using wodFtpDLX.

Connecting to server
<<<Connect:Enterprise UNIX 2.2.00 Secure FTP>>> at ceweba1p FTP server ready. Time = 15:56:45
Initializing secure connection
AUTH TLS AUTH TLS-C/TLS OK.
Setting data channel security
PBSZ 0 PBSZ 0 OK.
PROT P PROT P OK, data channel will be secured.
Sending authentication data
USER ce206800 Password required for ce206800.
PASS ******** Connect:Enterprise UNIX login ok, access restrictions apply.
PBSZ 0 PBSZ 0 OK.
PROT P PROT P OK, data channel will be secured.
PWD /ce206800 is current directory.
Connected to server - idle
Setting transfer mode
TYPE A Type set to A.
Changing current directory
CWD /ce206800 CWD command successful.
Downloading directory list from the server
Getting secondary data channel
PASV Entering Passive Mode (170,135,216,250,82,12)
Downloading directory list from the server
LIST -al Opening ASCII mode data connection for -al.
LIST -al Transfer complete - no batches.
Connected to server - idle
Setting transfer mode
TYPE A Type set to A.
Changing current directory
CWD / CWD to '/' successful
Downloading directory list from the server
Getting secondary data channel
PASV Entering Passive Mode (170,135,216,250,82,13)
Downloading directory list from the server
LIST -al -al: Permission denied.
Connected to server - idle


Here is my output from using CoreFtp.


Welcome to Core FTP, release ver 1.3c, build 1447.4 (U) -- © 2003-2006
WinSock 2.0
Mem -- 2,096,620 KB, Virt -- 2,097,024 KB
Started on Tuesday September 12, 2006 at 15:55:PM
Resolving ftpsa.******.com...
Connect socket #444 to 170.135.216.250, port 20021...
220 <<<Connect:Enterprise UNIX 2.2.00 Secure FTP>>> at ceweba1p FTP server ready. Time = 15:55:56
AUTH SSL
234 AUTH TLS-P/SSL OK.
USER ce206800
331 Password required for ce206800.
PASS **********
230 Connect:Enterprise UNIX login ok, access restrictions apply.
SYST
215 UNIX Type: L8
CWD /
250 CWD to '/' successful
Keep alive off...
PWD
257 / is current directory.
PASV
227 Entering Passive Mode (170,135,216,250,82,8)
LIST
Connect socket #400 to 170.135.216.250, port 21000...
150 Opening ASCII mode data connection for .
226 Transfer complete.
Transferred 1,750 bytes in 0.032 seconds


When the LIST command is used by itself, the directory info is retreived.

Is there a way around this?

Also one more request. Could you please mask the password when it is shown in output? I manually changed the password to **** in this posting, but I can see it being very easy for somebody to forget while cutting and pasting examples. Thanks, Dave

Re: Problem with LIST

by wodSupport, Tuesday, September 12, 2006, 23:16 (6624 days ago) @ dtw01

Dave,

you should set Ftp1.ListParams = to get rid of '-al' parameter to LIST command:
http://www.weonlydo.com/FtpDLX/Help/wodFtpDLXLib~wodFtpDLX~ListParams.html

As for masking the password - other customers would want it visible. It's easier for you to mask it by yourself, than others to retrieve it that actually need it.

You could do something like this in FTPReply event:

[code]If Left$(Command,4) = PASS then
Debug.Print PASS XXX
else
Debug.Print Command
Endif[/code]

and that's it.

Regards,
Kreso

Re: Problem with LIST

by dtw01, Tuesday, September 12, 2006, 23:19 (6624 days ago) @ wodSupport

Perfect on the first part.

Fair enough on the second, I can live with that.

Thanks for the great support!