proftpd不能传大文件?

由 jkm 在 04-30-2003 08:54 发表:

proftpd不能传大文件?

我在一台rh8.0机器上面开了个proftp,但我发觉不能上传大文件,传一个3G左右的文件的时候每次都出错(空间足够),最后只能用samba才解决了问题,proftpd.conf如下,大家帮我看看是不是跟配置文件有关,还是别的问题?

另外我发现有时侯上传文件夹(里面有很多文件)的时候也可能出错,提示是说没有权限.

另外还有一个问题就是上传的时候如果有同名文件就提示说是不是要覆盖,点击是以后却说不能覆盖,但此时ftp上面的同名文件已经被删除,重新传一次就可以,不知道有没办法可以解决这个问题.

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

RequireValidShell 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

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

To cause every FTP user to be "jailed" (chrooted) into their home

directory, uncomment this line.

DefaultRoot ~ftpusers

Normally, we want files to be overwriteable.

1<directory></directory>

AllowOverwrite on

A basic anonymous configuration, no upload directories. If you do not

want anonymous users, simply delete this entire

  1<anonymous> section.   
  2  
  3<anonymous ~ftp="">
  4<limit logon="">   
  5  
  6AllowAll   
  7  
  8</limit>   
  9  
 10  
 11  
 12User ftp   
 13  
 14Group ftp   
 15  
 16  
 17  
 18# We want clients to be able to login with "anonymous" as well as "ftp"   
 19  
 20UserAlias anonymous ftp   
 21  
 22  
 23  
 24# Limit the maximum number of anonymous logins   
 25  
 26MaxClients 10 "Sorry,max %m users try again laster"   
 27  
 28  
 29  
 30# We want 'welcome.msg' displayed at login, and '.message' displayed   
 31  
 32# in each newly chdired directory.   
 33  
 34DisplayLogin welcome.msg   
 35  
 36DisplayFirstChdir .message   
 37  
 38  
 39  
 40# Limit WRITE everywhere in the anonymous chroot   
 41  
 42<limit write="">   
 43  
 44Order allow,deny   
 45  
 46Allow from 10.137.18.   
 47  
 48Deny from all   
 49  
 50</limit>
 51<directory *="" uploads="">
 52<limit read="">   
 53  
 54AllowAll   
 55  
 56</limit>
 57</directory>
 58</anonymous>
 59
 60  
 61
 62
 63* * *
 64
 65  
 66_由 jkm 在 04-30-2003 19:01 发表:_   
 67  
 68
 69
 70****
 71
 72  
 73  
 74
 75
 76顶上去 
 77
 78  
 79
 80
 81* * *
 82
 83  
 84_由 FunBOY 在 04-30-2003 22:52 发表:_   
 85  
 86
 87
 88****
 89
 90  
 91  
 92
 93
 94加上AllowStorRestart on   
 95  
 96<limit rest="">   
 97  
 98AllowAll   
 99  
100</limit>试试看吧,没准能行 
101
102  
103
104
105* * *
106
107  
108_由 jkm 在 05-01-2003 09:11 发表:_   
109  
110
111
112****
113
114  
115  
116
117
118AllowStorRestart on   
119  
120\- Fatal: unknown configuration directive 'AllowStorRestarted' on line 79 of '/usr/local/etc/proftpd.conf'. 
121
122  
123
124
125* * *
126
127  
128_由 FunBOY 在 05-01-2003 13:20 发表:_   
129  
130
131
132****
133
134  
135  
136
137
138你的版本??? 
139
140  
141
142
143* * *
144
145  
146_由 jkm 在 05-01-2003 19:22 发表:_   
147  
148
149
150****
151
152  
153  
154
155
156忘了什么版本了,呵呵   
157  
158应该是比较新的版本,3月份下载的,现在机器不在边上,也没办法看 
159
160  
161
162
163* * *
164
165  
166_由 BTworm 在 05-02-2003 20:21 发表:_   
167  
168
169
170****
171
172  
173  
174
175
176拼写错误,应该是AllowStoreRestart,少了个“e”。 
177
178  
179
180
181* * *
182
183  
184_由 jkm 在 05-03-2003 08:46 发表:_   
185  
186
187
188****
189
190  
191  
192
193
194好的,到时候回去看看 
195
196  
197
198
199* * *
200
201  
202_由 BTworm 在 05-03-2003 10:09 发表:_   
203  
204
205
206****
207
208  
209  
210
211
212试用MaxStoreFileSize * Gb,看能不能解决上载大文件的问题。   
213  
214  
215  
216另外,还有一处语法错误:   
217  
218
219
220&gt; quote: 
221&gt; 
222&gt; * * *
223&gt; 
224&gt; <limit logon="">   
225&gt;    
226&gt;  AllowAll   
227&gt;    
228&gt;  </limit>
229&gt; 
230&gt; * * *
231
232  
233  
234应该为LOGIN 
235
236  
237
238
239* * *
240
241  
242_由 jkm 在 05-03-2003 11:47 发表:_   
243  
244
245
246****
247
248  
249  
250
251
252这个不是我改的呀,而且用这也没报错阿 
253
254  
255
256
257* * *
258
259  
260_由 BTworm 在 05-03-2003 11:54 发表:_   
261  
262
263
264****
265
266  
267  
268
269
270我试过用LOGON,也没报错。可是PROFTPD的DOCUMENT里说是LOGIN。 
271
272  
273
274
275* * *
276
277  
278_由 jkm 在 05-08-2003 16:32 发表:_   
279  
280
281
282****
283
284  
285  
286
287
288都改了,结果还是一样.   
289  
290# This is a basic ProFTPD configuration file (rename it to   
291  
292# 'proftpd.conf' for actual use. It establishes a single server   
293  
294# and a single anonymous login. It assumes that you have a user/group   
295  
296# "nobody" and "ftp" for normal operation and anon.   
297  
298  
299  
300ServerName "ProFTPD Default Installation"   
301  
302ServerType standalone   
303  
304DefaultServer on   
305  
306  
307  
308RequireValidShell off   
309  
310  
311  
312# Port 21 is the standard FTP port.   
313  
314Port 21   
315  
316  
317  
318# Umask 022 is a good standard umask to prevent new dirs and files   
319  
320# from being group and world writable.   
321  
322Umask 022   
323  
324  
325  
326# To prevent DoS attacks, set the maximum number of child processes   
327  
328# to 30. If you need to allow more than 30 concurrent connections   
329  
330# at once, simply increase this value. Note that this ONLY works   
331  
332# in standalone mode, in inetd mode you should use an inetd server   
333  
334# that allows you to limit maximum number of processes per service   
335  
336# (such as xinetd).   
337  
338MaxInstances 30   
339  
340  
341  
342# Set the user and group under which the server will run.   
343  
344User nobody   
345  
346Group nobody   
347  
348  
349  
350# To cause every FTP user to be "jailed" (chrooted) into their home   
351  
352# directory, uncomment this line.   
353  
354DefaultRoot ~ftpusers   
355  
356  
357  
358# Normally, we want files to be overwriteable.   
359  
360<directory></directory>   
361  
362AllowOverwrite on   
363  
364   
365  
366  
367  
368# A basic anonymous configuration, no upload directories. If you do not   
369  
370# want anonymous users, simply delete this entire <anonymous> section.   
371  
372<anonymous ~ftp="">
373<limit login="">   
374  
375AllowAll   
376  
377</limit>   
378  
379  
380  
381Use</anonymous></anonymous></anonymous>
Published At
Categories with 服务器类
Tagged with
comments powered by Disqus