Skip to contentSkip to conversation

Hardhat 5.1, wu-ftpd problems

DISCUSSION Pete Young 2 participants 2 messages Oct 26, 1999 MIPS

lore
Share & tools
lore

Pete Young

author
#0 lore raw

Having proved that I have a stable-ish Indy with Hardhat 5.1, kernel version 2.2.1 , i thought I might put it to work as an ftp server for part of our internal mirror system.

Installed the rpms for anonftp and wu-ftpd from our mirror of the latest distribution, but found we got some odd behavior from the ftp daemon: it was quite happy for people using the Solaris 2.6 client, but using the BSD client or the netscape client I see no files or directories (although it is possible to move about the directory structure if you know what the subdirectories are called).

I also built a more-up-to-date version of wu-ftpd (version 2.5.0 with QUOTAS disabled) but the same thing seems to be happening.

Is this a known problem, and if so is there a fix?

Kind regards,

Pete

____________________________________________________________________
Pete Young [email protected] Phone +44 1473 642740
"Just another crouton, floating on the bouillabaisse of life"

#1 lore raw
Quoted 13 lines · Pete Young

Having proved that I have a stable-ish Indy with Hardhat 5.1, kernel version 2.2.1 , i thought I might put it to work as an ftp server for part of our internal mirror system.

Installed the rpms for anonftp and wu-ftpd from our mirror of the latest distribution, but found we got some odd behavior from the ftp daemon: it was quite happy for people using the Solaris 2.6 client, but using the BSD client or the netscape client I see no files or directories (although it is possible to move about the directory structure if you know what the subdirectories are called).

Quoted 8 lines

I also built a more-up-to-date version of wu-ftpd (version 2.5.0 with QUOTAS disabled) but the same thing seems to be happening.

Is this a known problem, and if so is there a fix?

Kind regards,

Pete

This sounds like you are missing something in the lib directory for your anonymous ftp account. Im not positive how wu-ftpd is configured for Linux but looking in ~ftp/lib for libc.so, ~ftp/bin for ls and ~ftp/dev for zero would probably be where I would start first.

Here is a good simple set of instructions for configuring an anon ftp server:
~ftp Make the home directory owned by ``ftp'' and unwritable
by
anyone (mode 555 - see chmod(1)):

chown ftp ~ftp
chmod a-w ~ftp

~ftp/bin Make this directory owned by the super-user and
unwritable
by anyone (mode 555). The program ls(1) must be
present to
support the list commands. This program should have
mode
111.

~ftp/etc Make this directory owned by the super-user and
unwritable
by anyone (mode 555). The files passwd(4) and group(4)
must
be present for the ls command to be able to produce
owner
names rather than numbers. This should not be a copy
of the
real file in /etc, and in particular, it should contain
no
encrypted passwords from the real /etc/passwd or
/etc/group.
The password field in passwd is not used. Only the
minimal
number of accounts should be listed. These files
should be

               mode 444.

     ~ftp/lib32
               Make this directory own by the super-user and

unwritable by
anyone (mode 555). In order for ls to run, the files /lib32/rld and /lib32/libc.so.1 must be copied into
lib32
(older releases, or some uses of other programs might
also
require the o32 versions in /lib. Both rld and
libc.so.1
should be readable and executable by everyone, e.g.
mode
555.

~ftp/dev Make this directory owned by the super-user and
unwritable
by anyone (mode 555). rld uses /dev/zero, so use
mknod(1)
to make a copy of /dev/zero in ~ftp/dev with the same
major
and minor device numbers. Make /dev/zero read-only
(mode
444).

mknod ~ftp/dev/zero c 37 0
chmod 444 ~ftp/dev/zero

~ftp/pub Make this directory owned by ``ftp''. If local users
and
remote anonymous users are to be allowed to write in
this
directory, change the directory's mode to 777. Users
can
then place files which are to be accessible via the anonymous account in this directory. If write accesses
are
to be denied, change the directory's mode to 555.

Hope that helps!
Eric.

Signature · 6 lines
.--------1---------2---------3---------4---------5---------6---------7.
  Eric Kimminau           [email protected]       Electronic Support Tools
      Vox:248-848-4455  Fax:248-848-5600  VNET:6-327-4455  
              "I speak my mind and no one else's."
 "I am a bomb technician. If you see me running, try to keep up..."
                    http://support.sgi.com