This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
openbsd:shell:quotas [2020/02/27 00:43] pirata [Setting up] |
openbsd:shell:quotas [2020/02/27 01:10] pirata [Defining limits] |
||
---|---|---|---|
Line 17: | Line 17: | ||
====== Defining limits ====== | ====== Defining limits ====== | ||
To set thresholds, We use edquota(8). Keep in mind that values are measured in KB (1MB equals to 1000KB). | To set thresholds, We use edquota(8). Keep in mind that values are measured in KB (1MB equals to 1000KB). | ||
+ | |||
+ | edquota(8) invokes vi(1) unless you specify other editor. | ||
<code bash> | <code bash> | ||
Line 33: | Line 35: | ||
Now, what if you need to define a certain threshold for 7 or 8 users or even 50? What would you do? Probably you would use edquota(8) for each user. | Now, what if you need to define a certain threshold for 7 or 8 users or even 50? What would you do? Probably you would use edquota(8) for each user. | ||
+ | |||
Gladly, We don't need to - by invoking **-p** option followed by the user that all the other users will replicate from and then specify all users. | Gladly, We don't need to - by invoking **-p** option followed by the user that all the other users will replicate from and then specify all users. | ||
Line 39: | Line 42: | ||
</code> | </code> | ||
- | By invoking the -t option, grate time can be configured: | + | By invoking the **-t** option, grate time can be defined: |
<code bash> | <code bash> | ||
Line 45: | Line 48: | ||
Time units may be: days, hours, minutes, or seconds | Time units may be: days, hours, minutes, or seconds | ||
Grace period before enforcing soft limits for users: | Grace period before enforcing soft limits for users: | ||
- | </code> | ||
/home: block grace period: 7 days, file grace period: 7 days | /home: block grace period: 7 days, file grace period: 7 days | ||
+ | </code> | ||
====== Enabling/Disabling quotas ====== | ====== Enabling/Disabling quotas ====== | ||