为proftpd设置虚拟主机

发表于:2007-05-25来源:作者:点击数: 标签:
在proftpd中设置跟apche一样的虚拟用户来对个别用户进行限制 下面是我虚拟主机用户student用户的代码 Anonymous~student Userstudent Groupftp MaxClientsPerHost1"Sorry,Thisftponlyuseone'sIPconnect!!" AnonRequirePasswordon RateReadBPS512000#限制带宽

在proftpd中设置跟apche一样的虚拟用户来对个别用户进行限制
下面是我虚拟主机用户student用户的代码
<Anonymous ~student> 
User student 
Group ftp
MaxClientsPerHost 1 "Sorry,This ftp only use one's IP connect!!" 
AnonRequirePassword on 
RateReadBPS 512000 #限制带宽
RateReadFreeBytes 512000 
RateReadHardBPS on 
<Limit LOGIN /home/student/*> 
Order allow,deny 
Allow from 172.16.*.* #限制IP登陆范围
Deny from all 
</Limit>

<Limit READ> #/home/student可以读
AllowAll 
</Limit>

<Limit DELE> #不能删除
DenyAll 
</Limit> 

<Limit RNFR> #不可更名
DenyAll 
</Limit> 

<Limit MKD> #不可创造数据夹
DenyAll 
</Limit>
</Anonymous>

希望这次能加精! 

 wind521 回复于:2003-03-27 11:34:29
不错

 liangxinf 回复于:2003-05-28 15:34:58
感谢。    
为什么不加入精华帖?

 golden76 回复于:2003-05-30 03:58:22
应为他没有挂接数据库

 i_amok 回复于:2003-06-10 10:14:59
没看懂顶楼的标题....

 bsdxp 回复于:2003-06-11 08:44:52
[quote:35de0a8484="haohaoo"]在proftpd中设置跟apche一样的虚拟用户来对个别用户进行限制
下面是我虚拟主机用户student用户的代码
<Anonymous ~student> 
User student 
Group ftp
MaxClientsPerHost 1 "Sorry,This ftp only use one..........[/quote:35de0a8484]   


虚拟主机不是virtualhost 的吗??

你这个是虚拟目录吧?

 firer2000 回复于:2003-06-12 14:30:47
[quote:172a94bc45="bsdxp"]  


虚拟主机不是virtualhost 的吗??

你这个是虚拟目录吧?[/quote:172a94bc45]     


我也有同样的问题,请高手回答!!!

 haohaoo 回复于:2003-06-12 15:18:06
标题写太大了,这个是对个别用户的控制,如果virtualhost 里面只有一个用户的话,那用这个一样的

 cqfanli 回复于:2003-09-05 16:45:41
好好,不錯的東東!

 diypig 回复于:2003-09-30 14:26:10
http://proftpd.linux.co.uk/localsite/Userguide/linked/x1015.html
请问下这个是限制什么比率的?
还有我用TransferRate RETR 100在<Anonymous>下限制下载没有效果,而在global下别的用户就可以.

 diypig 回复于:2003-10-01 03:02:42
我用TransferRate RETR 100在<Anonymous>下限制下载没有效果,此时的用户是mysql里的用户,如果是系统用户限制就有效.请问用mysql用户的怎样限制?这时<global>下设置的TransferRate RETR 100也没有应用到<anonymous>下
<Anonymous ~ftp>
  User                          ftp
  Group                        ftp
请问这里的~ftp的ftp是指ftp用户还是ftp组

原文转自:http://www.ltesting.net