Linux Quota, как установить льготное время

1535
Pol Hallen

Мне нужно создать скрипт для установки квоты для моих виртуальных пользователей. Система квот отлично работает на моем тестовом сервере, но я не могу установить «льготное время»:

quotatool -u test001 -bq 100M -l '150 Mb' /home 

легко изменить время отсрочки, используя

edquota -t

но для упрощения я предпочитаю использовать quotatool, из man-страницы quotatool:

-t TIME Set the system-wide grace period to TIME. TIME consists of an optional  '-' or '+' character, a number, and optionally one of the following modifiers:  "seconds", "minutes", "hours", "days", "weeks", or "months". Unique  abbreviations (e.g. "s", "mo") are also accepted. The default is "seconds".  The argument should be preceded by -u|-g and -b|-i 

без опции -t, льготное время 6 дней, мне нужно поставить 10 дней по умолчанию

0
Так что просто используйте опцию `-t` с quotatool; в чем проблема? grawity 10 лет назад 0
-т 10 дней? Не запускается: quotatool: должен указывать либо блок, либо индекс Pol Hallen 10 лет назад 0
`-t" 10 дней " grawity 10 лет назад 0
та же ошибка: quotatool: должен указывать либо блок, либо индекс Pol Hallen 10 лет назад 0

1 ответ на вопрос

0
Pol Hallen

Grace periods are set on a "global per quotatype and filesystem" basis only. Each quotatype (usrquota / grpquota) on each filesystem has two grace periods - one for block limits and one for inode limits. It is not possible to set different grace periods for users on the same filesystem.

Похожие вопросы