在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>