[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tricky quota question
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: Tricky quota question
- From: Andrew Shugg <andrew_(_at_)_neep_(_dot_)_com_(_dot_)_au>
- Date: Tue, 21 Aug 2001 02:12:47 +0800
- Cc: Lars Hansson <lars-openbsd-misc_(_at_)_unet_(_dot_)_net_(_dot_)_ph>
- Mail-followup-to: misc_(_at_)_openbsd_(_dot_)_org, Lars Hansson <lars-openbsd-misc_(_at_)_unet_(_dot_)_net_(_dot_)_ph>
Quoth Lars Hansson:
> I need to implement some kind of quotas with mod_dav. Since mod_dav
> doesnt have any built-in quota support I figure I have to do it the
> filesystem way. Somehow. mod_dav needs the directories to be owned
> by the webserver user (www) so user quota support is out. Is it
> possible to use something like a union or null filesystem for this? I
> basicly need one filesystem, with quota support, for each directory
> handled by mod_dav. Or, I guess, it could be done with group quotas
> since mod_dav doesnt care about the group ownership (as far as i can
> tell). Anyone tried something like this? Right now I wish there was
> such a thing as "Directory Quotas" or something...
The mod_dav author has this to say on the problem:
Not much can be done on this one. Possibly some kind of user quota
thing, but... eesh. For now, I'm going to say, "if they're authorized
to PUT to the DAV server, then they should be responsible for how much
data they store."
You might attempt a poor-man's quota system by monitoring the 'du' total
of each virtual user's directory every hour or something, and sending an
email or some other form of alert when a high-water mark is reached.
Andrew Shugg <andrew_(_at_)_neep_(_dot_)_com_(_dot_)_au> http://www.neep.com.au/
"Just remember, Mr Fawlty, there's always someone worse off than yourself."
"Is there? Well I'd like to meet him. I could do with a good laugh."