PDA

View Full Version : Quota on mounted directory /var/www not working


radim_h
6th March 2008, 12:43
I have mounted directory /var/www from other physcial disk
/etc/fstab looks like:
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/sda3 / ext3 defaults,errors=remount-ro,usrquota,grpquota 0 1
/dev/sda1 /boot ext3 defaults 0 2
/dev/sdb1 /var/www ext3 defaults,usrquota,grpquota 0 2
/dev/sda2 none swap sw 0 0

i did also
touch /quota.user /quota.group
chmod 600 /quota.*
mount -o remount /
quotacheck -avugm
quotaon -avug

and

touch /var/www/quota.user /var/www/quota.group
chmod 600 /var/www/quota.*
mount -o remount /var/www/
quotacheck -avugm
quotaon -avug

But in this configuration Quotas in ISPconfig doesnt work, user can upload any data over limit set in ispconfig...

Does anyone know, how to get working Quota over limit in FTP
as when whole / is only on one drive
(message 522 Transfer aborted. Disk quota exceeded)

till
6th March 2008, 21:43
Please check with:

repquota -avug

if the quota is set correctly for the user. Which linux distribution do you use? On some distributions, the files are named aquota.user and aquota.group.

radim_h
7th March 2008, 12:51
I'm using Debian Etch 4.0 64bit

thanks for advice
i didn't realized that quota for web was set before quota installed on /var/www
:)