|
|
搞笑 阿 。不知道怎么回事阿 。
我设置完之后,只要在windows下面用cuteftp然后输入ip,匿名登录,然后显示了一些说明之后,就会出现显示错误,然后只有关闭了
奇怪了。但是ie这些浏览器没有任何问题!----其他的ftp客户端不知道是不是有问题!
有一点就是,他们用的都是一个版本的cuteftp。
大家说说,怎么回事???
我这几天在试一试!
谢谢!
# This is the ProFTPD configuration file1
# $Id: proftpd.conf,v 1.6 2003/09/24 10:51:11 dude Exp $
ServerName "xx.com"
# ServerIdent on "FTP Server ready."
ServerIdent off
ServerAdmin xxx@xx.com
ServerType standalone
#ServerType inetd
DefaultServer on
AccessGrantMsg "User %u logged in."
#DisplayConnect /etc/ftpissue
#DisplayLogin /etc/ftpmotd
#DisplayGoAway /etc/ftpgoaway
DeferWelcome off
# Use this to excude users from the chroot
DefaultRoot ~ !adm
# Use pam to authenticate by default
AuthPAMAuthoritative on
# Do not perform ident nor DNS lookups (hangs when the port is filtered)
IdentLookups off
UseReverseDNS 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
# Default to show dot files in directory listings
ListOptions "-a"
# See Configuration.html for these (here are the default values)
#MultilineRFC2228 off
#禁止root登录
RootLogin off
#LoginPasswordPrompt on
#最大尝试次数
#MaxLoginAttempts 3
#TransferRate RETR 50 user kaoyan 下载速度限制
#TransferRate STOR 100 user upload上传速度限制!
TransferRate RETR 100 user ftp
MaxClientsPerHost 1 "对不起,一个IP只允许一个连接"
#MaxClientsPerUser 1 "对不起,每个帐户在每个客户端最多可以同时登陆1次"
MaxHostsPerUser 8 "对不起,已经到达该用户最大连接数8,请您稍候再试!"
#AllowForeignAddress off # For FXP
MaxClients 8 "对不起, 最大%m个用户 -- 请稍后再试"
#TimeoutIdle 设置空闲连接超时时间
#TimeoutLogin 设置空闲登陆超时时间
#TimeoutNoTransfer 设置当没有数据传输时的超时时间
#TimeoutStalled 设置被阻塞的下载的超时时间
TimeoutIdle 60
TimeoutLogin 60
# Allow to resume not only the downloads but the uploads too
AllowRetrieveRestart on
AllowStoreRestart on
# 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 5
# Set the user and group that the server normally runs at.
User nobody
Group nobody
# This is where we want to put the pid file
ScoreboardFile /var/run/proftpd.score
# Normally, we want users to do a few things.
<Global>
AllowOverwrite yes
<Limit ALL SITE_CHMOD CMD>
AllowAll
</Limit>
</Global>
# Define the log formats
LogFormat default "%h %l %u %t \"%r\" %s %b"
LogFormat auth "%v [%P] %h %t \"%r\" %s"
# TLS
# Explained at http://www.castaglia.org/proftpd/modules/mod_tls.html
#TLSEngine on
#TLSRequired on
#TLSRSACertificateFile /usr/share/ssl/certs/proftpd.pem
#TLSRSACertificateKeyFile /usr/share/ssl/certs/proftpd.pem
#TLSCipherSuite ALL:!ADH:!DES
#TLSOptions NoCertRequest
#TLSVerifyClient off
##TLSRenegotiate ctrl 3600 data 512000 required off timeout 300
#TLSLog /var/log/proftpd/tls.log
# A basic anonymous configuration, with an upload directory.
<Anonymous /var/ftp>
User ftp
Group ftp
AccessGrantMsg "Anonymous login ok, restrictions apply"
RequireValidShell off
# 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 6 "Sorry, max %m users -- try again later"
#
#Alias " /mnt" " /var/ftp"
# # Put the user into /pub right after login
# #DefaultChdir /pub
#
# # We want 'welcome.msg' displayed at login, '.message' displayed in
# # each newly chdired directory and tell users to read README* files.
DisplayLogin /welcome.msg
# DisplayFirstChdir .message
# DisplayReadme README*
#
# # Some more cosmetic and not vital stuff
# DirFakeUser on ftpadm
# DirFakeGroup on ftpadm
#
# # Limit WRITE everywhere in the anonymous chroot
<Limit WRITE SITE_CHMOD>
DenyAll
IgnoreHidden on
</Limit>
#
# # An upload directory that allows storing files but not retrieving
# # or creating directories.
# <Directory uploads/*>
# AllowOverwrite no
# <Limit READ>
# DenyAll
# </Limit>
#
# <Limit STOR>
# AllowAll
# </Limit>
# </Directory>
<Directory />
HideFiles (Recycled|found.000|MSOCache|welcome.msg|\Information)$
</Directory>
# # Don't write anonymous accesses to the system wtmp file (good idea!)
# WtmpLog off
#
# # Logging for the anonymous transfers
# ExtendedLog /var/log/proftpd/access.log WRITE,READ default
# ExtendedLog /var/log/proftpd/auth.log AUTH auth
#
</Anonymous>
<Anonymous /var/ftp/upload>
User upload
Group upload
<Directory /var/ftp/upload>
<Limit WRITE >
AllowUser upload
</Limit>
#CMD:Change Working Directory 改变目录
#MKD:MaKe Directory 建立目录的权限
#RNFR: ReName FRom 更改目录名的权限
#DELE:DELEte 删除文件的权限
#RMD:ReMove Directory 删除目录的权限
#RETR:RETRieve 从服务端下载到客户端的权限
#STOR:STORe 从客户端上传到服务端的权限
#READ:可读的权限,不包括列目录的权限,相当于RETR,STAT等
#WRITE:写文件或者目录的权限,包括MKD和RMD
#DIRS:是否允许列目录,相当于LIST,NLST等权限,还是比较实用的
#ALL:所有权限
#LOGIN:是否允许登陆的权限
#AllowUser 针对某个用户允许的Limit
#DenyUser 针对某个用户禁止的Limit
#AllowGroup 针对某个用户组允许的Limit
#DenyGroup 针对某个用户组禁止的Limit
#AllowAll 针对所有用户组允许的Limit
#DenyAll 针对所有用户禁止的Limit
<Limit RMD RNFR DELE RETR SITE_CHMOD>
DenyUser upload
</Limit>
</Directory>
DisplayLogin /welcome.msg
</Anonymous> |
|