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 .\" 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.
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
35 .\" @(#)edquota.8 8.1 (Berkeley) 6/6/93
36 .\" $FreeBSD: src/usr.sbin/edquota/edquota.8,v 1.9.2.3 2002/10/11 14:25:39 sobomax Exp $
37 .\" $DragonFly: src/usr.sbin/edquota/edquota.8,v 1.4 2006/05/26 19:39:40 swildner Exp $
49 .Op Fl p Ar proto-username
53 .Fl e Ar fspath Ns Op : Ns Ar bslim Ns Op : Ns Ar bhlim Ns Op : Ns Ar islim Ns Op : Ns Ar ihlim
59 .Op Fl p Ar proto-groupname
63 .Fl e Ar fspath Ns Op : Ns Ar bslim Ns Op : Ns Ar bhlim Ns Op : Ns Ar islim Ns Op : Ns Ar ihlim
80 one or more users may be specified on the command line.
81 For each user a temporary file is created
84 representation of the current
85 disk quotas for that user.
86 The list of filesystems with user quotas is determined from
88 An editor is invoked on the
93 unless the environment variable
97 The quotas may then be modified, new quotas added, etc.
98 Setting a quota to zero indicates that no quota should be imposed.
99 Setting a hard limit to one indicates that no allocations should
101 Setting a soft limit to one with a hard limit of zero
102 indicates that allocations should be permitted only on
103 a temporary basis (see
106 The current usage information in the file is for informational purposes;
107 only the hard and soft limits can be changed.
109 On leaving the editor,
111 reads the temporary file and modifies the binary
112 quota files to reflect the changes made.
118 will duplicate the quotas of the prototypical user
119 specified for each user specified.
120 This is the normal mechanism used to
121 initialize quotas for groups of users.
122 If the user given to assign quotas to is a numerical uid
123 range (e.g. 1000-2000), then
125 will duplicate the quotas of the prototypical user
126 for each uid in the range specified. This allows
127 for easy setup of default quotas for a group of users.
128 The uids in question do not have to be currently assigned in
132 .Fl e Ar fspath Ns Op : Ns Ar bslim Ns Op : Ns Ar bhlim Ns Op : Ns Ar islim Ns Op : Ns Ar ihlim
133 options are specified,
135 will non-interactively set quotas defined by
140 on each particular filesystem referenced by
144 is soft limit on number of blocks,
146 is hard limit on number of blocks,
148 is soft limit on number of files and
150 is hard limit on number of files.
156 values are omitted, it is assumed to be zero, therefore
157 indicating that no quota should be imposed.
163 will read and modify quotas on the filesystem specified by
168 argument may be either a special device
169 or a filesystem mount point.
170 The primary purpose of this option is to set the scope for the
172 option, which would overwrite quota records on every
173 filesystem with quotas otherwise.
179 is invoked to edit the quotas of
180 one or more groups specified on the command line.
183 flag can be specified in conjunction with
186 flag to specify a prototypical group
187 to be duplicated among the listed set of groups.
190 flag can be specified in conjunction with
193 flag to non-interactively set-up quotas on the listed set
196 Users are permitted to exceed their soft limits
197 for a grace period that may be specified per filesystem.
198 Once the grace period has expired,
199 the soft limit is enforced as a hard limit.
200 The default grace period for a filesystem is specified in
201 .In vfs/ufs/quota.h .
204 flag can be used to change the grace period.
205 By default, or when invoked with the
208 the grace period is set for all the filesystems with user
211 When invoked with the
213 flag the grace period is
214 set for all the filesystems with group quotas specified in
216 The grace period may be specified in days, hours, minutes, or seconds.
217 Setting a grace period to zero indicates that the default
218 grace period should be imposed.
219 Setting a grace period to one second indicates that no
220 grace period should be granted.
222 Only the super-user may edit quotas.
224 .Bl -tag -width quota.group -compact
226 at the filesystem root with user quotas
228 at the filesystem root with group quotas
230 to find filesystem names and locations
233 Various messages about inaccessible files; self-explanatory.