我的Proftpd怎么不能上传和下载?

由 pinocchiozy 在 10-28-2002 13:50 发表:

我的Proftpd怎么不能上传和下载?

我的Proftpd怎么不能上传和下载?附上我的Proftpd.conf文件,请高手指点!!

This is the ProFTPD configuration file

$Id: proftpd.conf,v 1.3 2002/09/17 08:34:36 dude Exp $

ServerName "ZYI's FTP server"

ServerIdent on "FTP Server ready."

ServerAdmin root@localhost

ServerType standalone

#ServerType inetd

DefaultServer on

AccessGrantMsg "User %u logged in."

#DisplayConnect /etc/ftpissue

#DisplayLogin /etc/ftpmotd

#DisplayGoAway /etc/ftpgoaway

DeferWelcome off

Use this to excude users from the chroot

DefaultRoot ~ !adm

Use pam to authenticate by default

AuthPAMAuthoritative on

Do not perform ident nor DNS lookups (hangs when the port is filtered)

IdentLookups off

UseReverseDNS 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

Default to show dot files in directory listings

LsDefaultOptions "-a"

See Configuration.html for these (here are the default values)

#MultilineRFC2228 off

#RootLogin off

#LoginPasswordPrompt on

#MaxLoginAttempts 3

#MaxClientsPerHost none

#AllowForeignAddress off # For FXP

Allow to resume not only the downloads but the uploads too

AllowRetrieveRestart on

AllowStoreRestart on

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 10

Set the user and group that the server normally runs at.

User nobody

Group nobody

This is where we want to put the pid file

ScoreboardPath /var/run

Normally, we want users to do a few things.

 1<global>   
 2  
 3AllowOverwrite yes   
 4  
 5<limit all="" site_chmod="">   
 6  
 7AllowAll   
 8  
 9</limit>
10</global>

Define the log formats

LogFormat default "%h %l %u %t "%r" %s %b"

LogFormat auth "%v [%P] %h %t "%r" %s"

A basic anonymous configuration, no upload directories.

 1<anonymous ~ftp="">   
 2  
 3# Uncomment the following line to allow anonymous access   
 4  
 5RequireValidShell off   
 6  
 7User ftp   
 8  
 9Group ftp   
10  
11AccessGrantMsg "Anonymous login ok, restrictions apply."   
12  
13  
14  
15# We want clients to be able to login with "anonymous" as well as "ftp"   
16  
17UserAlias anonymous ftp   
18  
19  
20  
21# Limit the maximum number of anonymous logins   
22  
23MaxClients 3 "Sorry, max %m users -- try again later"   
24  
25  
26  
27# Put the user into /pub right after login   
28  
29DefaultChdir /pub   
30  
31  
32  
33# We want 'welcome.msg' displayed at login, '.message' displayed in   
34  
35# each newly chdired directory and tell users to read README* files.   
36  
37DisplayLogin /welcome.msg   
38  
39DisplayFirstChdir .message   
40  
41DisplayReadme README*   
42  
43  
44  
45# Some more cosmetic and not vital stuff   
46  
47DirFakeUser on ftpadm   
48  
49DirFakeGroup on ftpadm   
50  
51  
52  
53# Limit WRITE everywhere in the anonymous chroot   
54  
55<limit site_chmod="" write="">   
56  
57DenyAll   
58  
59</limit>   
60  
61  
62  
63# An upload directory that allows storing files but not retrieving   
64  
65# or creating directories.   
66  
67<directory *="" uploads="">   
68  
69AllowOverwrite no   
70  
71<limit read="">   
72  
73DenyAll   
74  
75</limit>
76<limit stor="">   
77  
78AllowAll   
79  
80</limit>
81</directory>   
82  
83  
84  
85# Don't write anonymous accesses to the</anonymous>
Published At
Categories with 服务器类
Tagged with
comments powered by Disqus