|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have virtual hosting in my apache system so that each user gets a directory in the form of www.domainname.com and inside has his/her website.
Is there any way to have quotas on these directories without using the linux kernel quota system which monitors users and not directories ? Any ideas how I can implement a quota system without recurring to having unix users for my users ? Thanks. |
|
#2
|
|||
|
|||
|
Write a script and do du -sH and run it from cron. Lock the account by chmod'ing the directory to the appropriate permission if you need hard quota. Anyhow, this method is possible but really not the right approach. You really should implement kernel quota.
|
|
#3
|
||||
|
||||
|
Hi,
How can I set a quotum at a certain directory which applies for all users (even root). For example, I want a certain directory to be less then 50 mb and I set a quotum at 50 mb. It doesn't matter how, but it isn't a one time job so it should be easy or it should be automated by a script. Thanks, Bizzk |
|
#4
|
|||
|
|||
|
If you find any way to solve this problem (apart from using du in a cron ) let me know please. Thanks!
|
|
#5
|
|||
|
|||
|
>> If you find any way to solve this problem (apart from using du in a cron )
Really, if you don't want to use kernel quota, you just can't get away from not using du or other scripting language that implement du. It's not too difficult to write such script at all. Just du the appropraite directories and when a particular soft quota is reached, send the user an email and remind him his account is currently over the quota or so. Just run this script per minute from cron. |
|
#6
|
||||
|
||||
|
And how does the kernel quota thing work?
|
|
#7
|
|||
|
|||
|
>> And how does the kernel quota thing work?
Please RTFM of quota. |
|
#8
|
||||
|
||||
|
I am sorry, I am not the kind of person who asks stuff which is well documented. I searched for it in my Linux books but I couldn't find anything about it.
Where can I find an online manual? Please give me a link, meanwhile a will take a search on google/the linux documentation project site. Bizzk |
|
#9
|
|||
|
|||
|
Not trying to be rude by saying RTFM. Yes, search google about quota (just quota). Once you know how quota works, implementing quota to Apache is plain easy. No Apache specific is needed. Really, find out how quota works.
|
|
#10
|
||||
|
||||
|
I will do that.
Bizzk |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Virtual Hosting Quota |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|