I setup all of my domains on ISPCONFIG. The original issue I had fixed itself, but there is a new one that I noticed lingering. Each domain has just one FTP user account setup. Each is set to -1 MB. However, when I try and upload to any website, it says the disk space is exceeded. BUT, the websites are all allocated 10GB and are using less than 900MB each. Code: R] 230-User derekmasonicwiki has group access to: client1 sshusers [R] 230-OK. Current restricted directory is / [R] 230 0 Kbytes used (0%) - authorized: 1024000 Kb [R] SYST [R] 215 UNIX Type: L8 [R] FEAT [R] 211-Extensions supported: [R] EPRT [R] IDLE [R] MDTM [R] SIZE [R] REST STREAM [R] MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*; [R] MLSD [R] ESTP [R] PASV [R] EPSV [R] SPSV [R] ESTA [R] AUTH TLS [R] PBSZ [R] PROT [R] 211 End. [R] MKD /web/extensions/DismissableSiteNotice [R] 550-Can't create directory: Disk quota exceeded [R] 550 0 Kbytes used (0%) - authorized: 1024000 Kb [R] CWD /web/extensions/DismissableSiteNotice [R] 550 Can't change directory to /web/extensions/DismissableSiteNotice: No such file or directory [R] MKD /web/extensions/FCKeditor [R] 550-Can't create directory: Disk quota exceeded [R] 550 0 Kbytes used (0%) - authorized: 1024000 Kb [R] CWD /web/extensions/FCKeditor [R] 550 Can't change directory to /web/extensions/FCKeditor: No such file or directory [R] MKD /web/extensions/Gadgets [R] 550-Can't create directory: Disk quota exceeded [R] 550 0 Kbytes used (0%) - authorized: 1024000 Kb [R] CWD /web/extensions/Gadgets [R] 550 Can't change directory to /web/extensions/Gadgets: No such file or directory [R] MKD /web/extensions/ParserFunctions [R] 550-Can't create directory: Disk quota exceeded [R] 550 0 Kbytes used (0%) - authorized: 1024000 Kb How do I set it up so that these users have full control over the domain's /web/ directory and that their quota goes alongside that website's quota? Also, in the website's document root, there is an .ftpquota file that's blank. Is that supposed to be there? Maybe it's locking it up? I followed the Perfect Setup Guide for Debian 5. Code: my:/home/dingle# cat /etc/fstab # /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 /dev/sda2 / ext3 errors=remount-ro,usrquota,grpquota 0 1 /dev/sdb1 /backup ext3 defaults 0 2 /dev/sda1 none swap sw 0 0 my:/home/dingle# my:/home/dingle# quotacheck -avugm Code: my:/# quotacheck -avugm quotacheck: Your kernel probably supports journaled quota but you are not using it. Consider switching to journaled quota to avoid running quotacheck after an unclean shutdown. quotacheck: Scanning /dev/sda2 [/] done quotacheck: Checked 18423 directories and 204573 files my:/# Code: drwxr-xr-x 24 root root 4.0K 2010-04-15 21:00 . drwxr-xr-x 24 root root 4.0K 2010-04-15 21:00 .. drwxr-xr-x 6 root root 4.0K 2010-04-15 18:07 backup drwxr-xr-x 2 root root 4.0K 2010-04-15 07:12 bin drwxr-xr-x 3 root root 4.0K 2010-04-14 03:46 boot drwxr-xr-x 14 root root 3.4K 2010-04-15 11:40 dev drwxr-xr-x 3 root root 4.0K 2010-04-14 03:45 emul drwxr-xr-x 97 root root 4.0K 2010-04-15 18:09 etc drwxr-xr-x 4 root root 4.0K 2010-04-15 07:20 home lrwxrwxrwx 1 root root 30 2010-04-14 03:21 initrd.img -> boot/initrd.img-2.6.26-2-amd64 drwxr-xr-x 11 root root 12K 2010-04-14 11:07 lib lrwxrwxrwx 1 root root 20 2010-04-14 03:45 lib32 -> /emul/ia32-linux/lib lrwxrwxrwx 1 root root 4 2010-04-14 03:19 lib64 -> /lib drwx------ 2 root root 16K 2010-04-14 03:16 lost+found drwxr-xr-x 2 root root 4.0K 2010-04-14 03:18 media drwxr-xr-x 2 root root 4.0K 2010-01-24 22:26 mnt -rw-r--r-- 1 root root 11K 2010-03-12 10:52 ocsinstall.sh drwxr-xr-x 2 root root 4.0K 2010-04-14 03:19 opt dr-xr-xr-x 159 root root 0 2010-04-15 11:38 proc -rw------- 1 root root 2.5M 2010-04-15 21:01 quota.group -rw------- 1 root root 2.5M 2010-04-15 21:01 quota.user drwxr-xr-x 8 root root 4.0K 2010-04-15 12:20 root drwxr-xr-x 2 root root 4.0K 2010-04-14 11:32 sbin drwxr-xr-x 2 root root 4.0K 2008-09-16 03:22 selinux drwxr-xr-x 2 root root 4.0K 2010-04-14 03:19 srv drwxr-xr-x 2 root root 4.0K 2010-04-14 12:44 ssl drwxr-xr-x 11 root root 0 2010-04-15 11:38 sys drwxrwxrwt 9 root root 4.0K 2010-04-15 21:03 tmp drwxr-xr-x 11 root root 4.0K 2010-04-14 11:07 usr drwxr-xr-x 16 root root 4.0K 2010-04-14 13:31 var lrwxrwxrwx 1 root root 27 2010-04-14 03:21 vmlinuz -> boot/vmlinuz-2.6.26-2-amd64 -rw-r--r-- 1 root root 2.1K 2010-04-14 13:31 webmin-setup.out my:/#
You dont have to set a FTP quota at all, so change it back to -1. The quota of the website is limited by the qwebsite quota, which is a linux harddisk quota. The FTP quota is only needed if you have a lot of FTP users per site where every user shall be able to upload only a few megabytes. To see the quota limit for the qwbsite, use: reoquota -avug This file is not from ispconfig and I dont have this on one of my servers. I would try to remove it to see if it has any influence on the ftp daemon.
Every ftp user is set to -1 and it keeps saying they have exceeded their space. I did a du -hc on each web directory and none are using their total quota. Code: Block grace time: 7days; Inode grace time: 7days Block limits File limits User used soft hard grace used soft hard grace ---------------------------------------------------------------------- root -- 8920364 0 0 107811 0 0 daemon -- 92 0 0 12 0 0 bin -- 4 0 0 1 0 0 man -- 1532 0 0 73 0 0 www-data -- 155768 0 0 2014 0 0 nobody -- 4 0 0 1 0 0 libuuid -- 4 0 0 1 0 0 Debian-exim -- 28 0 0 8 0 0 statd -- 20 0 0 5 0 0 dingle -- 36 0 0 8 0 0 ntp -- 12 0 0 3 0 0 mysql -- 763648 0 0 1223 0 0 postfix -- 220 0 0 81 0 0 clamav -- 58608 0 0 12 0 0 amavis -- 2296 0 0 26 0 0 vmail -- 687292 0 0 10204 0 0 getmail -- 12 0 0 3 0 0 ispapps -- 12 0 0 3 0 0 ispconfig -- 24028 0 0 4607 0 0 web1 +- 2433076 2048000 2049024 6days 41969 0 0 web5 -- 1211628 2048000 2049024 3456 0 0 web7 -- 59740 1024000 1025024 3376 0 0 web8 -- 79852 2560000 2561024 2528 0 0 web9 -- 192 512000 513024 15 0 0 web10 -- 76 921600 922624 16 0 0 web11 -- 656 6144000 6145024 6 0 0 web12 -- 93892 512000 513024 11097 0 0 web13 -- 20 512000 513024 6 0 0 web14 -- 20 512000 513024 6 0 0 web17 -- 18308 409600 410624 425 0 0 web18 -- 24348 512000 513024 308 0 0 web19 -- 7672 460800 461824 170 0 0 web20 -- 64 512000 513024 18 0 0 web21 -- 60 0 0 17 0 0 forkup -- 722664 0 0 28457 0 0 web24 -- 68 102400 103424 19 0 0 derek -- 128440 0 0 2094 0 0 shawn -- 16 0 0 4 0 0 web25 -- 7172 1024000 1025024 67 0 0 #48 -- 110644 0 0 436 0 0 #501 -- 22336 0 0 2562 0 0 #507 -- 2040 0 0 57 0 0 #2010 -- 640 0 0 15 0 0 #5014 -- 0 819200 820224 0 0 0 #10038 -- 12532 0 0 204 0 0 #10080 -- 19860 0 0 2204 0 0 #10205 -- 15692 0 0 1247 0 0 *** Report for group quotas on device /dev/sda2 Block grace time: 7days; Inode grace time: 7days Block limits File limits Group used soft hard grace used soft hard grace ---------------------------------------------------------------------- root -- 2255784 0 0 107588 0 0 daemon -- 276 0 0 14 0 0 bin -- 892 0 0 229 0 0 adm -- 6656536 0 0 41 0 0 tty -- 24 0 0 15 0 0 disk -- 0 0 0 25 0 0 mail -- 160 0 0 7 0 0 kmem -- 0 0 0 3 0 0 audio -- 0 0 0 33 0 0 www-data -- 155796 0 0 2019 0 0 src -- 4 0 0 1 0 0 shadow -- 132 0 0 7 0 0 utmp -- 588 0 0 5 0 0 video -- 0 0 0 1 0 0 sasl -- 20 0 0 3 0 0 staff -- 2308 0 0 52 0 0 users -- 128440 0 0 2094 0 0 nogroup -- 4 0 0 1 0 0 libuuid -- 4 0 0 1 0 0 crontab -- 48 0 0 5 0 0 Debian-exim -- 48 0 0 7 0 0 mlocate -- 5684 0 0 2 0 0 ssh -- 104 0 0 1 0 0 sambashare -- 4 0 0 1 0 0 winbindd_priv -- 4 0 0 1 0 0 dingle -- 36 0 0 8 0 0 ntp -- 12 0 0 3 0 0 mysql -- 763632 0 0 1217 0 0 ssl-cert -- 8 0 0 2 0 0 postfix -- 204 0 0 72 0 0 postdrop -- 40 0 0 9 0 0 clamav -- 58516 0 0 8 0 0 amavis -- 2296 0 0 26 0 0 vmail -- 686776 0 0 10075 0 0 ispapps -- 12 0 0 3 0 0 ispconfig -- 24044 0 0 4612 0 0 client1 -- 3785288 0 0 51385 0 0 client3 -- 93932 0 0 11109 0 0 client4 -- 7172 0 0 67 0 0 client2 -- 50392 0 0 921 0 0 client5 -- 60 0 0 17 0 0 forkup -- 722660 0 0 28456 0 0 shawn -- 16 0 0 4 0 0 #48 -- 110644 0 0 436 0 0 #80 -- 22336 0 0 2562 0 0 #500 -- 4 0 0 1 0 0 #507 -- 2040 0 0 57 0 0 #2013 -- 636 0 0 14 0 0 #10025 -- 12532 0 0 204 0 0 #10059 -- 19860 0 0 2204 0 0 #10109 -- 15692 0 0 1247 0 0 my:/home/dingle# Web1 is showing a lot. BUT it should be fine. Code: 176M /var/www/clients/client1/web1/ 176M total my:/home/dingle# Deleting that .ftp file didn't do anything. It was blank anyway. This is a problem for almost all of the ftp accounts.
Okay the problem definitely is because the quota system is adding more to the total space used to certain domains. I changed web1's quota to 10GB and its FTP user can upload. However, du -ch shows only 176MB used. But, quota sees there is over 2.4GB used. Something doesn't add up. Code: my:/home/dingle# cat /etc/passwd |grep web1 web1:x:5004:5005::/var/www/clients/client1/web1:/bin/false Code: my:/home/dingle# du -hc /var/www/clients/client1/web1 ... 176M total my:/home/dingle# Code: my:/home/dingle# repquota -avug |grep web1 web1 -- 2433088 5120000 5121024 41970 0 0
Anyone have an idea why repquota is showing the web1 account having more data than is actually present within its directory tree???
quota is counting double I have the same problem. my quota counts more than it has as well. My setup: Ubuntu linux 10.04. /etc/fstab Code: /dev/md0 / ext4 errors=remount-ro,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0 1 Code: # mount /dev/md0 on / type ext4 (rw,errors=remount-ro,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0) Code: # repquota -avug | grep web19 web19 -- 106388 153600 154624 13507 0 0 Code: # du -hs /var/www/clients/client2/web19 50M /var/www/clients/client2/web19 Code: # quota web19 Disk quotas for user web19 (uid 5002): Filesystem blocks quota limit grace files quota limit grace /dev/md0 106388 153600 154624 13507 0 0 my repquota reports twice the size being used on my machine. Anybody knows why it is counting double?
I found that two of the website directories were owned by the same user. This caused a large uptick in disk usage calculations for the FTP account with problems.
Hi, this is not what i have. Just did a "find" on my file system for all files owned by web19. Only 50mb is used in the /var/www subdir. But still it thinks 105mb is used....
mail files, log files, etc...? Something that's either in the path or owned by the user that would amount to that? If I remember right, I found that web1 owned web11 mails (lots of space). That was one if not my real problem.
I'm using ISPconfig. So mail is owned by the vmail user. And not the user web19. Thereby it is strange it is exactly twice the amount of "du -hs". Could it has something to do with that i'm using raid1?