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.\" from: @(#)quotaon.8 8.2 (Berkeley) 12/11/93 35.\" $NetBSD: quotaon.8,v 1.6 1999/03/22 18:44:06 garbled Exp $ 36.\" 37.Dd December 11, 1993 38.Dt QUOTAON 8 39.Os 40.Sh NAME 41.Nm quotaon , 42.Nm quotaoff 43.Nd turn filesystem quotas on and off 44.Sh SYNOPSIS 45.Nm 46.Op Fl g 47.Op Fl u 48.Op Fl v 49.Ar filesystem Ar ... 50.Nm "" 51.Op Fl g 52.Op Fl u 53.Op Fl v 54.Fl a 55.Nm quotaoff 56.Op Fl g 57.Op Fl u 58.Op Fl v 59.Ar filesystem Ar ... 60.Nm quotaoff 61.Op Fl g 62.Op Fl u 63.Op Fl v 64.Fl a 65.Sh DESCRIPTION 66.Nm 67announces to the system that disk quotas should be enabled on one or more 68filesystems. 69.Nm quotaoff 70announces to the system that the specified 71filesystems should have any disk quotas 72diskquotas turned off. 73The filesystems specified must have entries in 74.Pa /etc/fstab 75and be mounted. 76.Nm 77expects each filesystem to have quota files named 78.Pa quota.user 79and 80.Pa quota.group 81which are located at the root of the associated file system. 82These defaults may be overridden in 83.Pa /etc/fstab . 84By default both user and group quotas are enabled. 85.Pp 86Available options: 87.Bl -tag -width Ds 88.It Fl a 89If the 90.Fl a 91flag is supplied in place of any filesystem names, 92.Nm "" Ns / Ns Nm quotaoff 93will enable/disable all the filesystems indicated in 94.Pa /etc/fstab 95to be read-write with disk quotas. 96By default only the types of quotas listed in 97.Pa /etc/fstab 98are enabled. 99.It Fl g 100Only group quotas listed in 101.Pa /etc/fstab 102should be enabled/disabled. 103.It Fl u 104Only user quotas listed in 105.Pa /etc/fstab 106should be enabled/disabled. 107.It Fl v 108Causes 109.Nm 110and 111.Nm quotaoff 112to print a message for each filesystem where quotas are turned on or off. 113.El 114.Pp 115Specifying both 116.Fl g 117and 118.Fl u 119is equivalent to the default. 120.Sh FILES 121.Bl -tag -width quota.group -compact 122.It Pa quota.user 123at the filesystem root with user quotas 124.It Pa quota.group 125at the filesystem root with group quotas 126.It Pa /etc/fstab 127filesystem table 128.El 129.Sh SEE ALSO 130.Xr quota 1 , 131.Xr quotactl 2 , 132.Xr fstab 5 , 133.Xr edquota 8 , 134.Xr quotacheck 8 , 135.Xr repquota 8 136.Sh HISTORY 137The 138.Nm 139command appeared in 140.Bx 4.2 . 141