IRCNow

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
openbsd:shell:quotas [2020/02/27 01:10]
pirata [Defining limits]
openbsd:shell:quotas [2020/02/27 01:42]
pirata [Defining limits]
Line 6: Line 6:
   - **hard quotas** - does not allow any more disk allocation once threshold is reached.   - **hard quotas** - does not allow any more disk allocation once threshold is reached.
  
-Currently, IRCNow'​s shell limits disk usage to **5GB** (soft) and **10GB** (hard) ​per user and users have 1 week to decrease disk usage.+Currently, IRCNow'​s shell limits disk usage to **8GB** (soft) and **11GB** (hard) and users have 1 week to decrease disk usage.
  
 ====== Setting up  ====== ====== Setting up  ======
Line 16: Line 16:
  
 ====== 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 (1000KB ​equals to 1MB).
  
 edquota(8) invokes vi(1) unless you specify other editor. edquota(8) invokes vi(1) unless you specify other editor.
Line 32: Line 32:
 </​code>​ </​code>​
  
-On the first above, PiRATA can use up to 512MB on his $HOME. On the latterall staff users are limited to 15GB of disk space.+On the first above, PiRATA can use up to 512MB on his $HOME. On the latterall staff users are limited to 15GB of disk space.
  
 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 ​the **-p** option ​we can have the thresholds replicated:
  
 <code bash> <code bash>
-$ edquota -p PiRATA jrmu jimmy_will dennis ​ +$ edquota -p PiRATA jrmu jimmy_will dennis
 </​code>​ </​code>​
  
Line 63: Line 63:
  
 ====== Displaying limits ​  ​====== ====== Displaying limits ​  ​======
- 
 quota(1) outputs current disk usage and limits. By default, only the user quotas are printed but you can see group quotas by invoking **-g** ​ option. quota(1) outputs current disk usage and limits. By default, only the user quotas are printed but you can see group quotas by invoking **-g** ​ option.