Just in case someone is interested.
I configured proftpd with:

./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var

The example config allow unlimited anonymous upload 
and 3 anonymous download, with download locked at 
20000 kb/s. So, uploader can always login as a result.

the anonymous account is linked to a real user account
ftp (shell /bin/false). The direcotries /home/ftp and
/home/ftpdown must have owner ftp:ftp

-- 
The pivotal point is the "second chance", judged by another set of force
and farce. In Linux We Trust -- http://linux.nf and
news://news.hkpcug.org
ServerName                      "Anonymous Server"
ServerType                      standalone

# Port 21 is the standard FTP port.
Port                            21

# If you don't want normal users logging in at all, uncomment this
# next section
<Limit LOGIN>
  DenyAll
</Limit>

# Set the user and group that the server normally runs at.
User                            nobody
Group                           nogroup

MaxInstances                    10

# Set the maximum number of seconds a data connection is allowed
# to "stall" before being aborted.
TimeoutStalled                  300

UseFtpUsers                     off
RootLogin                       off
# you may want to have a separate file
#AuthUserFile                   /etc/proftpd-passwd

<Global>
  Umask                         022
</Global>

# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin                    welcome.msg
DisplayFirstChdir               .message

# for downloading, ftp:[EMAIL PROTECTED]
<Anonymous /home/ftpdown>
  <Limit LOGIN>
    AllowAll
  </Limit>
  UserAlias                     download ftp
# UserPassword                  download cli-crypt("password")
# AnonRequirePassword           on
  RequireValidShell             off
  MaxClients                    3 "550 Too Many Users (Limit=%m)"
  User                          ftp
  Group                         ftp
  RateReadBPS                   20000
  <Limit WRITE>
    DenyAll
  </Limit>
</Anonymous>

# for uploading ftp://111.222.333.444
<Anonymous /home/ftp>
  <Limit LOGIN>
    AllowAll
  </Limit>
  UserAlias                     anonymous ftp
  User                          ftp
  Group                         ftp
  RequireValidShell             off
  AllowStoreRestart             on
  AllowOverwrite                on
  AllowForeignAddress           on
  <Limit REST STOR MKD APPE>
    AllowAll
  </Limit>
  <Limit RMD RNFR RNTO RETR DELE>
    DenyAll
  </Limit>
</Anonymous>

Reply via email to