2 .\" Copyright 1989 AT&T Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH EDQUOTA 8 "Feb 14, 2003"
8 edquota \- edit user quotas for ufs file system
12 \fBedquota\fR [\fB-p\fR \fIproto_user\fR] \fIusername\fR...
17 \fBedquota\fR \fB-t\fR
23 \fBedquota\fR is a quota editor. One or more users may be specified on the
24 command line. For each user a temporary file is created with an \fBASCII\fR
25 representation of the current disk quotas for that user for each mounted ufs
26 file system that has a \fBquotas\fR file, and an editor is then invoked on the
27 file. The quotas may then be modified, new quotas added, etc. Upon leaving the
28 editor, \fBedquota\fR reads the temporary file and modifies the binary quota
29 files to reflect the changes made.
32 The editor invoked is \fBvi\fR(1) unless the \fBEDITOR\fR environment variable
36 Only the super-user may edit quotas. In order for quotas to be established on
37 a file system, the root directory of the file system must contain a file, owned
38 by root, called \fBquotas\fR. (See \fBquotaon\fR(8).)
41 \fIproto_user\fR and \fIusername\fR can be numeric, corresponding to the
42 \fBUID\fR of a user. Unassigned UIDs may be specified; unassigned names may
43 not. In this way, default quotas can be established for users who are later
47 If no options are specified, the temporary file created will have one or more
48 lines of the format, where a block is considered to be a 1024 byte (1K) block:
52 fs\fI mount_point\fR blocks (soft =\fInumber\fR, \e
53 hard =\fInumber\fR ) inodes (soft =\fInumber\fR, \e
61 The \fInumber\fR fields may be modified to reflect desired values.
65 The following options are supported:
72 Duplicate the quotas of the \fIproto_user\fR specified for each \fIusername\fR
73 specified. This is the normal mechanism used to initialize quotas for groups of
83 Edit the soft time limits for each file system. If the time limits are zero,
84 the default time limits in \fB/usr/include/sys/fs/ufs_quota.h\fR are used. The
85 temporary file created will have one or more lines of the form
87 fs \fImount_point\fR blocks time limit = \fInumber tmunit\fR, files time limit
93 \fItmunit\fR may be one of ``month'', ``week'', ``day'', ``hour'', ``min'' or
94 ``sec''; characters appended to these keywords are ignored, so you may write
95 ``months'' or ``minutes'' if you prefer. The \fInumber\fR and\fI tmunit\fR
96 fields may be modified to set desired values. Time limits are printed in the
97 greatest possible time unit such that the value is greater than or equal to
98 one. If ``default'' is printed after the \fItmunit\fR, this indicates that the
99 value shown is zero (the default).
107 quota file at the file system root
113 \fB\fB/etc/mnttab\fR\fR
116 table of mounted file systems
122 \fBvi\fR(1), \fBquota\fR(8), \fBquotacheck\fR(8), \fBquotaon\fR(8),
123 \fBrepquota\fR(8), \fBattributes\fR(5), \fBquotactl\fR(7I)
127 All \fBUID\fRs can be assigned quotas.