On Tue, 11 Apr 2006, Frank Bax wrote: > I'm trying to follow along with FAQ 10.11 and it just doesn't seem to work > right for me. > > $ grep quota /etc/fstab > /dev/wd0g /var ffs rw,nodev,nosuid,userquota,groupquota 1 2 > > $ man edquota | grep -A1 one.second > should be imposed. Setting a grace period to one second indicates that > no grace period should be granted. > > $ sudo edquota -t -u > Time units may be: days, hours, minutes, or seconds > Grace period before enforcing soft limits for users: > /var: block grace period: 1 second, file grace period: 0 days > > $ sudo reboot /* The FAQ mentions "quotaon -a", but it seems a reboot is > required to create the quota files expected by quotaon */ > > $ sudo quota clgw > Disk quotas for user clgw (uid 1002): > Filesystem blocks quota limit grace files quota limit grace > /var 3552 4096 4096 1 0 0 > > > $ cat 700K.txt | mail clgw > > $ sudo quota clgw > Disk quotas for user clgw (uid 1002): > Filesystem blocks quota limit grace files quota limit grace > /var 4256* 4096 4096 7days 1 0 0 > > > OpenBSD 3.7 (from cdrom). 3.9 has been ordered. > > Q1) Is there a way to create quota files without reboot?
Yes, run quotacheck -a. This should preferably be done before moving to multi-user, or at least on a fs without activity. > Q2) Why is grace still reported as '7 days' instead of '1 second'? No idea. Maybe this thas something to do with the fact that the actual delivery got done by root, see below. > Q3) Why did mail get delivered? mail.local runs as root, and as such quota checking is not enforced.. I have a diff to solve that, which I'm running on a couple of mail servers. I posted it to tech@ a year ago or so, but due to lack of testing it didn't got committed. Tell me if you're interested. -Otto