xref: /dragonfly/usr.sbin/quotaon/quotaon.8 (revision a563ca70)
1.\" Copyright (c) 1983, 1990, 1991, 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" Robert Elz at The University of Melbourne.
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\"    notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\"    notice, this list of conditions and the following disclaimer in the
13.\"    documentation and/or other materials provided with the distribution.
14.\" 3. All advertising materials mentioning features or use of this software
15.\"    must display the following acknowledgement:
16.\"	This product includes software developed by the University of
17.\"	California, Berkeley and its contributors.
18.\" 4. Neither the name of the University nor the names of its contributors
19.\"    may be used to endorse or promote products derived from this software
20.\"    without specific prior written permission.
21.\"
22.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32.\" SUCH DAMAGE.
33.\"
34.\"     @(#)quotaon.8	8.2 (Berkeley) 12/11/93
35.\" $FreeBSD: src/usr.sbin/quotaon/quotaon.8,v 1.4.2.4 2003/03/11 22:31:31 trhodes Exp $
36.\" $DragonFly: src/usr.sbin/quotaon/quotaon.8,v 1.2 2003/06/17 04:30:02 dillon Exp $
37.\"
38.Dd December 11, 1993
39.Dt QUOTAON 8
40.Os
41.Sh NAME
42.Nm quotaon ,
43.Nm quotaoff
44.Nd turn file system quotas on and off
45.Sh SYNOPSIS
46.Nm
47.Op Fl g
48.Op Fl u
49.Op Fl v
50.Ar filesystem Ar ...
51.Nm
52.Op Fl g
53.Op Fl u
54.Op Fl v
55.Fl a
56.Nm quotaoff
57.Op Fl g
58.Op Fl u
59.Op Fl v
60.Ar filesystem Ar ...
61.Nm quotaoff
62.Op Fl g
63.Op Fl u
64.Op Fl v
65.Fl a
66.Sh DESCRIPTION
67The
68.Nm
69utility
70announces to the system that disk quotas should be enabled on one or more
71file systems.
72The
73.Nm quotaoff
74utility announces to the system that the specified
75file systems should have any disk quotas turned off.
76The file systems specified must have entries in
77.Pa /etc/fstab
78and be mounted.
79The
80.Nm
81utility expects each file system to have quota files named
82.Pa quota.user
83and
84.Pa quota.group
85which are located at the root of the associated file system.
86These defaults may be overridden in
87.Pa /etc/fstab .
88By default both user and group quotas are enabled.
89.Pp
90Available options:
91.Bl -tag -width indent
92.It Fl a
93If supplied in place of any file system names,
94.Nm Ns / Ns Nm quotaoff
95will enable/disable all the file systems indicated in
96.Pa /etc/fstab
97to be read-write with disk quotas.
98By default only the types of quotas listed in
99.Pa /etc/fstab
100are enabled.
101.It Fl g
102Only group quotas listed in
103.Pa /etc/fstab
104should be enabled/disabled.
105.It Fl u
106Only user quotas listed in
107.Pa /etc/fstab
108should be enabled/disabled.
109.It Fl v
110Cause
111.Nm
112and
113.Nm quotaoff
114to print a message for each file system where quotas are turned on or off.
115.El
116.Pp
117Specifying both
118.Fl g
119and
120.Fl u
121is equivalent to the default.
122.Sh FILES
123.Bl -tag -width quota.group -compact
124.It Pa quota.user
125at the file system root with user quotas
126.It Pa quota.group
127at the file system root with group quotas
128.It Pa /etc/fstab
129file system table
130.El
131.Sh SEE ALSO
132.Xr quota 1 ,
133.Xr quotactl 2 ,
134.Xr fstab 5 ,
135.Xr edquota 8 ,
136.Xr quotacheck 8 ,
137.Xr repquota 8
138.Sh HISTORY
139The
140.Nm
141utility appeared in
142.Bx 4.2 .
143