Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Eric Kimminau <eak@detroit.sgi.com>
To: Pete Young <pete@alien.bt.co.uk>
Cc: linux@cthulhu.engr.sgi.com
Subject: Re: Hardhat 5.1, wu-ftpd problems
Date: Tue, 26 Oct 1999 13:17:05 -0400	[thread overview]
Message-ID: <3815E211.B1549EAB@detroit.sgi.com> (raw)
In-Reply-To: m11g9Yj-001kxeC@mail.alien.bt.co.uk

Pete Young wrote:
> 
> 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

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.

-- 
.--------1---------2---------3---------4---------5---------6---------7.
  Eric Kimminau           eak@sgi.com       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

      reply	other threads:[~1999-10-26 17:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-10-26 16:31 Hardhat 5.1, wu-ftpd problems Pete Young
1999-10-26 17:17 ` Eric Kimminau [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3815E211.B1549EAB@detroit.sgi.com \
    --to=eak@detroit.sgi.com \
    --cc=eak@sgi.com \
    --cc=linux@cthulhu.engr.sgi.com \
    --cc=pete@alien.bt.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox