Subject: Uploads to anon area.

From: Brian Salter-Duke <[email-masked]>
Date: Fri, 7 May 1999 18:27:44 +1100

I have installed wu-ftpd VR17 on an old AIX box (3.2) and a DU
machine. Everything works fine on DU but I do not understand
why. Uploads do not work to the anon area on AIX and I do not
understand why. I have been studying the recent messages and
I am puzzled.

On DU I have this ftpaccess file:-

class   users   real  *
class   ftponly   anonymous  *
limit   ftponly   10   Any    /usr/local/lib/ftpd/msg.dead
limit   users     10   Any    /usr/local/lib/ftpd/msg.dead
readme  README*    login ftponly
readme  README*    cwd=* ftponly
message /welcome.msg            login ftponly
message .message                cwd=*
compress        no              local remote
tar             no              local remote
log commands real
log transfers anonymous,real inbound,outbound
shutdown /etc/shutmsg
noretrieve /etc/passwd /etc/group core welcome.msg .message .notar
noretrieve /usr/users/ftp/pub/incoming/
upload /usr/users/ftp * no
upload /usr/users/ftp /pub/atomichf no
upload /usr/users/ftp /pub/src no
upload absolute /usr/users/ftp /pub/incoming yes b_duke users 0440 nodirs
upload absolute /usr/users/ftp /pub/antih yes j_mitroy users 0440 nodirs

This works, but my reading of the man page and the recent posts here
say it should not. The line 2 from botton "upload .. incoming"
does not have an absolute path - pub is below /usr/users/ftp.
If I remove absolute it works as absolute is default. If I replace
absolute by relative, it does not work, yet surely this is a relative
address.

The AIX ftpaccess is the same down to the uploads:-

upload /home/ftp * no
upload absolute /home/ftp /pub/incoming yes b_duke staff 0440 nodirs

This does not work and no variations on it work. uploads are OK into
real users areas but not anonymous.

Anyone have any ideas?

I possible problem that I reported on a couple of weeks ago was
that on compiling it had a block in authusers.c and ftpd.c
that is:-

#ifdef AIX
#include <netinet/if_ether.h>
#include <net/if_dl.h>
#endif

The first *.h gave errors and the 2nd I do not have on my machine.
I presume they are AIX4 not AIX3. I commented them out and it compiled 
fine. Has this come back to haunt me?

Cheers, Brian.
-- 
        Associate Professor Brian Salter-Duke (Brian Duke)
School of Mathematical and Physical Sciences, Northern Territory University,
  Darwin, NT 0909, Australia.  Phone 08-89466702. Fax 08-89466847
e-mail: [email-masked]  WWW http://lacebark.ntu.edu.au/chemistry

---

From: Gregory A Lundberg <[email-masked]>
Date: Fri, 7 May 1999 08:42:43 -0400 (EDT)

On Fri, 7 May 1999, Brian Salter-Duke wrote:

> say it should not. The line 2 from botton "upload .. incoming" does
> not have an absolute path - pub is below /usr/users/ftp. If I remove
> absolute it works as absolute is default. If I replace absolute by
> relative, it does not work, yet surely this is a relative address.

Sorry, I got myself confused.  The absolute|relative bit applies to the
first path component (rootdir in the manpage but actually homedir); not to
the second (dirglob).

> real users areas but not anonymous.

Check the homedirectory entry for user 'ftp' in /etc/passwd .. it should
be exactly '/home/ftp'.  Also check it in /home/ftp/etc/passwd where it
should be just '/'

> The first *.h gave errors and the 2nd I do not have on my machine. I
> presume they are AIX4 not AIX3. I commented them out and it compiled

Maybe.  Put the first back in and send over the errors you got along with
the system's include file.  I wanna ponder em.

-- 

Gregory A Lundberg              Senior Partner, VRnet Company
1441 Elmdale Drive              [email-masked]
Kettering, OH 45409-1615 USA    1-800-809-2195