HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Virtual Hosting With PureFTPd And MySQL quota problem (http://www.howtoforge.com/forums/showthread.php?t=10901)

GaulHahn 26th February 2007 05:20

Virtual Hosting With PureFTPd And MySQL quota problem
 
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.

falko 26th February 2007 14:02

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

GaulHahn 1st March 2007 10:22

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.

:)

orvils 29th July 2008 14:32

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 11:12.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.