由 leijinying 在 04-12-2004 23:12 发表:
proftpd设置之后,为什么windows用户的cuteftp就死阿???
搞笑 阿 。不知道怎么回事阿 。
我设置完之后,只要在windows下面用cuteftp然后输入ip,匿名登录,然后显示了一些说明之后,就会出现显示错误,然后只有关闭了
奇怪了。但是ie这些浏览器没有任何问题!----其他的ftp客户端不知道是不是有问题!
有一点就是,他们用的都是一个版本的cuteftp。
大家说说,怎么回事???
我这几天在试一试!
谢谢!
> quote:
>
> * * *
>
>
>
> # 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 [email protected]
>
> 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.
>
>
1<global>
2>
3> AllowOverwrite yes
4>
5> <limit all="" cmd="" site_chmod="">
6>
7> AllowAll
8>
9> </limit>
10>
11> </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.
>
>
1<anonymous ftp="" var="">
2>
3> User ftp
4>
5> Group ftp
6>
7> AccessGrantMsg "Anonymous login ok, restrictions apply"
8>
9> RequireValidShell off
10>
11> # We want clients to be able to login with "anonymous" as well as "ftp"
12>
13> UserAlias anonymous ftp
14>
15> #
16>
17> # # Limit the maximum number of anonymous logins
18>
19> MaxClients 6 "Sorry, max %m users -- try again later"
20>
21> #
22>
23> #Alias " /mnt" " /var/ftp"
24>
25> # # Put the user into /pub right after login
26>
27> # #DefaultChdir /pub
28>
29> #
30>
31> # # We want 'welcome.msg' displayed at login, '.message' displayed in
32>
33> # # each newly chdired directory and tell users to read README* files.
34>
35> DisplayLogin /welcome.msg
36>
37> # DisplayFirstChdir .message
38>
39> # DisplayReadme README*
40>
41> #
42>
43> # # Some more cosmetic and not vital stuff
44>
45> # DirFakeUser on ftpadm
46>
47> # DirFakeGroup on ftpadm
48>
49> #
50>
51> # # Limit WRITE everywhere in the anonymous chroot
52>
53>
54>
55> <limit site_chmod="" write="">
56>
57> DenyAll
58>
59> IgnoreHidden on
60>
61> </limit>
62>
63> #
64>
65> # # An upload directory that allows storing files but not retrieving
66>
67> # # or creating directories.
68>
69> # <directory *="" uploads="">
70>
71> # AllowOverwrite no
72>
73> # <limit read="">
74>
75> # DenyAll
76>
77> # </limit>
78>
79> #
80>
81> # <limit stor="">
82>
83> # AllowAll
84>
85> # </limit>
86>
87> # </directory>
88>
89> <Directo</anonymous>