|
在proftpd中设置跟apche一样的虚拟用户来对个别用户进行限制 <br>下面是我虚拟主机用户student用户的代码 <br><Anonymous ~student> <br>User student <br>Group ftp <br>MaxClientsPerHost 1 "Sorry,This ftp only use one's IP connect!!" <br>AnonRequirePassword on <br>RateReadBPS 512000 #限制带宽 <br>RateReadFreeBytes 512000 <br>RateReadHardBPS on <br><Limit LOGIN /home/student/*> <br>Order allow,deny <br>Allow from 172.16.*.* #限制IP登陆范围 <br>Deny from all <br></Limit> <br><br><Limit READ> #/home/student可以读 <br>AllowAll <br></Limit> <br><br><Limit DELE> #不能删除 <br>DenyAll <br></Limit> <br><br><Limit RNFR> #不可更名 <br>DenyAll <br></Limit> <br><br><Limit MKD> #不可创造数据夹 <br>DenyAll <br></Limit> <br></Anonymous> |
|