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. 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 .\" from: @(#)edquota.8 8.2 (Berkeley) 4/27/95
32 .\" $NetBSD: edquota.8,v 1.11 2003/02/25 10:36:07 wiz Exp $
43 .Op Fl f Ar filesystem
44 .Op Fl p Ar proto-username
48 .Op Fl f Ar filesystem
49 .Op Fl p Ar proto-groupname
53 .Op Fl f Ar filesystem
54 .Op Fl h Ar block#/inode#
55 .Op Fl s Ar block#/inode#
59 .Op Fl f Ar filesystem
60 .Op Fl h Ar block#/inode#
61 .Op Fl s Ar block#/inode#
65 .Op Fl f Ar filesystem
69 .Op Fl f Ar filesystem
77 one or more users may be specified on the command line.
82 are used, a temporary file is created for each user with an ASCII
83 representation of the current disk quotas for that user.
84 The list of filesystems with user quotas is determined from
86 By default, quota for all quota-enabled filesystems are edited; the
88 option can be used to restrict it to a single filesystem.
89 An editor is invoked on the ASCII file.
92 unless the environment variable
96 The quotas may then be modified, new quotas added, etc.
97 Setting a quota to zero indicates that no quota should be imposed.
98 Setting a hard limit to one indicates that no allocations should
100 Setting a soft limit to one with a hard limit of zero
101 indicates that allocations should be permitted on
102 only a temporary basis (see
105 The current usage information in the file is for informational purposes;
106 only the hard and soft limits can be changed.
108 On leaving the editor,
110 reads the temporary file and modifies the binary
111 quota files to reflect the changes made.
117 will duplicate the quotas of the prototypical user
118 specified for each user specified.
119 This is the normal mechanism used to initialize quotas for groups of users.
125 flags can be used to change quota limits (hard and soft, respectively)
126 without user interaction, for usage in e.g. batch scripts.
127 The arguments are the new block and inode number limit, separated by a slash.
133 is invoked to edit the quotas of
134 one or more groups specified on the command line.
137 flag can be specified in conjunction with the
139 flag to specify a prototypical group
140 to be duplicated among the listed set of groups.
142 Users are permitted to exceed their soft limits
143 for a grace period that may be specified per filesystem.
144 Once the grace period has expired,
145 the soft limit is enforced as a hard limit.
146 The default grace period for a filesystem is specified in
147 .Pa /usr/include/ufs/ufs/quota.h .
150 flag can be used to change the grace period.
151 By default, or when invoked with the
153 flag, the grace period is set for all the filesystems with user
156 When invoked with the
158 flag the grace period is
159 set for all the filesystems with group quotas specified in
161 The grace period may be specified in days, hours, minutes, or seconds.
162 Setting a grace period to zero indicates that the default
163 grace period should be imposed.
164 Setting a grace period to one second indicates that no
165 grace period should be granted.
167 Only the super-user may edit quotas.
169 .Bl -tag -width 24n -compact
171 at the filesystem root with user quotas
173 at the filesystem root with group quotas
175 to find filesystem names and locations
178 Various messages about inaccessible files; self-explanatory.