由 lanmaster 在 06-14-2003 13:48 发表:
PROFTPD服务答疑(请各位会的老兄多多指教)
Q1
DisplayLogin ./welcome.msg
DisplayFirstChdir ./message.msg
这两个信息文件放到那个目录里,如果是相对目录,那它应该相对于那个目录(请举例说明)
由 lanmaster 在 06-14-2003 13:55 发表:
Q2
MaxClients XX
MaxClientsPerUser XX
MaxClientsPerHost xx
这些各表示什么意义
MaxClietnsXX 和MaxClientsPerUser xx 之间有什么区别。
成长中的菜鸟!
E-Mail:qcy_[email protected]
QQ :7118899
由 pupilzeng 在 06-14-2003 14:12 发表:
A1:
DisplayLogin ./welcome.msg
The DisplayLogin directive configures an ASCII text filename which will be displayed to the user when they initially login. The filename can be either relative or absolute. In the case of a relative filename, the file is searched for in the initial directory a user is placed in immediately after login (home directory for unix user logins, anonymous-root directory for anonymous logins). Note: that for jailed logins, the file must reside inside the chroot()ed file system space. If the file cannot be found or accessed, no error occurs and nothing is logged or displayed to the client. DisplayLogin supports the same "magic cookies" as DisplayFirstChdir.
DisplayFirstChdir ./message.msg
The DisplayFirstChdir directive configures an ASCII text filename which will be displayed to the user the first time they change into a directory (via CWD) per a given session. The file will also be displayed if proftpd detects that its last modification time has changed since the previous CWD into a given directory. If the filename is relative, it is looked for in the new directory that the user has changed into. Note that for anonymous ftp logins (see
1<anonymous> ), the file must reside inside the chroot()ed file system space. If the file cannot be found or accessed, no error occurs and nothing is logged or displayed to the client.
2
3
4
5A2:
6
7MaxClients Limits the number of users that can connect
8
9MaxClientsPerUser Limit the number of connections per userid
10
11MaxClientsPerHost Limits the connections per client machine
12
13__________________
14
15Athlon XP1500+ +Jetway 866Pro(KT266A) +384RAM+Seaget U6 40G +Geforce MX400
16
17
18
19Debian(sid)+XP
20
21
22
23
24* * *
25
26
27_由 lanmaster 在 06-14-2003 14:46 发表:_
28
29
30
31****
32
33
34
35
36
37Q2
38
39MaxClients XX 表示可以有多少个用户连接
40
41
42
43MaxClientsPerHost XX表示一个IP可以有多少个线程进行连接
44
45
46
47MaxClientsPerUser XX 还是不太明白。
48
49__________________
50
51成长中的菜鸟!
52
53E-Mail:[email protected]
54
55QQ :7118899
56
57
58
59
60* * *
61
62
63_由 lanmaster 在 06-14-2003 15:42 发表:_
64
65
66
67****
68
69
70
71
72
73TransferRate APPE,RETR,STOR,STOU 500:500
74
75TransferRate APPE,RETR,STOR,STOU 1000
76
77请问这段设置是什么意思
78
79
80
81MaxClientsPerHost XX 表示一个IP可以有多少个连接
82
83MaxClientsPerUser XX是不是一个连接可以有多少线程啊(如有错误请指正)
84
85__________________
86
87成长中的菜鸟!
88
89E-Mail:[email protected]
90
91QQ :7118899
92
93
94
95
96* * *
97
98
99_由 pupilzeng 在 06-14-2003 16:05 发表:_
100
101
102
103****
104
105
106
107
108
109TransferRate APPE,RETR,STOR,STOU 500:500
110
111对APPE,RETR,STOR,STOU的速率限制:当超过500byte时,最大速率就限定为500k/s
112
113TransferRate APPE,RETR,STOR,STOU 1000
114
115一直限速1000k/s
116
117
118
119MaxClientsPerUser 我的理解,不是指线程,而是指连接数,比方说可以从不能机器用同一个用户名,或者不同的应用程序用同一个用户名。
120
121
122
123另外问一声:linux支持线程吗?
124
125
126
127www.proftpd.org 有配置文档的,自己找找看吧
128
129__________________
130
131Athlon XP1500+ +Jetway 866Pro(KT266A) +384RAM+Seaget U6 40G +Geforce MX400
132
133
134
135Debian(sid)+XP
136
137
138
139
140* * *
141
142
143_由 lanmaster 在 06-14-2003 16:48 发表:_
144
145
146
147****
148
149
150
151
152
153具体我也不知道支不支持线程,我说的意思就当用网际快车下载的时候它默认不就是用5个线程。
154
155
156
157TransferRate APPE,RETR,STOR,STOU 500:500
158
159中APPE,RETR....是表示用户吗。
160
161
162
163MaxClientsPerUser xx 表示同一个用户名可以同时XX个登陆?
164
165__________________
166
167成长中的菜鸟!
168
169E-Mail:[email protected]
170
171QQ :7118899
172
173
174
175
176* * *
177
178
179_由 pupilzeng 在 06-14-2003 19:43 发表:_
180
181
182
183****
184
185
186
187
188
189>TransferRate APPE,RETR,STOR,STOU 500:500
190
191>中APPE,RETR....是表示用户吗。
192
193
194
195不
196
197APPE:append,指追加,简单的说,就是上传文件的续传。
198
199RETR:retrive,下载
200
201STOR:store,上传
202
203STOU: Short for STOre Uunique, it requests that the file being stored on the server be given a unique filename. The server chooses the unique name for the stored file, and reports the name chosen back to the client. On some FTP clients, this ability is enabled using the client-specific "sunique" command.
204
205
206
207>MaxClientsPerUser xx 表示同一个用户名可以同时XX个登陆?
208
209我是这么理解的
210
211__________________
212
213Athlon XP1500+ +Jetway 866Pro(KT266A) +384RAM+Seaget U6 40G +Geforce MX400
214
215
216
217Debian(sid)+XP
218
219
220
221
222* * *
223
224
225_由 lanmaster 在 06-15-2003 10:34 发表:_
226
227
228
229****
230
231
232
233
234
235再次向你表示感谢。因为我正在事理PROFTPD的配置文档所以问题多了点,以后可能还会有一些可笑的问题,请多帮忙了。
236
237__________________
238
239成长中的菜鸟!
240
241E-Mail:[email protected]
242
243QQ :7118899
244
245
246
247
248* * *
249
250
251_由 pupilzeng 在 06-15-2003 12:26 发表:_
252
253
254
255****
256
257
258
259
260
261这些在 www.proftpd.org 网站上都有很详细的文档,你好好看看吧
262
263__________________
264
265Athlon XP1500+ +Jetway 866Pro(KT266A) +384RAM+Seaget U6 40G +Geforce MX400
266
267
268
269Debian(sid)+XP
270
271
272
273
274* * *
275
276
277_由 lanmaster 在 06-15-2003 13:20 发表:_
278
279
280
281****
282
283
284
285
286
287我正在看呢。
288
289__________________
290
291成长中的菜鸟!
292
293E-Mail:[email protected]
294
295QQ :7118899
296
297
298
299
300* * *
301
302
303_由 dsj 在 06-15-2003 15:21 发表:_
304
305
306
307****
308
309
310
311
312
313给个中文的
314
315Q:在那里可以找到最新版本?
316
317A:请您查看 www.proftpd.org
318
319
320
321Q:如何启动或停止proftpd?
322
323A:请您使用命令which proftpd,找到文件的位置,假设(通常)为/usr/sbin/proftpd
324
325启动/usr/sbin/proftpd start
326
327停止/usr/sbin/proftpd stop
328
329
330
331Q  roftpd如何设置为系统启动
332
333A:请您拷贝原编译目录proftpd-1.2.xxx/contrib/dist/rpm/下的proftpd.init.d文件至/etc/rc.d/init.d/下
334
335
336
337,更名为proftpd,
338
339cp /contrib/dist/rpm/proftpd.init.d /etc/rc.d/init.d/proftpd
340
341chmod 700 proftpd
342
343chkconfig --level 3 proftpd on
344
345
346
347Q:welcome.msg与.message有什么别
348
349A:请您看proftpd.conf中的描述
350
351DisplayLogin welcome.msg
352
353DisplayFirstChdir .message
354
355也就是说welcome.msg在登陆时显示,而.message在每次更改目录时显示
356
357
358
359Q:在本机上能登录proftpd,在局域网和其他地方不行,why?
360
361A:请您降低您的防火墙设置,使用setup进行设置
362
363
364
365Q:如何限定每个ip的最大连接数(匿名)?
366
367A: 请您参看Configuration.html,默认值如下
368
369#MaxClientsPerHost none
370
371
372
373Q:安装proftpd时,出现类似“configure: error: no acceptable cc found in $PATH”,怎么办?
374
375A:请您安装GCC编译器及其依赖软件包
376
377
378
379Q:如何限制用户上载和下载的速率?
380
381A:请您使用以下参数
382
383RateReadBPS RateReadFreeBytes
384
385RateWriteBPS RateWriteFreeBytes
386
387RateReadBPS和RateWriteBPS限制下载和上载的速率
388
389RateReadFreeBytes和RateWriteFreeBytes限制当用户现在这么多数据量以后再进行限速,这样可以实现对于
390
391
392
393小文件不限速,而大文件限速。
394
395
396
397Q:如何设置空闲超时时间?
398
399A:请您检查
400
401TimeoutIdle 设置空闲连接超时时间
402
403TimeoutLogin 设置空闲登陆超时时间
404
405TimeoutNoTransfer 设置当没有数据传输时的超时时间
406
407TimeoutStalled 设置被阻塞的下载的超时时间
408
409
410
411Q  roftp无法inetd启动?
412
413A:请您试试xinetd
414
415
416
417Q:如何禁止admin用户登录自己的home目录?
418
419A:请您在proftpd.conf中使用DefaultRoot ~ !admin
420
421
422
423Q:达到最大用户数限制时,如何给出提示信息?
424
425A:请您在proftpd.conf中使用MaxHostsPerUser 100 "对不起,已经到达该用户最大连接数100,请您稍候再试!"
426
427
428
429Q:怎么限制每个IP允许的线程数?
430
431A:请您在proftpd.conf中使用MaxClientsPerHost 1 "对不起,每个ip只允许有1个连接!"
432
433
434
435Q:安装后找不到proftpd.conf?
436
437A:请您检查是否安装proftpd-inetd-1.2.*-1.i386.rpm或者proftpd-standalone-1.2.*-1.i386.rpm,其中*为
438
439
440
441您的具体的版本号
442
443
444
445Q:如何查看proftpd的运行信息或者进行调试?
446
447A:请您使用命令/usr/local/sbin/proftpd -d9 -n
448
449
450
451Q:普通用户可以登录,但匿名用户无法登录?
452
453A:请您检查proftpd.conf,修改<anonymous ~ftp="">为<anonymous ftp="" home="">(这里/home/ftp可以是任何希望
454
455
456
457匿名用户登录以后的当前根目录,但是确保要使该目录允许ftp用户访问),并且若<anonymous ftp="" home="">部
458
459
460
461分的User指令指定的用户为ftp用户,则需要在配置文件中添加如下命令指示:
462
463RequireValidShell off,如果还不行,请删除相应帐号,并重新创建用户及其相应的组
464
465
466
467Q:如何限制一个正常用户登录以后只能访问某个目录?
468
469
470
471A:可以通过指令DefaultRoot来实现。例如若希望将ftpusers组的用户限定在自己的home目录下,则需要首先创
472
473
474
475建该组: /usr/sbin/groupadd ftpusers然后将用户ideal加入到该组中: usrmod -G ftpusers ideal 最后在
476
477
478
479在proftpd.conf文件中添加如下内容: DefaultRoot ~ ftpusers
480
481也可以限制用户登录以后仅仅访问自己主目录下的一个子目录:
482
483Default! Root ~/anoftp ftpusers
484
485当然也可以将用户限制在其他目录之下,而不是自己的home目录下:
486
487DefaultRoot /tmp ft</anonymous></anonymous></anonymous></anonymous>