[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Quotas, grace time?



Hi all.
I have set grace limit in 1 second by `edquota -t`. As is told in manual:
"Setting a grace period to one second indicates that no grace period should
be granted".
--
Time units may be: days, hours, minutes, or seconds
Grace period before enforcing soft limits for users:
/var/mail: block grace period: 1 second, file grace period: 1 second
--

Now, i send mail with an attached files which exceed quotas:

root@ns# quota -v null_sy
Disk quotas for user null_sy (uid 1002):
     Filesystem  blocks   quota   limit   grace   files   quota   limit
grace
      /var/mail     856*    200     210   4days       1       0       0
root@ns#

As we could see grace is 4days :-\ What's wrong?
The task: to set up hard quotas on a mail box.

I have tried to do: soft = 0, hard = 200 - still nothing :)
After long tortures gluk has prompted the following variant:

quotaoff /var/mail
rm -rf /var/quotas/quota.user
touch /var/quotas/quota.user
edquota -u null_sy
edquota -t -u null_sy
quotaon /var/mail
quotacheck /var/mail

Has adjusted quotas:
Quotas for user null_sy:
/var/mail: blocks in use: 0, limits (soft = 200, hard = 200)
        inodes in use: 1, limits (soft = 0, hard = 0)

root@ns# quota -v null_sy
Disk quotas for user null_sy (uid 1002):
     Filesystem  blocks   quota   limit   grace   files   quota   limit
grace
      /var/mail    1712*    200     200    none       1       0       0
root@ns#

Also I have tried to set `soft` limits to 0. Grace really 'none' began:) But
quotas still won't work :) I

Wait for responses.

P.s. Sorry for my english.

--
%whois -R NULL-RIPN
PGP: http://null.magelan.ru/null.asc
Pager: +7 095 974-0003, #30369