Hi, 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...
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: Code: root@linuxbox:~# pure-quotacheck -u 33 -g 33 -d /home/www/domainname.com To update the existing directories.