proftpd个人用户设置问题

由 大熊宝宝 在 12-05-2002 21:53 发表:

proftpd个人用户设置问题

proftpd如果我限制下载速度和上传速度 那对所有的用户都这样 有什么办法可以只限制某一个用户吗 我试图照着匿名的那段写 但不行 谁有办法


请兄弟们正确发贴,把问题发到相关版块 发贴标题请简明扼要 谢谢大家配合.

新会员发贴前请学会搜索论坛 有可能你的问题已经有答案了


由 n0fe@r 在 12-06-2002 11:53 发表:


我就是写在anonymous栏可以啊

#UltraPC FTP Server configuration

#Author: RexHsu

  1<[email protected]>   
  2  
  3  
  4  
  5# basic settings   
  6  
  7ServerName "UltraPC FTP Service"   
  8  
  9ServerType standalone   
 10  
 11ServerAdmin [email protected] #for quota   
 12  
 13DefaultServer on   
 14  
 15UseReverseDNS off   
 16  
 17IdentLookups off   
 18  
 19Port 2121   
 20  
 21PassivePorts 49152 65534   
 22  
 23Umask 022   
 24  
 25MaxInstances 20 #prevent from D.O.S attack   
 26  
 27User nobody   
 28  
 29Group ftpgroup   
 30  
 31  
 32  
 33# timeout settings   
 34  
 35TimeoutStalled 3600   
 36  
 37TimeoutLogin 120   
 38  
 39TimeoutIdle 600   
 40  
 41TimeoutNoTransfer 900   
 42  
 43  
 44  
 45# for security purpose   
 46  
 47DefaultRoot ~ #limit the users in their homes   
 48  
 49RequireValidShell yes   
 50  
 51MaxLoginAttempts 3   
 52  
 53PathDenyFilter "(\\.htaccess)|(\\.ftpaccess)$"   
 54  
 55#AllowFilter ".*/[a-zA-Z0-9]+$"   
 56  
 57  
 58  
 59#connection limitations   
 60  
 61MaxClientsPerHost 1 #everyone has only 1 session   
 62  
 63#MaxClientsPerUser 10 #every account has 10 connections limita   
 64  
 65tion   
 66  
 67  
 68  
 69# Log settings   
 70  
 71SystemLog /usr/local/var/proftpd/proftpd.log   
 72  
 73TransferLog /usr/local/var/proftpd/xferlog   
 74  
 75  
 76  
 77# Quota Settings (Global)   
 78  
 79QuotaEngine on   
 80  
 81QuotaLimitTable file:/usr/local/proftpd/ftpquota.limittab   
 82  
 83QuotaTallyTable file:/usr/local/proftpd/ftpquota.tallytab   
 84  
 85QuotaDisplayUnits Kb   
 86  
 87QuotaShowQuotas On #response to "SITE QUOTA" command   
 88  
 89  
 90  
 91# Normally, we want files to be overwriteable.   
 92  
 93<directory></directory>   
 94  
 95AllowOverwrite on   
 96  
 97
 98<anonymous anonymous="" ftp="">   
 99  
100User anonymous   
101  
102Group ftpgroup   
103  
104RequireValidShell off   
105  
106AnonRequirePassword off #needn't correct shell password to login   
107  
108  
109  
110# We want clients to be able to login with "anonymous"   
111  
112#UserAlias anonymous guest   
113  
114  
115  
116# connection limitations   
117  
118MaxClients 10 "Sorry, max %m clients has reached -- try aga   
119  
120in later"   
121  
122RateReadBPS 20000 #limit download speed at 20k/s   
123  
124RateReadFreeBytes 1000000 #unlimit dl speed if file smaller than 1</anonymous></[email protected]>
Published At
Categories with 服务器类
Tagged with
comments powered by Disqus