New manual page system, missed this one on the first round
[unix-history] / usr.sbin / edquota / edquota.8
CommitLineData
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
40edquota \- edit user quotas
41.SH SYNOPSIS
42.B edquota
43[
44.I \-u
45] [
46.I \-p
47proto-username
48]
49username ...
50.br
51.B edquota
52.I \-g
53[
54.I \-p
55proto-groupname
56]
57groupname ...
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
71is a quota editor.
72By default, or if the \fI-u\fP flag is specified,
73one or more users may be specified on the command line.
74For each user a temporary file is created
75with an ASCII representation of the current
76disk quotas for that user.
77The list of filesystems with user quotas is determined from
78.IR /etc/fstab .
79An editor is invoked on the ASCII file.
80The editor invoked is
81.IR vi (1)
82unless the environment variable EDITOR specifies otherwise.
83.PP
84The quotas may then be modified, new quotas added, etc.
85Setting a quota to zero indicates that no quota should be imposed.
86Setting a hard limit to one indicates that no allocations should
87be permitted.
88Setting a soft limit to one with a hard limit of zero
89indicates that allocations should be permitted on
90only a temporary basis (see \fI-t\fP below).
91The current usage information in the file is for informational purposes;
92only the hard and soft limits can be changed.
93.PP
94On leaving the editor,
95.I edquota
96reads the temporary file and modifies the binary
97quota files to reflect the changes made.
98.PP
99If the
100.B \-p
101option is specified,
102.I edquota
103will duplicate the quotas of the prototypical user
104specified for each user specified.
105This is the normal mechanism used to
106initialize quotas for groups of users.
107.PP
108If the \fI-g\fP flag is specified,
109.I edquota
110is invoked to edit the quotas of
111one or more groups specified on the command line.
112The \fI-p\fP flag can be specified in conjunction with
113the \fI-g\fP flag to specify a prototypical group
114to be duplicated among the listed set of groups.
115.PP
116Users are permitted to exceed their soft limits
117for a grace period that may be specified per filesystem.
118Once the grace period has expired,
119the soft limit is enforced as a hard limit.
120The default grace period for a filesystem is specified in
121.IR /usr/include/ufs/quota.h .
122The \fI-t\fP flag can be used to change the grace period.
123By default, or when invoked with the \fI-u\fP flag,
124the grace period is set for all the filesystems with user
125quotas specified in
126.IR /etc/fstab .
127When invoked with the \fI-g\fP flag the grace period is
128set for all the filesystems with group quotas specified in
129.IR /etc/fstab .
130The grace period may be specified in days, hours, minutes, or seconds.
131Setting a grace period to zero indicates that the default
132grace period should be imposed.
133Setting a grace period to one second indicates that no
134grace period should be granted.
135.PP
136Only 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
145quota(1),
146quotactl(2),
147fstab(5),
148quotacheck(8), quotaon(8), repquota(8)
149.SH DIAGNOSTICS
150Various messages about inaccessible files; self-explanatory.