Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jun 2002 22:23:33 +0100
From:      "Lee" <lee@unassemble.co.uk>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   Quota in FreeBSD 4.6, Apache 1.3 & Proftpd
Message-ID:  <012d01c21e20$e438a720$6400a8c0@Administrator>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hello,

I am not sure if I am posting this to the correct place, but I am pretty certain that it is an OS related question rather than the applications.

This is purely a theorical situation but it would be something I would like to try in the future.

Say I have the above configuration running on a server as in the subject.  What I wish to achive is to only allow users to use an amount of disk space (quota) that they have paid for.

Now here is the problem,  I have read the quota documents form that handbook and man pages, the require you to have a different system account for each quota you wish to enable.  

Apache runs as the same user (ok I know you can use SUEXEC) regardless of the web site being accessed.

Proftpd has quota support enabled, but it seems a little unfinished and very little documents are available.  Also it appears to be based primarily on number of uploads/downloads rather than used disk space.

To top all this off I would prefer users to be virtual, i.e. no shell accounts at all, possibly with SQL database records instead.  I already have this sort of setup working for my e-mail using VPopMail & Qmail.  Idealy I am looking to have my whole setup based on databases to allow for a web-based managment system.

What I have though about doing is writing a shell or perl script that checks the used web space at regular intervals and logs it for another program to analysis, possibly for billing purposes.

Can anyone suggest an alternative solution and possibly different programs to the problem.

Regards

Lee



[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2716.2200" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I am not sure if I am posting this to the correct 
place, but I am pretty certain that it is an OS related question rather than the 
applications.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>This is purely a theorical situation but it would 
be something I would like to try in the future.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Say I have the above configuration running on a 
server as in the subject.&nbsp; What I wish to achive is to only allow users to 
use an amount of disk space (quota) that they have paid for.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Now here is the problem,&nbsp; I have read the 
quota documents form that handbook and man pages, the require you to have a 
different system account for each quota you wish to enable.&nbsp; </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Apache runs as the same user (ok I know you can use 
SUEXEC) regardless of the web site being accessed.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Proftpd has quota support enabled, but it seems a 
little unfinished and very little documents are available.&nbsp; Also it appears 
to be based primarily on number of uploads/downloads rather than used disk 
space.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>To top all this off I would prefer users to be 
virtual, i.e. no shell accounts at all, possibly with SQL database records 
instead.&nbsp; I already have this sort of setup working for my e-mail using 
VPopMail &amp; Qmail.&nbsp; Idealy I am looking to have my whole setup based on 
databases to allow for a web-based managment system.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>What I have though about doing is writing a shell 
or perl script that checks the used web space at regular intervals and logs it 
for another program to analysis, possibly for billing purposes.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Can anyone suggest an alternative&nbsp;solution and 
possibly different programs to the problem.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Regards</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Lee</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?012d01c21e20$e438a720$6400a8c0>