Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I want to be able to limit an account to download a total of X GB, then suspend the account. I'm currently using pure-ftpd w/ mysql backend and can't figure out a way to handle this. Ratio seems session-based so it's useless. Logging is also disabled for privacy and security reasons, so parsing logs to manually calculate is also not an option.

Is there a way to achieve this? What daemon can support it?

Edit: Thanks, but no, I want to have bandwidth quota, not filesystem quotas. pure-ftpd also has support for filesystem quotas but that's not it. I want to limit bandwidth usage through FTP, so people can only download a certain amount of data, then be cut off. MySQL just handles the users, limits, etc.. instead of the passwd database.

share|improve this question

migrated from superuser.com Jun 20 '11 at 8:19

This question came from our site for computer enthusiasts and power users.

1 Answer 1

I'm not quite sure to understand, but you have a FTP with mysql, and you want to add quota per account? What do you use to manage the account? LDAP? Mysql?

I found this some time ago, not sure it's what you want but still, might help you!

Hope this will help you.

share|improve this answer
    
Thanks, but no, I want to have bandwidth quota, not filesystem quotas. pure-ftpd also has support for filesystem quotas but that's not it. I want to limit bandwidth usage through FTP, so people can only download a certain amount of data, then be cut off. MySQL just handles the users, limits, etc.. instead of the passwd database. –  Mickey Mouse Jun 20 '11 at 10:00
    
Bandwidth quota is easy, but you'll need a third party server. You'll have to do a squid server with sarg, controlling bandwidth quota, and blocking user. –  Anarko_Bizounours Jun 20 '11 at 10:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.