[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apache/php quota prob



Jochen Kaechelin wrote:

Am Mittwoch 02 März 2005 16:50 schrieb Walhalla:
any other idea to solve this quota-prob? any idea how hosters do
this? i can't believe they di nothing? so, i could f.e. create
pdf's or pics until disk / partition is full?

take a look at pureftpd.org...

The syntax is:

pure-quotacheck -u username/uid -d home directory [-g group/gid]

For instance, if you want to summarize usage for the /home/ftpusers/john directory, whoose files are owned by the "ftpusers" system account, just run:

pure-quotacheck -u ftpusers -d /home/ftpusers/john

You can run pure-quotacheck whenever you want, even when ".ftpquota" files are already there. This is even a good idea to run this for all users in crontab, so that stored quotas are always exact, even if something went wrong (server bug, filesystem corruption, savagely killed server, etc) .
It's soooooo easy to fool that kind of system. Simply do a PHP script that will write let's say 10 files of 10 megabytes each, in the current directory. Then you go in that directory with any ftp client, and remove them. You'll get extra space for uploading !!!

By the way, is there a way to do DIRECTORY based quota (and not UID/GID quota)?

Thomas

http://www.gplhost.com
GPLHost:>_ Opensource hosting worldwide
Webspaces featuring GPL control panel
Locations in Florida and Singapore




Reply to: