Subject: Re: strange directory in ~ftp/incoming

From: [email-masked]
Date: Wed, 18 Oct 95 13:53:46 pst

Hi Paul,
     
     To prevent this and similar things from happening make 2 changes to 
     your ftpaccess:
     
     # To prevent users from creating directories
     upload /users/ftp /incoming yes root other 0600 nodirs
     
     # To control how users name a file
     path-filter anonymous /etc/msg.badname  ^[-A-Za-z0-9\._]*$ ^\. ^-
     
     As for removing the directory, the only things I can thing of would be 
     to try "rm -ir .*" If that doesn't work then remove your incoming 
     directory and recreate it. Since it is illegal to have a file or 
     directory with the name ".", I suspect there is an unprintable 
     character in its name.
     
     Steven Nemetz                       [email-masked]
     Informal cc:Mail page               http://www.ccmail.com:8001
     Lotus Development Corporation       http://www.lotus.com
     A wholly-owned subsidiary of IBM    http://www.ibm.com
______________________________ Reply Separator _________________________________
Subject: strange directory in ~ftp/incoming
Author:  [email-masked] at internet-mail
Date:    10/18/95 3:17 PM

I have been running wuftpd 2.4 for a couple of months.  I have created an 
incoming directory off the chroot'ed anonymous fto directory.  The permissions 
were set so that thing uploaded would be "invisible" once put there.  Someone, 
either through error or design, has created some wacked out directory that I 
can't get rid of.
     
1).  How do I remove the "." owned by ftp?
2).  How do I prevent this from happening again?
     
ftpaccess:
upload /users/ftp * no
upload /users/ftp /incoming yes root other 0600
     
directory from ftp's anonymous chroot:
drwx-wx-wx   3 root     root         512 Oct 18 11:47 incoming
     
ls -lat from ~ftp/incoming:
drwx-wx-wx   3 pwarner  other        512 Oct 18 11:47 . 
-rw-rw-r--   1 ftp      ftp        48117 Oct 18 11:47 install.doc 
-rw-rw-r--   1 ftp      ftp        60278 Oct 18 11:47 inst.txt 
-rw-r--r--   1 pwarner  1002         432 Oct  5 10:52 .message 
drwxrwxr-x   2 ftp      ftp          512 Sep 12 13:59 . 
dr-xr-xr-x   8 ftp      other        512 Aug 14 10:10 ..
     
-- Paul Warner
[email-masked]

---

From: Yanming PENG <[email-masked]>
Date: Thu, 19 Oct 95 10:39:36 WETDST

> 1).  How do I remove the "." owned by ftp?

Just do a "ls -lRa > ../list.ftp"
and check list.ftp with "less" or a binary editor to find out the
non-printable chars in the dir name.

> 2).  How do I prevent this from happening again?
Check the xferlog to determine whether the dir was created via ftp
or by an internal user on your system. My guess is the latter. Because
by default the wuftpd does not allow file/dir name begin with "."

> upload /users/ftp * no

If a dir has public write permission under /users/ftp, anonymous user
can make dir but not creating files. To get rid of those dirs, better
to use:

  upload /users/ftp * no root other 0600 nodir

--
Yanming PENG  [email-masked]  http://peng.mech.kuleuven.ac.be or
http://www.mech.kuleuven.ac.be/pma/people/peng/index.html
-- The trouble with doing something right the first time is that nobody --
-- appreciates how difficult it was. --