Subject: Re: ls problem

From: [email-masked] (Paul Fincher (CACI))
Date: Tue, 28 May 1996 16:10:07 -0400

--> Hi,
--> 
--> I recently installed wu-ftp 2.4 on my system (running SunOS 5.4). The 
problem I have is that the
--> 'ls' command does not work , giving the following error message:
--> 
--> ftp> ls
--> 200 PORT command successful.
--> 425 Can't create data socket (0.0.0.0,20): Bad file number
--> ftp>
--> 
--> 'ls' works fine with real user login.
--> 
--> I have set up the required directories bin, dev, etc, usr to store the 
executable and libraries. One thing I did
--> not know about is the dev/tcp file mentioned in the INSTALL file. I have no 
idea how to get/create this file and
--> don't know if it is important.

HI,

   Your problem is that you have not created the dev/tcp and dev/zero files.
These files are created using the mknod command.  The command is used as 
follows:

   mknod <filename>  <node type> <major number> <minor number>
   
   The node type for tcp and zero are 'c' for character. If you do the following 
you will get your major and minor numbers:

  choteau:pfincher {30}  ls -l /dev/tcp 
    lrwxrwxrwx   1 root     root          29 Dec 18 18:31 /dev/tcp ->       
    ../devices/pseudo/clone@0:tcp
  choteau:pfincher {30} ls -l /devices/pseudo/clone@0:tcp
    crw-rw-rw-   1 root     sys       11, 42 Dec 18 17:34         
    /devices/pseudo/clone@0:tcp        ^   ^
                             major ____|   |___ minor number
                             
   Notice that /dev/tcp is a link! Therefore you would have the following:
   
     mknod dev/tcp c 11 42
   
   /dev/zero is the same way.  Hope this helps!
   
Paul Fincher 
J-MASS Operational Support
[email-masked]