fix mci_state after sending RSET command
[unix-history] / usr / src / usr.sbin / edquota / edquota.8
CommitLineData
79fdf6e5 1.\" Copyright (c) 1983, 1990 Regents of the University of California.
f9ac90b4 2.\" All rights reserved.
16e5815a 3.\"
79fdf6e5
KM
4.\" This code is derived from software contributed to Berkeley by
5.\" Robert Elz at The University of Melbourne.
6.\"
ddd10de2 7.\" %sccs.include.redist.man%
f9ac90b4 8.\"
a9fe53c2 9.\" @(#)edquota.8 6.7 (Berkeley) %G%
16e5815a 10.\"
0fd6ac2a 11.TH EDQUOTA 8 ""
16e5815a
KM
12.UC 5
13.SH NAME
14edquota \- edit user quotas
15.SH SYNOPSIS
16.B edquota
17[
79fdf6e5
KM
18.I \-u
19] [
20.I \-p
21proto-username
22]
23username ...
24.br
25.B edquota
26.I \-g
27[
28.I \-p
29proto-groupname
16e5815a 30]
79fdf6e5
KM
31groupname ...
32.br
33.B edquota
34.I -t
35[
36.I -u
37]
38.br
39.B edquota
40.I -t
41.I -g
42.br
16e5815a
KM
43.SH DESCRIPTION
44.I Edquota
79fdf6e5
KM
45is a quota editor.
46By default, or if the \fI-u\fP flag is specified,
47one or more users may be specified on the command line.
16e5815a
KM
48For each user a temporary file is created
49with an ASCII representation of the current
79fdf6e5
KM
50disk quotas for that user.
51The list of filesystems with user quotas is determined from
52.IR /etc/fstab .
53An editor is invoked on the ASCII file.
54The editor invoked is
55.IR vi (1)
56unless the environment variable EDITOR specifies otherwise.
57.PP
58The quotas may then be modified, new quotas added, etc.
59Setting a quota to zero indicates that no quota should be imposed.
60Setting a hard limit to one indicates that no allocations should
61be permitted.
62Setting a soft limit to one with a hard limit of zero
63indicates that allocations should be permitted on
64only a temporary basis (see \fI-t\fP below).
65The current usage information in the file is for informational purposes;
66only the hard and soft limits can be changed.
67.PP
68On leaving the editor,
16e5815a
KM
69.I edquota
70reads the temporary file and modifies the binary
71quota files to reflect the changes made.
72.PP
73If the
74.B \-p
75option is specified,
76.I edquota
77will duplicate the quotas of the prototypical user
79fdf6e5
KM
78specified for each user specified.
79This is the normal mechanism used to
80initialize quotas for groups of users.
16e5815a 81.PP
79fdf6e5
KM
82If the \fI-g\fP flag is specified,
83.I edquota
84is invoked to edit the quotas of
85one or more groups specified on the command line.
86The \fI-p\fP flag can be specified in conjunction with
87the \fI-g\fP flag to specify a prototypical group
88to be duplicated among the listed set of groups.
89.PP
90Users are permitted to exceed their soft limits
91for a grace period that may be specified per filesystem.
92Once the grace period has expired,
93the soft limit is enforced as a hard limit.
94The default grace period for a filesystem is specified in
95.IR /usr/include/ufs/quota.h .
a9fe53c2 96The \fI-t\fP flag can be used to change the grace period.
79fdf6e5
KM
97By default, or when invoked with the \fI-u\fP flag,
98the grace period is set for all the filesystems with user
99quotas specified in
100.IR /etc/fstab .
101When invoked with the \fI-g\fP flag the grace period is
102set for all the filesystems with group quotas specified in
103.IR /etc/fstab .
104The grace period may be specified in days, hours, minutes, or seconds.
105Setting a grace period to zero indicates that the default
106grace period should be imposed.
107Setting a grace period to one second indicates that no
108grace period should be granted.
16e5815a
KM
109.PP
110Only the super-user may edit quotas.
111.SH FILES
112.DT
79fdf6e5
KM
113\fIquota.user\fP at the filesystem root with user quotas
114.br
115\fIquota.group\fP at the filesystem root with group quotas
16e5815a 116.br
79fdf6e5 117/etc/fstab to find filesystem names and locations
16e5815a 118.SH SEE ALSO
79fdf6e5
KM
119quota(1),
120quotactl(2),
121fstab(5),
122quotacheck(8), quotaon(8), repquota(8)
16e5815a
KM
123.SH DIAGNOSTICS
124Various messages about inaccessible files; self-explanatory.