Virtual Hosting With PureFTPd And MySQL quota problem

Discussion in 'Server Operation' started by GaulHahn, Feb 26, 2007.

  1. GaulHahn

    GaulHahn New Member

    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.
     
  2. falko

    falko Super Moderator

    I wrote the tutorial for Debian Sarge. I don't know if Ubuntu's pureftpd-mysql package supports quota... :confused:
     
  3. GaulHahn

    GaulHahn New Member

    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.

    :)
     
  4. orvils

    orvils New Member

    How to guard in this case against user deleting .ftpquota file and gaining unlimited disk space?
     

Share This Page