quotas for folders?
Hey Guys,
I have a question, did some googling didnt help much! We have a system where every user account gets his/her own www.site.com/~username and their ftp directory to store stuff. How do I enable quotas and limit their directory stuff to 10 mb? As in when a user tried to upload stuff in his directory like a file more than 10mb he must be stopped. Please assist. Thanks RJ |
Have a look at the quota package (which contains tools to manage the quota limits). The quota option is typically already enabled in the kernel.
There are howtos at The Linux Documentation Project and at the YoLinux site. |
Quote:
install the quota package. Code:
yum install quota Code:
mount -o remount,usrquota partition turn quotas on. Code:
quotaon -a Code:
edquota -u user or Code:
setquota -u user Code:
requota -a Code:
quota -u user anything else u wanna know, just ask .... |
oh i forgot 1 bit...
after you turn on quotas, and before you set quotas for any user, run Code:
quotacheck -avug |
All times are GMT -5. The time now is 06:13 PM. |