]> andersk Git - moira.git/blob - man/setquota.8
Command line printer manipulation client, and build goo.
[moira.git] / man / setquota.8
1 .TH SETQUOTA 8 "23 Jan 1989" "Project Athena"
2 \" RCSID: $Header$
3 .UC 4
4 .SH NAME
5 setquota \- set the disk usage quotas for a given user and partition
6 .SH SYNOPSIS
7 .B setquota
8 [-u]
9 .I special uid quota
10 .br
11 .B setquota
12 -r [-u]
13 .I special low_uid high_uid quota
14 .SH DESCRIPTION
15 .I Setquota
16 will set the hard and soft limits on disk usage and inode
17 usage for the user with
18 .I uid
19 on the partition
20 .I special. special
21 can be either the block device name (ie.
22 .I /dev/rz3g
23 ) or the directory it's mounted on. (ie.
24 .I /u1
25 ). The user's soft disk usage limit will be set to
26 .I quota.
27 The soft inode usage limit will be set to half that amount.
28 The hard limits will be set to 1.2 times the soft limits.
29 .SH OPTIONS
30 If the
31 .B \-u
32 option is given, then the specified
33 .I quota
34 will be added to the current usage to obtain the new soft limit.  The
35 remaining values are then set relative to this as specified above.
36 If the
37 .B \-r
38 option is given, then all the quotas for the inclusive range of uid's
39 are set to the given quota (plus usage with the
40 .B \-u
41 option).
42 .SH DIAGNOSTICS
43 .B setquota
44 will return a non-zero status if the user is not root, if the uid is
45 not between 0 and 32767 inclusive, if the low-uid is higher than the
46 high-uid, if the quota is less than zero, or if quotas are not enabled
47 on the given device or partition.
48
49 The previous bug which required the user to manually grow the quotas
50 file is fixed.
51 .B setquota
52 automatically grows the quotas file if necessary.
53 .SH AUTHORS
54 Bill Sommerfeld, MIT Project Athena
55 .br
56 Jim Rees, MIT Project Athena
57 .SH "SEE ALSO"
58 quota(1), quota(2), edquota(8), quotacheck(8), quotaon(8), repquota(8)
This page took 0.181276 seconds and 5 git commands to generate.