Commit | Line | Data |
---|---|---|
15637ed4 RG |
1 | .\" Copyright (c) 1983, 1990 Regents of the University of California. |
2 | .\" All rights reserved. | |
3 | .\" | |
4 | .\" This code is derived from software contributed to Berkeley by | |
5 | .\" Robert Elz at The University of Melbourne. | |
6 | .\" | |
7 | .\" Redistribution and use in source and binary forms, with or without | |
8 | .\" modification, are permitted provided that the following conditions | |
9 | .\" are met: | |
10 | .\" 1. Redistributions of source code must retain the above copyright | |
11 | .\" notice, this list of conditions and the following disclaimer. | |
12 | .\" 2. Redistributions in binary form must reproduce the above copyright | |
13 | .\" notice, this list of conditions and the following disclaimer in the | |
14 | .\" documentation and/or other materials provided with the distribution. | |
15 | .\" 3. All advertising materials mentioning features or use of this software | |
16 | .\" must display the following acknowledgement: | |
17 | .\" This product includes software developed by the University of | |
18 | .\" California, Berkeley and its contributors. | |
19 | .\" 4. Neither the name of the University nor the names of its contributors | |
20 | .\" may be used to endorse or promote products derived from this software | |
21 | .\" without specific prior written permission. | |
22 | .\" | |
23 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | |
24 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
25 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
26 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | |
27 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
28 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |
29 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
30 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
31 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
32 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
33 | .\" SUCH DAMAGE. | |
34 | .\" | |
35 | .\" @(#)edquota.8 6.7 (Berkeley) 8/1/91 | |
36 | .\" | |
37 | .TH EDQUOTA 8 "August 1, 1991" | |
38 | .UC 5 | |
39 | .SH NAME | |
40 | edquota \- edit user quotas | |
41 | .SH SYNOPSIS | |
42 | .B edquota | |
43 | [ | |
44 | .I \-u | |
45 | ] [ | |
46 | .I \-p | |
47 | proto-username | |
48 | ] | |
49 | username ... | |
50 | .br | |
51 | .B edquota | |
52 | .I \-g | |
53 | [ | |
54 | .I \-p | |
55 | proto-groupname | |
56 | ] | |
57 | groupname ... | |
58 | .br | |
59 | .B edquota | |
60 | .I -t | |
61 | [ | |
62 | .I -u | |
63 | ] | |
64 | .br | |
65 | .B edquota | |
66 | .I -t | |
67 | .I -g | |
68 | .br | |
69 | .SH DESCRIPTION | |
70 | .I Edquota | |
71 | is a quota editor. | |
72 | By default, or if the \fI-u\fP flag is specified, | |
73 | one or more users may be specified on the command line. | |
74 | For each user a temporary file is created | |
75 | with an ASCII representation of the current | |
76 | disk quotas for that user. | |
77 | The list of filesystems with user quotas is determined from | |
78 | .IR /etc/fstab . | |
79 | An editor is invoked on the ASCII file. | |
80 | The editor invoked is | |
81 | .IR vi (1) | |
82 | unless the environment variable EDITOR specifies otherwise. | |
83 | .PP | |
84 | The quotas may then be modified, new quotas added, etc. | |
85 | Setting a quota to zero indicates that no quota should be imposed. | |
86 | Setting a hard limit to one indicates that no allocations should | |
87 | be permitted. | |
88 | Setting a soft limit to one with a hard limit of zero | |
89 | indicates that allocations should be permitted on | |
90 | only a temporary basis (see \fI-t\fP below). | |
91 | The current usage information in the file is for informational purposes; | |
92 | only the hard and soft limits can be changed. | |
93 | .PP | |
94 | On leaving the editor, | |
95 | .I edquota | |
96 | reads the temporary file and modifies the binary | |
97 | quota files to reflect the changes made. | |
98 | .PP | |
99 | If the | |
100 | .B \-p | |
101 | option is specified, | |
102 | .I edquota | |
103 | will duplicate the quotas of the prototypical user | |
104 | specified for each user specified. | |
105 | This is the normal mechanism used to | |
106 | initialize quotas for groups of users. | |
107 | .PP | |
108 | If the \fI-g\fP flag is specified, | |
109 | .I edquota | |
110 | is invoked to edit the quotas of | |
111 | one or more groups specified on the command line. | |
112 | The \fI-p\fP flag can be specified in conjunction with | |
113 | the \fI-g\fP flag to specify a prototypical group | |
114 | to be duplicated among the listed set of groups. | |
115 | .PP | |
116 | Users are permitted to exceed their soft limits | |
117 | for a grace period that may be specified per filesystem. | |
118 | Once the grace period has expired, | |
119 | the soft limit is enforced as a hard limit. | |
120 | The default grace period for a filesystem is specified in | |
121 | .IR /usr/include/ufs/quota.h . | |
122 | The \fI-t\fP flag can be used to change the grace period. | |
123 | By default, or when invoked with the \fI-u\fP flag, | |
124 | the grace period is set for all the filesystems with user | |
125 | quotas specified in | |
126 | .IR /etc/fstab . | |
127 | When invoked with the \fI-g\fP flag the grace period is | |
128 | set for all the filesystems with group quotas specified in | |
129 | .IR /etc/fstab . | |
130 | The grace period may be specified in days, hours, minutes, or seconds. | |
131 | Setting a grace period to zero indicates that the default | |
132 | grace period should be imposed. | |
133 | Setting a grace period to one second indicates that no | |
134 | grace period should be granted. | |
135 | .PP | |
136 | Only the super-user may edit quotas. | |
137 | .SH FILES | |
138 | .DT | |
139 | \fIquota.user\fP at the filesystem root with user quotas | |
140 | .br | |
141 | \fIquota.group\fP at the filesystem root with group quotas | |
142 | .br | |
143 | /etc/fstab to find filesystem names and locations | |
144 | .SH SEE ALSO | |
145 | quota(1), | |
146 | quotactl(2), | |
147 | fstab(5), | |
148 | quotacheck(8), quotaon(8), repquota(8) | |
149 | .SH DIAGNOSTICS | |
150 | Various messages about inaccessible files; self-explanatory. |