Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I was asked to build a ftp-server with bandwidth & storage quota in a Linux environment for a medium size company.
- Approx 100 users.
- Storage located locally and partially on a NAS.
- Storage quota per user or user\group
- In addition to the disk-quota, one group of external users will need to be limited by monthly band-weight usage.
The storage and band-weight quota's are essential in this setup.
Sounds not to hard if you work with Windows, however i'm having a hard time to do the same in Linux.
I would be more then grateful if someone could point me in the right direction ?
I did read all the pure-ftpd documentation to find a few big disadvantages:
- Virtual file quotas instead of kernel quotas, (easy to fool, and not very accurate)
- And most importantly i couldn't find a bandwidth quota option like i asked above. (only bandwidth throttling)
Hopefully anyone else has a more fitting solution ?
Having used the 3 more common ftp servers (vsftpd, proftpd and pure-ftpd), I can only see pure-ftpd having the features you want.
If you don't like the "virtual files" quota, you can use quotas in filesystem.
Regarding bandwidth, I think you misread its features. Except bandwidth throttling, there is also plain bandwidth management.
Quoting from pure-ftpd documentation:
Quote:
- '-T <bandwidth>' and '-t <bandwidth>': Enable bandwidth limitation (see
below) . <bandwidth> is specified in kilobytes/seconds. To set up separate
upload/download bandwidth, the [<upload>]:[<download>] syntax is supported.
Thanks for the reply again, sorry for the late follow-up, i was very busy with a few other projects, however now it's back to the FTP-setup.
With your hint from the previous post i managed to figure out the file-quota system, and am using the native file-system quota.
However the bandwidth quota is still a problem. After re-reading the documentation i cannot figure out a way to do this. What i would need is the following:
For example:
Group(or user)-X would receive a 100GB file storage quota, however for bandwidth this group or user would be allowed to use a maximum of 200GB per month.
What i have read so far in any of the documentation is that i can only limit the max-speed per user but not the max used bandwidth..
What i have read so far in any of the documentation is that i can only limit the max-speed per user but not the max used bandwidth..
Maybe i'm still reading it wrongly ?
No you're reading right but you have the wrong bandwidth meaning. Bandwidth actually is the upload/download speed you want to reserve for your client(s) based on the total speed of your connection.
There is no such thing as "bandwidth quota" the way you describe it and surely the normal disk quota cannot be calculated on a per month basis
What you can do, is to take advantage of the pure-uploadscript feature and create a script to calculate the monthly uploaded files size and cut your users out once they reached the limit you want.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.