Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
try to put your requirements using an example, that might help us in understanding what u want
Jay
example:
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.
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.
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.
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.
Thanks, I had been searching it. "du" command is not a good idea. I am looking for a "directory quota" software, it is just like disk quota. And it should be easily managed with congfigure file.
Last edited by zhuomingliang; 10-28-2006 at 03:56 AM.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.