LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Is there any software like it? (https://www.linuxquestions.org/questions/linux-software-2/is-there-any-software-like-it-495026/)

zhuomingliang 10-24-2006 12:53 AM

Is there any software like it?
 
it just like disk quota ,but not just this, it also can based on directoy quota.

J.W. 10-24-2006 09:51 PM

What specifically is your question?

farslayer 10-24-2006 10:48 PM

Look at the virtual file system section... maybe that will do what you want..

http://souptonuts.sourceforge.net/quota_tutorial.html

zhuomingliang 10-24-2006 11:31 PM

Quote:

Originally Posted by J.W.
What specifically is your question?

sorry for my english.
i just want: directory quota ,not user disk quota. :p

zhuomingliang 10-24-2006 11:32 PM

Quote:

Originally Posted by farslayer
Look at the virtual file system section... maybe that will do what you want..

http://souptonuts.sourceforge.net/quota_tutorial.html

thanks ,but it not.:tisk:

J.W. 10-25-2006 12:03 AM

Quote:

Originally Posted by zhuomingliang
sorry for my english.

No apologies necessary :) Maybe the "quota" command might give you what you're looking for. For more info:
Code:

man quota
Good luck with it

zhuomingliang 10-25-2006 02:51 AM

Quote:

Originally Posted by J.W.
No apologies necessary :) Maybe the "quota" command might give you what you're looking for. For more info:
Code:

man quota
Good luck with it

thanks,but it can't be directory quota without system user and group.

jayakrishnan 10-25-2006 04:09 AM

try to put your requirements using an example, that might help us in understanding what u want

Jay

zhuomingliang 10-25-2006 06:28 AM

Quote:

Originally Posted by jayakrishnan
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.

farslayer 10-25-2006 08:31 AM

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.

zhuomingliang 10-25-2006 09:21 AM

Quote:

Originally Posted by farslayer
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.

thanks, it is a good idea. i will try it. :p

zhuomingliang 10-26-2006 12:48 AM

a new trouble, when i have many sites. it is not easy to manage, and it is slowly.

timmeke 10-26-2006 05:46 AM

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.

zhuomingliang 10-28-2006 03:53 AM

Quote:

Originally Posted by timmeke
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.:)

jlliagre 10-28-2006 05:39 AM

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.