ServU-FTPS Directory listing not working --501 Wildcards not allowed

144 views
Skip to first unread message

newP

unread,
Jan 4, 2010, 4:02:02 PM1/4/10
to RhinoSoft.com User Group
I am connecting to ServU-FTPS from my own client. Connection is
successful, also file transfer is successful. When I want to list the
directory contents, it fails with error message "501 Wildcards not
allowed". This is because I guess, I am using '*' to get everything
from sadi directory. How could I handle this? Is there a setting so
that ServU allows using '*' by client programs?

Below is the servU log details (with 'X' to secure content)

02] Mon 04Jan10 10:32:11 - (000009) Connected to xxx.xx.xx.xx (local
address xxx.xx.xx.xx , port 990)
[03] Mon 04Jan10 10:32:11 - (000009) IP-Name: xxxx.xxxxxx.com
(xxx.xx.xx.xx )
[21] Mon 04Jan10 10:32:11 - (000009) 220 Serv-U FTP Server v9.0
ready...
[20] Mon 04Jan10 10:32:12 - (000009) USER servuser
[21] Mon 04Jan10 10:32:12 - (000009) 331 User name okay, need
password.
[20] Mon 04Jan10 10:32:12 - (000009) PASS **********
[02] Mon 04Jan10 10:32:12 - (000009) User "servuser" logged in
[21] Mon 04Jan10 10:32:12 - (000009) 230 User logged in, proceed.
[20] Mon 04Jan10 10:32:12 - (000009) FEAT
[21] Mon 04Jan10 10:32:12 - (000009) 211-Extensions supported
[21] Mon 04Jan10 10:32:12 - (000009) UTF8
[21] Mon 04Jan10 10:32:12 - (000009) OPTS MODE;MLST;UTF8
[21] Mon 04Jan10 10:32:12 - (000009) CLNT
[21] Mon 04Jan10 10:32:12 - (000009) CSID Name; Version;
[21] Mon 04Jan10 10:32:12 - (000009) HOST domain
[21] Mon 04Jan10 10:32:12 - (000009) SITE
PSWD;SET;ZONE;CHMOD;MSG;EXEC;HELP
[21] Mon 04Jan10 10:32:12 - (000009) AUTH TLS;SSL;TLS-C;TLS-P;
[21] Mon 04Jan10 10:32:12 - (000009) PBSZ
[21] Mon 04Jan10 10:32:12 - (000009) PROT
[21] Mon 04Jan10 10:32:12 - (000009) CCC
[21] Mon 04Jan10 10:32:12 - (000009) SSCN
[21] Mon 04Jan10 10:32:12 - (000009) RMDA directoryname
[21] Mon 04Jan10 10:32:12 - (000009) DSIZ
[21] Mon 04Jan10 10:32:12 - (000009) AVBL
[21] Mon 04Jan10 10:32:12 - (000009) MODE Z
[21] Mon 04Jan10 10:32:12 - (000009) THMB BMP|JPEG|GIF|TIFF|PNG
max_width max_height pathname
[21] Mon 04Jan10 10:32:12 - (000009) REST STREAM
[21] Mon 04Jan10 10:32:12 - (000009) SIZE
[21] Mon 04Jan10 10:32:12 - (000009) MDTM
[21] Mon 04Jan10 10:32:12 - (000009) MDTM YYYYMMDDHHMMSS[+-
TZ];filename
[21] Mon 04Jan10 10:32:12 - (000009) MFMT
[21] Mon 04Jan10 10:32:12 - (000009) MFCT
[21] Mon 04Jan10 10:32:12 - (000009) MFF Create;Modify;
[21] Mon 04Jan10 10:32:12 - (000009) XCRC filename;start;end
[21] Mon 04Jan10 10:32:12 - (000009) MLST
Type*;Size*;Create;Modify*;Perm;Win32.ea;Win32.dt;Win32.dl
[21] Mon 04Jan10 10:32:12 - (000009) 211 End (for details use "HELP
commmand" where command is the command of interest)
[20] Mon 04Jan10 10:32:12 - (000009) CLNT ABC
[21] Mon 04Jan10 10:32:12 - (000009) 200 Noted.
[20] Mon 04Jan10 10:32:12 - (000009) OPTS UTF8 ON
[21] Mon 04Jan10 10:32:12 - (000009) 200 OPTS UTF8 is set to ON.
[20] Mon 04Jan10 10:32:12 - (000009) PWD
[21] Mon 04Jan10 10:32:12 - (000009) 257 "/" is current directory.
[20] Mon 04Jan10 10:32:12 - (000009) PBSZ 0
[21] Mon 04Jan10 10:32:12 - (000009) 200 PBSZ command OK. Protection
buffer size set to 0.
[20] Mon 04Jan10 10:32:12 - (000009) PROT P
[21] Mon 04Jan10 10:32:12 - (000009) 200 PROT command OK. Using
private data connection.
[20] Mon 04Jan10 10:32:12 - (000009) CWD /Lib2ForServUFTPS
[21] Mon 04Jan10 10:32:12 - (000009) 250 Directory changed to /
Lib2ForServUFTPS
[20] Mon 04Jan10 10:32:12 - (000009) TYPE A
[21] Mon 04Jan10 10:32:12 - (000009) 200 Type set to A.
[20] Mon 04Jan10 10:32:12 - (000009) PORT 172,16,11,80,11,32
[21] Mon 04Jan10 10:32:12 - (000009) 200 PORT Command successful.
[20] Mon 04Jan10 10:32:12 - (000009) MLSD *
[21] Mon 04Jan10 10:32:12 - (000009) 501 Wildcards not allowed.
[02] Mon 04Jan10 10:32:12 - (000009) Closed session
[02] Mon 04Jan10 10:32:12 - (000009) User "servuser" logged out

Would appreciate any help.

Thanks in advance

NewP

FTPServerTools

unread,
Jan 4, 2010, 6:40:36 PM1/4/10
to RhinoSoft.com User Group
The ftp rfs strictly states the following LIST possibility:
LIST [<SP> <pathname>] <CRLF>
That means you either do a list or a list followed by an ftp
directory. So no wildcards.
Seeing that you use the MLSD ftp extension which is in RFC 3659 in
chapter 7 work similarly to list except that they now give the reply
back in a standardized format (which is not happening with the LIST
command).
A quote from that rfc: The MLST and MLSD commands each allow a single
optional argument.
This argument may be either a directory name or, for MLST only, a
file name.
The syntax for the MLSx command is:
mlst = "MLst" [SP pathname] CRLF
mlsd = "MLsD" [SP pathname] CRLF

So no wildcards are allowed just like with LIST.
As you see serv-u works exactly according to the standards.

FTPServerTools

unread,
Jan 4, 2010, 6:43:13 PM1/4/10
to RhinoSoft.com User Group
To get the contants of a directory sadi your client should send MLSD
sadi
Reply all
Reply to author
Forward
0 new messages