xref: /freebsd/usr.sbin/quotaon/quotaon.8 (revision 6137b5f7b8c183ee8806d79b3f1d8e5e3ddb3df3)
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. Neither the name of the University nor the names of its contributors
15.\"    may be used to endorse or promote products derived from this software
16.\"    without specific prior written permission.
17.\"
18.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28.\" SUCH DAMAGE.
29.\"
30.Dd December 11, 1993
31.Dt QUOTAON 8
32.Os
33.Sh NAME
34.Nm quotaon ,
35.Nm quotaoff
36.Nd turn file system quotas on and off
37.Sh SYNOPSIS
38.Nm
39.Op Fl g
40.Op Fl u
41.Op Fl v
42.Ar filesystem Ar ...
43.Nm
44.Op Fl g
45.Op Fl u
46.Op Fl v
47.Fl a
48.Nm quotaoff
49.Op Fl g
50.Op Fl u
51.Op Fl v
52.Ar filesystem Ar ...
53.Nm quotaoff
54.Op Fl g
55.Op Fl u
56.Op Fl v
57.Fl a
58.Sh DESCRIPTION
59The
60.Nm
61utility
62announces to the system that disk quotas should be enabled on one or more
63file systems.
64The
65.Nm quotaoff
66utility announces to the system that the specified
67file systems should have any disk quotas turned off.
68The file systems specified must have entries in
69.Pa /etc/fstab
70and be mounted.
71The
72.Nm
73utility expects each file system to have quota files named
74.Pa quota.user
75and
76.Pa quota.group
77which are located at the root of the associated file system.
78These defaults may be overridden in
79.Pa /etc/fstab .
80By default both user and group quotas are enabled.
81.Pp
82Available options:
83.Bl -tag -width indent
84.It Fl a
85If supplied in place of any file system names,
86.Nm Ns / Ns Nm quotaoff
87will enable/disable all the file systems indicated in
88.Pa /etc/fstab
89to be read-write with disk quotas.
90By default only the types of quotas listed in
91.Pa /etc/fstab
92are enabled.
93.It Fl g
94Only group quotas listed in
95.Pa /etc/fstab
96should be enabled/disabled.
97.It Fl u
98Only user quotas listed in
99.Pa /etc/fstab
100should be enabled/disabled.
101.It Fl v
102Cause
103.Nm
104and
105.Nm quotaoff
106to print a message for each file system where quotas are turned on or off.
107.El
108.Pp
109Specifying both
110.Fl g
111and
112.Fl u
113is equivalent to the default.
114.Sh FILES
115.Bl -tag -width quota.group -compact
116.It Pa quota.user
117at the file system root with user quotas
118.It Pa quota.group
119at the file system root with group quotas
120.It Pa /etc/fstab
121file system table
122.El
123.Sh SEE ALSO
124.Xr quota 1 ,
125.Xr quotactl 2 ,
126.Xr fstab 5 ,
127.Xr edquota 8 ,
128.Xr quotacheck 8 ,
129.Xr repquota 8
130.Sh HISTORY
131The
132.Nm
133utility appeared in
134.Bx 4.2 .
135