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
This is a multi-part message in MIME format.

------=_NextPart_000_012A_01C21E29.45E31E80
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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. =20

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



------=_NextPart_000_012A_01C21E29.45E31E80
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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

------=_NextPart_000_012A_01C21E29.45E31E80--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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