Is there any software like it?
it just like disk quota ,but not just this, it also can based on directoy quota.
|
What specifically is your question?
|
Look at the virtual file system section... maybe that will do what you want..
http://souptonuts.sourceforge.net/quota_tutorial.html |
Quote:
i just want: directory quota ,not user disk quota. :p |
Quote:
|
Quote:
Code:
man quota |
Quote:
|
try to put your requirements using an example, that might help us in understanding what u want
Jay |
Quote:
i have two site: www.test1.com /home/guest/site/test1.com/ www.test2.com /home/guest/site/test2.com/ i want that /home/guest/site/test1.com/ has 20M max size, and /home/guest/site/test2.com/ has 40M max size but i do not want disk quota with a system user or group, i need directory quota on linux. ser-u and proftpd has directory quota,but only for itself,not for system. |
Making each of those a virtual filesystem and allowing everyone access I think would meet the requirements.. but if you don't agree that's a workable solution, best of luck to ya.
|
Quote:
|
a new trouble, when i have many sites. it is not easy to manage, and it is slowly.
|
There may be some tools out there for that. You might want to start searching on sourceforge & freshmeat.
Alternatively, you could try implementing this yourself. Using the "du" command, it's fairly easy to derive the total size of a directory. If this exceeds a certain quotum, then you could take additional action like sending e-mail warnings to you/administrators, or disabling write access to the website directories (ie via directory permissions). Put all that into a script and make it run, let's say once every 5 minutes via cron. |
Quote:
|
As you reject the virtual directory solution which seems to be the only one available with Linux, you may want to have a look at Solaris ZFS which allows easy to manage quotas.
|
All times are GMT -5. The time now is 06:56 PM. |