由 nethawk 在 12-15-2002 22:45 发表:
兄弟们,帮帮忙.
兄弟们帮忙看看我的 proftpd.conf 的配置有什么错误:
This is a basic ProFTPD configuration file (rename it to
'proftpd.conf' for actual use. It establishes a single server
and a single anonymous login. It assumes that you have a user/group
"nobody" and "ftp" for normal operation and anon.
ServerName "ProFTPD Default Installation"
ServerType standalone
DefaultServer on
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
DefaultRoot /home/fengzhen fengzhen
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 6
Set the user and group that the server normally runs at.
User nobody
Group nobody
Normally, we want files to be overwriteable.
1<directory *="">
2
3AllowOverwrite on
4
5</directory>
A basic anonymous configuration, no upload directories.
1<anonymous ~ftp="">
2
3# User ftp
4
5#Group ftp
6
7# We want clients to be able to login with "anonymous" as well as "ftp"
8
9#UserAlias anonymous ftp
10
11
12
13# Limit the maximum number of anonymous logins
14
15#MaxClients 10
16
17
18
19# We want 'welcome.msg' displayed at login, and '.message' displayed
20
21# in each newly chdired directory.
22
23#DisplayLogin welcome.msg
24
25#DisplayFirstChdir .message
26
27
28
29# Limit WRITE everywhere in the anonymous chroot
30
31#<limit write="">
32
33#DenyAll
34
35#</limit>
36
37
38
39#</anonymous>
1<anonymous ftp="" home="">
2
3User guang
4
5Group guang
6
7# UserAlias anonymous guang
8
9AnonRequirePassword on
10
11
12
13<limit login="">
14
15Order allow,deny
16
17Allow</limit></anonymous>