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