proftpd 的问题!求救啊

由 wallace888 在 06-24-2003 10:17 发表:

proftpd 的问题!求救啊

这是我的proftpd 的配置文件,现在问题是无法匿名登陆,www用户是空密码是可以自动登陆的。还有就是我现在创建了abc用户,该用户可以ftp到linux上

但是它现在可以访问上级目录,在那添加限制abc用户访问上级目录,在此请高手请教!!

We want clients to be able to login with "anonymous" as well

as "ftp"

UserAlias anonymous www

Limit the maximum number of anonymous logins

MaxClients 10

We want 'welcome.msg' displayed at login, and '.message' displayed

in each newly chdired directory.

DisplayLogin welcome.msg

DisplayFirstChdir .message

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 "Wallace Proftpd 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 that the server normally runs at.

User nobody

Group nobody

Normally, we want files to be overwriteable.

1<directory *="">   
2  
3AllowOverwrite on   
4  
5</directory>

A basic anonymous configuration, no upload directories.

 1<www ftp="" home="" www="">   
 2  
 3  
 4  
 5User www   
 6  
 7Group www   
 8  
 9  
10  
11  
12  
13  
14  
15# We want clients to be able to login with "anonymous" as well as "ftp"   
16  
17UserAlias anonymous www   
18  
19  
20  
21# Limit the maximum number of anonymous logins   
22  
23MaxClients 10   
24  
25  
26  
27# We want 'welcome.msg' displayed at login, and '.message' displayed   
28  
29# in each newly chdired directory.   
30  
31DisplayLogin welcome.msg   
32  
33DisplayFirstChdir .message   
34  
35  
36  
37# Limit WRITE everywhere in the anonymous chroot   
38  
39<limit write="">   
40  
41DenyAll   
42  
43</limit>
44
45
46  
47
48
49* * *
50
51  
52_由 欧可侠 在 06-24-2003 11:56 发表:_   
53  
54
55
56****
57
58  
59  
60
61
62你的配置文件proftpd.conf的漏洞可使真不少:   
63  
64 怎么没有前面的一部分?</www>
Published At
Categories with 服务器类
Tagged with
comments powered by Disqus