由 zx427 在 07-16-2003 14:42 发表:
proftpd装完,报错无法读/etc/proftpd.conf是怎么回事???
proftpd装完,报错无法读/etc/proftpd.conf是怎么回事???
由 cx6445 在 07-16-2003 19:04 发表:
一般两种可能proftpd.conf文件损坏或根本就没有proftpd.conf文件
由 Glue 在 07-16-2003 21:39 发表:
linux下损坏的可能性比较小。
应该是还没有吧
从哪里装就从哪里去找个例子改改吧
-_-
由 stanlogin 在 07-16-2003 22:02 发表:
楼主真么知道没读?请详细点~
_____>小刀
由 zx427 在 07-16-2003 22:06 发表:
对,是没有proftpd.conf,我到哪里去找那?不是装上proftpd就应该有这个文件吗?
由 lanmaster 在 07-17-2003 09:23 发表:
这个对你可能会有用.
ProFTP配置文档
经过几天的郁闷,在eTong和pupilzeng及其它网友的帮助才把RPOFTPD配置完成,把我的配置文档发出来加以说明,希望能其它有网友有所帮助。
如果下的的配置文档哪个地方有错误请各位网友提出并指正,
下面有些配置文档我没有说明(不知道怎么解释,请各位了解的老兄帮着添加上,谢谢,可以会出现笔误请大家见谅!)
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.
1<global>
2
3UseReverseDNS off #禁止使用DNS反向解析
4
5IdentLookups off #
6
7CommandBufferSize 128 #最大命令长度
8
9DirFakeUser On FTP #不显示给用户真实的用户、组
10
11DirFakeGroup On FTP #
12
13MaxLoginAttempts 1 #最大密友的验证次数
14
15
16
17#<limit dele="" login="" read="" rmd="" rnfr="" rnto="" site="" write="" xrmd="">
18
19# DenyAll #禁止以上所列出的命令动作
20
21#</limit>
22<limit all="">
23
24IgnoreHidden on #
25
26</limit>
27<directory *="">
28
29HideNoAccess off #
30
31AllowOverWrite off #是否允许覆盖重写
32
33</directory>
34
35#
36
37ServerName "My FTP Server " #FTP服务器名称
38
39ServerType standalone #服务器的运行方式(还有INITD运行方式)
40
41DefaultServer on
42
43
44
45# Port 21 is the standard FTP port.
46
47Port 21 #FTP服务所昨监听端口
48
49
50
51# Umask 022 is a good standard umask to prevent new dirs and files
52
53# from being group and world writable.
54
55Umask 022 #权限掩码
56
57
58
59# To prevent DoS attacks, set the maximum number of child processes
60
61# to 30. If you need to allow more than 30 concurrent connections
62
63# at once, simply increase this value. Note that this ONLY works
64
65# in standalone mode, in inetd mode you should use an inetd server
66
67# that allows you to limit maximum number of processes per service
68
69# (such as xinetd).
70
71MaxInstances 30 #设置的是proftpd产生的子进程的个数
72
73
74
75TimeoutLogin 30 #登陆超时时间
76
77TimeoutIdle 120 #发呆超时
78
79TimeoutNoTransfer 90 #无数据传输的超时时间
80
81
82
83
84
85# Set the user and group under which the server will run.
86
87User nobody #设置运行FTP的用户
88
89Group nobody #设置运行FTP的组(启动时以什么用户或组身份运行该程序)
90
91
92
93# To cause every FTP user to be "jailed" (chrooted) into their home
94
95# directory, uncomment this line.
96
97# DefaultRoot ~ #将用户限定在自己的主目录下(只能在主目录及下级目录进行操作)
98
99# DefaultRoot /public/web #将用户限定在某一目录(只能在该录及下级目录进行操作)
100
101MaxClients 10 #最大可以有多少个客户端进行连接
102
103# RateReadBPS 1024000 #限制下载速度
104
105# RateWriteBPS 1024000 #限制上传速度
106
107MaxHostPerUser 10 #设置最大用户的连接数
108
109MaxClientsPerHost 2 #限制每个IP只能2个连接
110
111MaxClientsPeruser 5 #限制每个同一个用户可以同时有5连接
112
113
114
115DisplayLogin ./welcome.msg #用户登陆服务器时所显示的信息
116
117DisplayFirstChdir ./message.msg #用户在改变目录时所显示的信息
118
119# AllowForeignAddress on #允许外来的IP地址进行访问
120
121# AllowOverwrite on #设置可覆盖重写
122
123# AllowStoreRestart on #设置可续传
124
125
126
127
128
129LogFormat myxfer "%h %u %t \"%r\" %s %b"
130
131LogFormat default "%h %a %u %t \"%r\" %s %b $$ \'%F\'"
132
133LogFormat auth "%h %a %t \"%r\" %s"
134
135LogFormat write "%h %a %t \"%r\" %s %b"
136
137#以上定义log文件的格式
138
139Systemlog /usr/local/proftp/etc/syslog.log #定义系统日志文件
140
141TransferLog /usr/local/proftp/etc/trans.log #定义文件传输时的log文件存储位置
142
143</global>
#RootLogin off #设置禁止用户Root登陆
-
#-----------------------------------------------------------
Normally, we want files to be overwriteable.
1<anonymous public=""> #设定用户登陆时所进入的目录
2
3User ftp #设定哪那些用户或组在登陆时直接进入该目录(上面所设定的目录)
4
5Group ftp #用户名和组名可以自定义
6
7AccessGrantMsg "%U用户登陆成功" #用户登陆成功信息
8
9AnonRequirePassword on #启用访问口令
10
11AllowOverwrite on #允许在该目录覆盖重定
12
13AllowStoreRestart on #允许上传,支持续传,但不能覆盖
14
15# TransferRate APPE,RETR,STOR,STOU 1000 #表示传输速度始终是1000
16
17
18
19<limit login="">
20
21AllowUser lanmaster #设置允许登陆的用户(在上面已经做过限制,所以要打开)
22
23</limit>
24<limit write="">
25
26Allow lanmaster #设置哪个用户对该目录有写的权限
27
28#AllowAll #允许所有用户对该目录有定的权限
29
30</limit>
31<limit read="">
32
33AllowAll #允许所有用户对该目录有读的权限
34
35</limit>
36
37Umask 022 #该目录的权限掩码
38
39# LsDefaultOption "-l" #ls命令时的默认参数
40
41</anonymous>
#------------------------------------------------