./configure --prefix=/usr/local/proftpd // --with-modules=mod_sql:mod_sql_mysql:mod_quotatab:mod_quotatab_sql // --with-includes=/usr/local/mysql/include/mysql // --with-libraries=/usr/local/mysql/lib/mysql make&&make install 修改proftpd配置 vim /usr/local/proftpd/etc/proftpd.conf 内容改为: ServerName /"mail2004.3322.org/" ServerType standalone DefaultServer on # 用户登陆时不显示ftp服务器版本信息 ServerIdent off # Port 21 is the standard FTP port. Port 21 # Umask 022 is a good standard umask to prevent new dirs and files # from being group and world writable. Umask 022 MaxLoginAttempts 3 TimeoutLogin 120 TimeoutIdle 600 TimeoutNoTransfer 900 TimeoutStalled 3600 MaxClients 100 # 设置每台主机最多并发连接数 MaxClientsPerHost 3 AllowOverwrite no AllowStoreRestart on UseReverseDNS off # 设置如果shell为空时允许用户登录 RequireValidShell off # 将用户限制在自己的主目录下 DefaultRoot " # To prevent DoS attacks, set the maximum number of child processes # to 30. If you need to allow more than 30 concurrent connections # at once, simply increase this value. Note that this ONLY works # in standalone mode, in inetd mode you should use an inetd server # that allows you to limit maximum number of processes per service # (such as xinetd). MaxInstances 30 # Set the user and group under which the server will run. User nobody Group nobody # Normally, we want files to be overwriteable. <Directory /> AllowOverwrite on </Directory> # A basic anonymous configuration, no upload directories. # 匿名登录设置。匿名用户目录为/ftp <Anonymous /ftp> User ftp Group ftp # We want clients to be able to login with /"anonymous/" as well as /"ftp/" # UserAlias anonymous ftp 停了它 # Limit the maximum number of anonymous logins MaxClients 10 # We want /'welcome.msg/' displayed at login, and /'.message/' displayed # in each newly chdired directory. DisplayLogin welcome.msg DisplayFirstChdir .message
# Limit WRITE everywhere in the anonymous chroot #<Limit WRITE> # DenyAll #</Limit> </Anonymous> 以上是PROFTPD.conf