Virtual Hosting With PureFTPd And MySQL quota problem
I followed the howto for Virtual Hosting With PureFTPd And MySQL (Incl. Quota And Bandwidth Management) and installed it on Ubuntu 6.06.1 but i'm having problems getting the disk space quota working.
When a user uploads files or deletes them the quota limit shows no space is being used but there is definately space being used within the directory.
The messages displayed from the ftp client are like this:
226-0 Kbytes used (0%) - authorized: 51200 Kb
The quota is not enforced either so a user can go over the 50 MB limit.
I've searched for the answer but haven't had any luck.
I wrote the tutorial for Debian Sarge. I don't know if Ubuntu's pureftpd-mysql package supports quota... :confused:
I worked it out.
I needed to create a .ftpquota file in the domain directory as per the database and chown it to the user that pureftpd runs as (www-data in in my case).
Then you just run:
How to guard in this case against user deleting .ftpquota file and gaining unlimited disk space?
|All times are GMT +2. The time now is 14:27.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.