xref: /openbsd-src/usr.sbin/quotaon/quotaon.8 (revision 9490d37cb6a2f9c8feb8d4b7f9c43b2ac41784aa)
1*9490d37cSjmc.\"	$OpenBSD: quotaon.8,v 1.8 2007/05/31 19:20:28 jmc Exp $
2cdbdb68aSaaron.\"
3df930be7Sderaadt.\" Copyright (c) 1983, 1990, 1991, 1993
4df930be7Sderaadt.\"	The Regents of the University of California.  All rights reserved.
5df930be7Sderaadt.\"
6df930be7Sderaadt.\" This code is derived from software contributed to Berkeley by
7df930be7Sderaadt.\" Robert Elz at The University of Melbourne.
8df930be7Sderaadt.\" Redistribution and use in source and binary forms, with or without
9df930be7Sderaadt.\" modification, are permitted provided that the following conditions
10df930be7Sderaadt.\" are met:
11df930be7Sderaadt.\" 1. Redistributions of source code must retain the above copyright
12df930be7Sderaadt.\"    notice, this list of conditions and the following disclaimer.
13df930be7Sderaadt.\" 2. Redistributions in binary form must reproduce the above copyright
14df930be7Sderaadt.\"    notice, this list of conditions and the following disclaimer in the
15df930be7Sderaadt.\"    documentation and/or other materials provided with the distribution.
1629295d1cSmillert.\" 3. Neither the name of the University nor the names of its contributors
17df930be7Sderaadt.\"    may be used to endorse or promote products derived from this software
18df930be7Sderaadt.\"    without specific prior written permission.
19df930be7Sderaadt.\"
20df930be7Sderaadt.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21df930be7Sderaadt.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22df930be7Sderaadt.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23df930be7Sderaadt.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24df930be7Sderaadt.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25df930be7Sderaadt.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26df930be7Sderaadt.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27df930be7Sderaadt.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28df930be7Sderaadt.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29df930be7Sderaadt.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30df930be7Sderaadt.\" SUCH DAMAGE.
31df930be7Sderaadt.\"
32df930be7Sderaadt.\"     from: @(#)quotaon.8	8.2 (Berkeley) 12/11/93
33*9490d37cSjmc.\"	$Id: quotaon.8,v 1.8 2007/05/31 19:20:28 jmc Exp $
34df930be7Sderaadt.\"
35*9490d37cSjmc.Dd $Mdocdate: May 31 2007 $
36df930be7Sderaadt.Dt QUOTAON 8
37fc8533a3Saaron.Os
38df930be7Sderaadt.Sh NAME
39df930be7Sderaadt.Nm quotaon ,
40df930be7Sderaadt.Nm quotaoff
41df930be7Sderaadt.Nd turn filesystem quotas on and off
42df930be7Sderaadt.Sh SYNOPSIS
43df930be7Sderaadt.Nm quotaon
445a543052Sjmc.Op Fl aguv
455a543052Sjmc.Ar filesystem ...
46df930be7Sderaadt.Nm quotaoff
475a543052Sjmc.Op Fl aguv
485a543052Sjmc.Ar filesystem ...
49df930be7Sderaadt.Sh DESCRIPTION
501c499c0bSaaron.Nm quotaon
51df930be7Sderaadtannounces to the system that disk quotas should be enabled on one or more
52df930be7Sderaadtfilesystems.
531c499c0bSaaron.Nm quotaoff
54df930be7Sderaadtannounces to the system that the specified
55df930be7Sderaadtfilesystems should have any disk quotas
568d4a7325Smillertturned off.
57df930be7SderaadtThe filesystems specified must have entries in
58df930be7Sderaadt.Pa /etc/fstab
59df930be7Sderaadtand be mounted.
601c499c0bSaaron.Nm quotaon
61df930be7Sderaadtexpects each filesystem to have quota files named
62df930be7Sderaadt.Pa quota.user
63df930be7Sderaadtand
64df930be7Sderaadt.Pa quota.group
65df930be7Sderaadtwhich are located at the root of the associated file system.
66df930be7SderaadtThese defaults may be overridden in
67df930be7Sderaadt.Pa /etc/fstab .
68df930be7SderaadtBy default both user and group quotas are enabled.
69df930be7Sderaadt.Pp
701c499c0bSaaronThe options are as follows:
71df930be7Sderaadt.Bl -tag -width Ds
72df930be7Sderaadt.It Fl a
73df930be7SderaadtIf the
74df930be7Sderaadt.Fl a
75df930be7Sderaadtflag is supplied in place of any filesystem names,
76df930be7Sderaadt.Nm quotaon Ns / Ns Nm quotaoff
77df930be7Sderaadtwill enable/disable all the filesystems indicated in
78df930be7Sderaadt.Pa /etc/fstab
79df930be7Sderaadtto be read-write with disk quotas.
80df930be7SderaadtBy default only the types of quotas listed in
81df930be7Sderaadt.Pa /etc/fstab
82df930be7Sderaadtare enabled.
83df930be7Sderaadt.It Fl g
84df930be7SderaadtOnly group quotas listed in
85df930be7Sderaadt.Pa /etc/fstab
86df930be7Sderaadtshould be enabled/disabled.
87df930be7Sderaadt.It Fl u
88df930be7SderaadtOnly user quotas listed in
89df930be7Sderaadt.Pa /etc/fstab
90df930be7Sderaadtshould be enabled/disabled.
91df930be7Sderaadt.It Fl v
92df930be7SderaadtCauses
93df930be7Sderaadt.Nm quotaon
94df930be7Sderaadtand
95df930be7Sderaadt.Nm quotaoff
96df930be7Sderaadtto print a message for each filesystem where quotas are turned on or off.
97df930be7Sderaadt.El
98df930be7Sderaadt.Pp
99df930be7SderaadtSpecifying both
100df930be7Sderaadt.Fl g
101df930be7Sderaadtand
102df930be7Sderaadt.Fl u
103df930be7Sderaadtis equivalent to the default.
104df930be7Sderaadt.Sh FILES
105df930be7Sderaadt.Bl -tag -width quota.group -compact
106df930be7Sderaadt.It Pa quota.user
107df930be7Sderaadtat the filesystem root with user quotas
108df930be7Sderaadt.It Pa quota.group
109df930be7Sderaadtat the filesystem root with group quotas
110df930be7Sderaadt.It Pa /etc/fstab
111df930be7Sderaadtfilesystem table
112df930be7Sderaadt.El
113df930be7Sderaadt.Sh SEE ALSO
114df930be7Sderaadt.Xr quota 1 ,
115df930be7Sderaadt.Xr quotactl 2 ,
116df930be7Sderaadt.Xr fstab 5 ,
117df930be7Sderaadt.Xr edquota 8 ,
118df930be7Sderaadt.Xr quotacheck 8 ,
119df930be7Sderaadt.Xr repquota 8
120df930be7Sderaadt.Sh HISTORY
121df930be7SderaadtThe
1221c499c0bSaaron.Nm quotaon
1231c499c0bSaaronand
1241c499c0bSaaron.Nm quotaoff
1251c499c0bSaaroncommands appeared in
126df930be7Sderaadt.Bx 4.2 .
127