Subject: Virtual servers and ls & dir...Problem

From: Mark Flatford <[email-masked]>
Date: Mon, 03 Jun 1996 15:48:12 -0400

All,

I have looked at the archives for this list and have found some very
interesting things to solve my problem, but none have helped...I think it is
some simple permissions problem....Here goes...

I patched my ftpd with the virtual server patch, compiled and ran it. I
logged into my test server, ftp.checthenet.com. When I log in I get the
correct welcome message...Seems to be in the correct dir. Then when I do a
ls or a dir, I get the line "425 Can't create data socket (0.0.0.0,20): Bad
file number.". Out of curiosity, I tried CD into upload directory. It
worked. I then tried an ls. It worked. I then tried a dir, while still in
the upload dir, IT WORKED!!! 

What is wrong here?? I can't do an ls or a dir from the root ftp dir, but I
can cd into a lower dir and DIR and LS work fine.

Before anyone replies...I followed the instructions in the man pages for
ftpd from solaris and did each one step by step. I checked and double
checked my permissions. Then I tried again....Here is the log of what I did
and what it produced.....

USIT% ftp ftp.checkthenet.com
Connected to WWW.CHECKTHENET.COM.
220-Welcome to CheckTheNet!
220-
220 use.usit.net FTP server (Version wu-2.4(1) Mon Jun 3 14:51:15 EDT 1996)
ready.
Name (ftp.checkthenet.com:flatford): anonymous
331 Guest login ok, send your complete e-mail address as password.
Password:
230 Guest login ok, access restrictions apply.
ftp> ls
200 PORT command successful.
425 Can't create data socket (0.0.0.0,20): Bad file number.
ftp> dir
200 PORT command successful.
425 Can't create data socket (0.0.0.0,20): Bad file number.
ftp> ls
200 PORT command successful.
425 Can't create data socket (0.0.0.0,20): Bad file number.
ftp> cd upload
250 CWD command successful.
ftp> dir
200 PORT command successful.
425 Can't create data socket (0.0.0.0,20): Bad file number.
ftp> ls
200 PORT command successful.
550 No files found.

Can anyone help?

Mark
Mark A. Flatford
[email-masked]
flatford @usit.net
US Internet