由 szlux 在 05-17-2004 18:24 发表:
proftpd问题
ServerName "Lux's FTP Server"
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
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
TimeoutStalled 10
MaxClients 10
MaxClientsPerHost 1
AllowStoreRestart on
DisplayLogin welcome.msg
#Serverldent off
directory, uncomment this line.
DefaultRoot ~ ftpusers
Normally, we want files to be overwriteable.
1<directory></directory>
AllowOverwrite on
1<directory home="" kaoyan="">
2
3# A basic anonymous configuration, no upload directories. If you do not
4
5# want anonymous users, simply delete this entire <anonymous> section.
6
7#<anonymous ~ftp="">
8
9# User ftp
10
11# Group ftp
12
13
14
15# We want clients to be able to login with "anonymous" as well as "ftp"
16
17# UserAlias anonymous ftp
18
19
20
21# Limit the maximum number of anonymous logins
22
23# MaxClients 10
24
25# MaxClientsPerHost 1
26
27# We want 'welcome.msg' displayed at login, and '.message' disp</anonymous></anonymous></directory>