1 .\" Copyright (c) 1983, 1990, 1993
2 .\" The Regents of the University of California. All rights reserved.
4 .\" This code is derived from software contributed to Berkeley by
5 .\" Robert Elz at The University of Melbourne.
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
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 .\" 4. Neither the name of the University nor the names of its contributors
16 .\" may be used to endorse or promote products derived from this software
17 .\" without specific prior written permission.
19 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 .\" @(#)edquota.8 8.1 (Berkeley) 6/6/93
44 .Op Fl p Ar proto-username
50 .Ar fspath Op : Ar bslim Op : Ar bhlim Op : Ar islim Op : Ar ihlim
57 .Op Fl p Ar proto-groupname
63 .Ar fspath Op : Ar bslim Op : Ar bhlim Op : Ar islim Op : Ar ihlim
78 utility is a quota editor.
82 one or more users may be specified on the command line.
83 For each user a temporary file is created
86 representation of the current
87 disk quotas for that user.
88 The list of file systems with user quotas is determined from
90 An editor is invoked on the
95 unless the environment variable
99 The quotas may then be modified, new quotas added, etc.
100 Setting a quota to zero indicates that no quota should be imposed.
101 Setting a hard limit to one indicates that no allocations should
103 Setting a soft limit to one with a hard limit of zero
104 indicates that allocations should be permitted only on
105 a temporary basis (see
108 The current usage information in the file is for informational purposes;
109 only the hard and soft limits can be changed.
111 On leaving the editor,
113 reads the temporary file and modifies the binary
114 quota files to reflect the changes made.
120 will duplicate the quotas of the prototypical user
121 specified for each user specified.
122 This is the normal mechanism used to
123 initialize quotas for groups of users.
124 If the user given to assign quotas to is a numerical uid
125 range (e.g.\& 1000-2000), then
127 will duplicate the quotas of the prototypical user
128 for each uid in the range specified.
130 for easy setup of default quotas for a group of users.
131 The uids in question do not have to be currently assigned in
137 .Ar fspath Op : Ar bslim Op : Ar bhlim Op : Ar islim Op : Ar ihlim
139 options are specified,
141 will non-interactively set quotas defined by
142 .Ar bslim , bhlim , islim ,
145 on each particular file system referenced by
149 is the soft limit on the number of blocks,
151 is the hard limit on the number of blocks,
153 is the soft limit on the number of files, and
155 is the hard limit on the number of files.
157 .Ar bslim , bhlim , islim ,
160 values is omitted, it is assumed to be zero, therefore
161 indicating that no particular quota should be imposed.
167 will read and modify quotas on the file system specified by
172 argument may be either a special device
173 or a file system mount point.
174 The primary purpose of this option is to set the scope for the
176 option, which would overwrite quota records on every
177 file system with quotas otherwise.
183 is invoked to edit the quotas of
184 one or more groups specified on the command line.
187 flag can be specified in conjunction with
190 flag to specify a prototypical group
191 to be duplicated among the listed set of groups.
194 flag can be specified in conjunction with
197 flag to non-interactively set-up quotas on the listed set
200 Users are permitted to exceed their soft limits
201 for a grace period that may be specified per file system.
202 Once the grace period has expired,
203 the soft limit is enforced as a hard limit.
204 The default grace period for a file system is specified in
205 .In ufs/ufs/quota.h .
208 flag can be used to change the grace period.
209 By default, or when invoked with the
212 the grace period is set for all the file systems with user
215 When invoked with the
217 flag the grace period is
218 set for all the file systems with group quotas specified in
220 The grace period may be specified in days, hours, minutes, or seconds.
221 Setting a grace period to zero indicates that the default
222 grace period should be imposed.
223 Setting a grace period to one second indicates that no
224 grace period should be granted.
226 Only the super-user may edit quotas.
228 .Bl -tag -width quota.group -compact
230 at the file system root with user quotas
232 at the file system root with group quotas
234 to find file system names and locations
237 Various messages about inaccessible files; self-explanatory.