From owner-freebsd-questions Tue Oct 19 16: 2:35 1999 Delivered-To: freebsd-questions@freebsd.org Received: from lvdi.net (Mta.lvdi.net [216.24.138.2]) by hub.freebsd.org (Postfix) with SMTP id EE80017FF1 for ; Tue, 19 Oct 1999 16:02:26 -0700 (PDT) (envelope-from notme@lvdi.net) Received: from lvdi.net ([216.24.141.14]) by 216.24.138.2127.0.0.1 ; Tue, 19 Oct 1999 15:56:08 2000 PDT Message-ID: <380CFAB6.4A9D2FC@lvdi.net> Date: Tue, 19 Oct 1999 16:11:50 -0700 From: me++ X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: Christopher Michaels Cc: freebsd-questions@freebsd.org Subject: Re: quota not working properly References: <6C37EE640B78D2118D2F00A0C90FCB4401105D0D@site2s1> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Yeah, it works correctly now! Thanks for all the help! Frankie Christopher Michaels wrote: > Well, it should effect /usr/home, it should effect everything on the /usr > partition. > > Try running quotacheck -v and see if that straightens it out. > > -Chris > > > -----Original Message----- > > From: me++ [SMTP:notme@lvdi.net] > > Sent: Monday, October 18, 1999 6:49 PM > > To: Christopher Michaels > > Cc: freebsd-questions@freebsd.org > > Subject: Re: quota not working properly > > > > Ended up it is the space. When I read it from the page, > > I though there was one... :) > > But now there seems to be another problem. I have > > quota installed for /usr, does that effect the user's > > quota for /usr/home? (I was expecting it to, but it didn't > > appear so when I set it up on my server.) > > When I do a quota -v username as root, I can see the limit, > > but it doesn't show me the amount used even after exceeding > > the quota limit. > > > > Once again, thanks a lot to all of you who helped! :) > > > > Frankie > > > > Christopher Michaels wrote: > > > > > Just for the sake of argument, lets go through the steps 1 by 1 and > > makes > > > sure we're at the same place. > > > > > > 1. Compiled a new kernel and installed it with "options QUOTA" in the > > config > > > file? > > > 2. Added "enable_quotas=YES" in /etc/rc.conf? > > > 3. Added "check_quotas=YES" in /etc/rc.conf? > > > 4. Added userquota and/or groupqouta to the device line in /etc/fstab? > > ( I > > > see you did that but I'm going through all the steps. ) > > > > > > AHH, I see one problem. Your fstab. Don't put spaces between > > the > > > options and I'll bet that's your problem. > > > > > > # Device Mountpoint Fstype Options Dump > > > Pass# > > > /dev/wd0s1b none swap sw > > 0 > > > 0 > > > /dev/wd0s1a / ufs rw > > > 1 1 > > > /dev/wd0s1e /usr ufs > > > rw,userquota,groupquota 2 2 > > > /dev/wcd0c /cdrom cd9660 ro,noauto 0 > > > 0 > > > proc /proc procfs rw > > 0 > > > 0 > > > > > > If this is something stupid your mailer did, than I'll move on. > > > > > > 5. Restart. > > > > > > Now, if the above 5 steps aren't working try the following (as root) > > > quotaon /usr > > > quotacheck -v /usr > > > > > > If it still doesn't work, report back. > > > > > > BTW, the quota.user and quota.group files are not in "/root" they are in > > the > > > ROOT of the partition where the quotas are enabled. In your case /usr > > > directory is the root of that partition. > > > > > > Good luck, > > > -Chris > > > > -----Original Message----- > > > > From: me++ [SMTP:notme@lvdi.net] > > > > Sent: Sunday, October 17, 1999 7:23 PM > > > > To: Christopher Michaels > > > > Cc: freebsd-questions@freebsd.org > > > > Subject: Re: quota not working properly > > > > > > > > Thanks for the reply! > > > > Actually, I have rebooted after editing /etc/rc.conf and > > > > /etc/fstab. I even checked the startup message and > > > > confirmed that quota was turned on. When I do edquota > > > > as the web page said, it gave me a blank quota file, for > > > > example: > > > > edquota -u tester > > > > > > > > Quotas for user tester: > > > > > > > > > > > > I have tried tying in the settings (invalid or valid), and > > > > save and exit, but when I do quota -v tester, the same > > > > message popped up: > > > > > > > > Disk quotas for user tester (uid 1001): none > > > > > > > > I have also tried rebooting right after edquota, and same > > > > time happen. When I go back into edquota, the settings > > > > are all gone regardless of rebooting. I have tried touch > > > > quota.user and quota.group in /root, /usr/ since I have seen > > > > the man page talking about it. (Actually, it just says that > > > > the quota.user and quota.group are files that are supposed > > > > to be in /root) > > > > > > > > I am sorta running out of ideas on things I could do. > > > > Thank you in advance for any help! > > > > > > > > > > > > > > > > Frankie > > > > Here's my /etc/fstab > > > > > > > > # Device Mountpoint Fstype Options Dump > > Pass# > > > > /dev/wd0s1b none swap sw 0 0 > > > > /dev/wd0s1a / ufs rw 1 > > 1 > > > > /dev/wd0s1e /usr ufs rw, userquota, groupquota 2 > > > > 2 > > > > /dev/wcd0c /cdrom cd9660 ro, noauto 0 0 > > > > proc /proc procfs rw 0 > > > > 0 > > > > > > > > I am running FreeBSD 3.2-Release > > > > > > > > Christopher Michaels wrote: > > > > > > > > > To quote the web page. > > > > > > > > > > "At this point you should reboot your system with your new kernel. > > > > /etc/rc > > > > > will automatically run the appropriate commands to create the > > initial > > > > quota > > > > > files for all of the quotas you enabled in /etc/fstab, so there is > > no > > > > need > > > > > to manually create any zero length quota files. " > > > > > > > > > > You have not does this. You either rebooted before editing the > > > > /etc/rc.conf > > > > > and/or /etc/fstab file, or you just haven't rebooted at all. :P > > > > > > > > > > -Chris > > > > > > > > > > > -----Original Message----- > > > > > > From: Frankie Li [SMTP:notme@lvdi.net] > > > > > > Sent: Friday, October 15, 1999 8:28 PM > > > > > > To: freebsd-questions@freebsd.org > > > > > > Subject: quota not working properly > > > > > > > > > > > > Hi, > > > > > > I have recompiled the kernel according to > > > > > > the tutorial in www.freebsd.org to enable > > > > > > quota, and also edited rc.conf as described. > > > > > > However, when I edit /etc/fstab, and then > > > > > > do edquota , quota -v shows > > > > > > that the user's quota is none. > > > > > > i.e: > > > > > > Disk quotas for user test (uid 1000): none > > > > > > > > > > > > Is the tutorial in www.freebsd.org outdated? > > > > > > > > > > > > I have a 486/33 with 2 hard drives, (250 > > > > > > MB on one and 200 on the other), with > > > > > > 16MB of RAM, and FreeBSD 3.2-Release. > > > > > > > > > > > > > > > > > > Thank you in advance for any help! > > > > > > Please e-mail me if any additional information > > > > > > is required. > > > > > > > > > > > > Frankie > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message