proftpd中多用户管理的问题。

由 raink 在 05-12-2003 01:45 发表:

proftpd中多用户管理的问题。

在proftpd.conf中设置了两个用户,分别为up和down,均是ftp group

目录形式如下:

/ftp-----/up

|

|---/down

现在需要做的是:

up用户在up目录下有读写执行的权限,而在down目录下只能读。

down用户在down目录下,只能读和执行,对up目录没有权限,

我原来是直接通过设置目录做的,可是,仅能支持一个用户登录,up登录,down就不能登录,不知道在proftp.conf下如何写,是需要使用

  1<directory>这个来配置吗?另外,对于/ftp这个目录需要做什么限制吗?   
  2  
  3贴出我的设置:   
  4  
  5  
  6  
  7\-----------------   
  8  
  9ServerName "XXX.XXX.XXX"   
 10  
 11ServerType standalone   
 12  
 13DefaultServer on   
 14  
 15Port 21   
 16  
 17ServerIdent on "XXX.XXX.XXX"   
 18  
 19UseReverseDNS off   
 20  
 21IdentLookups off   
 22  
 23AuthPAM on   
 24  
 25AuthPAMAuthoritative on   
 26  
 27AuthPAMConfig ftp   
 28  
 29Umask 022   
 30  
 31MaxInstances 50   
 32  
 33MaxClients 50   
 34  
 35AllowRetrieveRestart on   
 36  
 37AllowOverwrite on   
 38  
 39AllowStoreRestart on   
 40  
 41TimeoutIdle 60   
 42  
 43ExtendedLog /var/log/proftp.log ALL   
 44  
 45User nobody   
 46  
 47Group ftp   
 48  
 49DefaultRoot ~   
 50  
 51  
 52  
 53User down   
 54  
 55Group ftp   
 56  
 57DisplayLogin .welmsg   
 58  
 59MaxClients 10   
 60  
 61MaxClientsPerHost 1 "!!!每IP只允许1个连接!!!"   
 62  
 63MaxClientsPerUser 10 "!!!该用户只允许10个连接!!!"   
 64  
 65  
 66  
 67User up   
 68  
 69Group ftp   
 70  
 71DisplayLogin .welmsg   
 72  
 73AccessGrantMsg "用户%u登陆成功."   
 74  
 75MaxClients 5   
 76  
 77MaxClientsPerHost 1 "!!!每IP只允许1个连接!!!"   
 78  
 79MaxClientsPerUser 5 "!!!该用户只允许5个连接!!!"   
 80  
 81\-------------------------   
 82  
 83  
 84  
 85这样写似乎有些问题,但又不知道问题出在哪里,希望可以得到解答,谢谢! 
 86
 87  
 88
 89
 90* * *
 91
 92  
 93_由 dancingpig 在 05-12-2003 09:00 发表:_   
 94  
 95
 96
 97****
 98
 99  
100  
101
102
103RequireValidShell off &lt;\-----------加了吗?   
104  
105<anonymous ftp="" home=""> // /home/ftp为匿名用户登录目录〈------你可以改,我改为/home/html   
106  
107User ftp&lt;\-----</anonymous></directory>
Published At
Categories with 服务器类
Tagged with
comments powered by Disqus