SUMMARY: data socket error running wu-ftpd

From: Sean Harvey (SHarvey@quests.com)
Date: Tue Apr 27 1999 - 13:03:25 CDT


ORIGINAL QUESTION:

Friends,

I have downloaded the binary and installed wu-ftpd-2_4 via the pkgadd

command. Everything looks OK, I have set it up according to the

instructions and connect OK.

But I'm getting an error. Here are session details:

s@lag $ ftp rock

Connected to rock.

220 rock FTP server (Version wu-2.4(2) Mon Jun 2 12:37:12 EDT 1997) ready.

Name (rock:sean): guestuser

331 Password required for guestuser.

Password:

230 User guestuser logged in. Access restrictions apply.

Remote system type is UNIX.

Using binary mode to transfer files.

ftp> ls

200 PORT command successful.

425 Can't create data socket (0.0.0.0,20): Bad file number.

ftp>

 

Does anyone what this means?

-------------------------------------------------------------------------

Thanks to those who gave me the correct answer.  Closer examination of man
ftpd was what I needed:  To fix, I created a root directory structure in
guestusers home dir and created the proper device files under /dev of that
structure. 

For anyone interested in installing WUftpd I have included the install doc
from smc.vnet.net, where I got the binary.  This doc, in conjunction with
man ftpd, is all I needed to get the server running:

thanks,

Sean

 

 

Q8:

 

I want to install wu-ftpd on my system. What are the steps?

A8:

 

Suman Malla and Detlef Mauritz took the wu-ftpd binary from this site and
performed the following steps. Details may vary with your site. There is now
a version that installs in /usr/local. Be careful to make copies of any
files you may change. It is very important that you read the the
documentation for more help.

1. create directory: /opt/WUftpd

2. pkgadd -d wu-ftpd-2.4

3. vi /opt/WUftpd/etc/ftpaccess

create the following lines:

class all real,guest *

guestgroup ftpguests

to allow only ftp-access for real-user and guest-user, not for

anonymous; the guest-user

have to be a member of the group ftpguests

4. create the group "ftpguests" in /etc/group

5. create the user-account, the line in passwd-file has to look like:

guestuser:x:1069:15:Guest FTP-user:/home/guestuser/./anydir:/bin/ksh

- where 15 is the id of the group ftpguests

- the directory /home/guestuser is the root directory of this user

6. vi /etc/inetd.conf

change line:

ftp stream tcp nowait root /usr/sbin/in.ftpd

in.ftpd

to:

ftp stream tcp nowait root /opt/WUftpd/etc/ftpd ftpd

-d

7. restart inetd

8. create the following directories and files:

(you can copy them from /export/ftp)

/home/guestuser/:

total 8

dr-xr-xr-x 2 root other 512 Jun 4 09:01 bin

dr-xr-xr-x 2 root other 512 Jun 4 09:01 dev

dr-xr-xr-x 2 root other 512 Jun 4 09:01 etc

dr-xr-xr-x 4 root other 512 Jun 4 09:40 usr

/home/guestuser/bin:

total 36

-r-xr-xr-x 1 root other 17500 Jun 4 09:44 ls

/home/guestuser/dev:

total 0

cr--r--r-- 1 root other 11, 42 Jun 4 09:01 tcp

cr--r--r-- 1 root other 105, 1 Jun 4 09:01 ticotsord

cr--r--r-- 1 root other 11, 41 Jun 4 09:01 udp

cr--r--r-- 1 root other 13, 12 Jun 4 09:01 zero

/home/guestuser/etc:

total 4

-r--r--r-- 1 root other 37 Jun 4 09:01 group

-r--r--r-- 1 root other 87 Jun 4 09:01 passwd

/home/guestuser/usr:

total 4

dr-xr-xr-x 2 root other 512 Jun 4 09:40 bin

dr-xr-xr-x 2 root other 512 Jun 4 09:40 lib

/home/guestuser/usr/bin:

total 36

---x--x--x 1 root other 17500 Jun 4 09:40 ls

/home/guestuser/usr/lib:

total 3192

-r-xr-xr-x 1 root other 24576 Jun 4 09:40 ld.so

-r-xr-xr-x 1 root other 106768 Jun 4 09:40 ld.so.1

-r-xr-xr-x 1 root other 664048 Jun 4 09:40 libc.so.1

-r-xr-xr-x 1 root other 2568 Jun 4 09:40 libdl.so.1

-r-xr-xr-x 1 root other 15304 Jun 4 09:40 libintl.so.1

-r-xr-xr-x 1 root other 565500 Jun 4 09:40 libnsl.so.1

-r-xr-xr-x 1 root other 68780 Jun 4 09:40 libsocket.so.1

-r-xr-xr-x 1 root other 39340 Jun 4 09:40 libw.so.1

-r-xr-xr-x 1 root other 10796 Jun 4 09:40 nss_dns.so.1

-r-xr-xr-x 1 root other 21028 Jun 4 09:40 nss_files.so.1

-r-xr-xr-x 1 root other 24408 Jun 4 09:40 nss_nis.so.1

-r-xr-xr-x 1 root other 28848 Jun 4 09:40 nss_nisplus.so.1

-r-xr-xr-x 1 root other 9316 Jun 4 09:40 straddr.so.2

 

 

 



tech.gif



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:19 CDT