On Tue, Jun 14, 2005 at 03:09:32PM +0200, Ari�n Huisken wrote: > Hi list, > > I have disk quotas running on a webserver where several clients have their > webspace. > > All is working fine, except when the client is using some CMS system have a > tool > to upload images through the webinterface. These files are owned by httpd > instead of the user, so its not counted by the quota system. > > It would be nice to have a quota set on the users home dir, ignoring the > ownership of the file or something similar. > > Any ideas?
Apart from implementing your own quota system I don't see. I've done this for a mail server, a Perl daemon monitors mail activity and updates MySQL-based quota data by running 'du -s' on the user's home directory on occasion (as seldom as possible, obviously). It then updates a DB map when the user is over quota, to prevent reception of further mail. Obviously, that doesn't quite fit the environment of a web server. OTOH, per-vhost user/group for Apache i.e. all requests to a particular virtual host run under a separate UID/GID is a common need and would address your problem if I get it right. Apache 2.0 was supposed to take care of this with the per-child MPM, however it is horribly broken and not maintained now (to my knowledge). A patch (called "hack" by its author) exists for Apache 1.3, which I use with success on our main hosting server: http://luxik.cdi.cz/~devik/apache/ Of course, this means you have to revert to Apache 1.3 and rebuild it from source code, then maintain it by yourself. Hope this helps somehow, _Alain_
_______________________________________________ tsl-discuss mailing list [email protected] http://lists.trustix.org/mailman/listinfo/tsl-discuss
