4.4BSD snapshot (revision 8.1); add 1993 to copyright
[unix-history] / usr / src / usr.sbin / quotaon / quotaon.8
CommitLineData
7ab6cecb
KB
1.\" Copyright (c) 1983, 1990, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
b66321c5 3.\"
79fdf6e5
KM
4.\" This code is derived from software contributed to Berkeley by
5.\" Robert Elz at The University of Melbourne.
8afc7c2e 6.\" %sccs.include.redist.man%
f9ac90b4 7.\"
7ab6cecb 8.\" @(#)quotaon.8 8.1 (Berkeley) %G%
b66321c5 9.\"
b42074ab
CL
10.Dd
11.Dt QUOTAON 8
12.Os BSD 4.2
13.Sh NAME
14.Nm quotaon ,
15.Nm quotaoff
16.Nd turn filesystem quotas on and off
17.Sh SYNOPSIS
18.Nm quotaon
19.Op Fl g
20.Op Fl u
21.Op Fl v
22.Ar filesystem Ar ...
23.Nm quotaon
24.Op Fl g
25.Op Fl u
26.Op Fl v
27.Fl a
28.Nm quotaoff
29.Op Fl g
30.Op Fl u
31.Op Fl v
32.Ar filesystem Ar ...
33.Nm quotaoff
34.Op Fl g
35.Op Fl u
36.Op Fl v
37.Fl a
38.Sh DESCRIPTION
39.Nm Quotaon
b26cc6a5 40announces to the system that disk quotas should be enabled on one or more
79fdf6e5 41filesystems.
b42074ab
CL
42.Nm Quotaoff
43announces to the system that the specified
44filesystems should have any disk quotas
45diskquotas turned off.
79fdf6e5 46The filesystems specified must have entries in
b42074ab 47.Pa /etc/fstab
79fdf6e5 48and be mounted.
b42074ab 49.Nm Quotaon
79fdf6e5 50expects each filesystem to have quota files named
b42074ab 51.Pa quota.user
79fdf6e5 52and
b42074ab 53.Pa quota.group
79fdf6e5
KM
54which are located at the root of the associated file system.
55These defaults may be overridden in
b42074ab 56.Pa /etc/fstab .
79fdf6e5 57By default both user and group quotas are enabled.
b42074ab
CL
58.Pp
59Available options:
60.Bl -tag -width Ds
61.It Fl a
79fdf6e5 62If the
b42074ab 63.Fl a
79fdf6e5 64flag is supplied in place of any filesystem names,
b42074ab
CL
65.Nm quotaon Ns / Ns quotaoff
66will enable/disable all the filesystems indicated in
67.Pa /etc/fstab
79fdf6e5
KM
68to be read-write with disk quotas.
69By default only the types of quotas listed in
b42074ab 70.Pa /etc/fstab
79fdf6e5 71are enabled.
b42074ab
CL
72.It Fl g
73Only group quotas listed in
74.Pa /etc/fstab
75should be enabled/disabled.
76.It Fl u
77Only user quotas listed in
78.Pa /etc/fstab
79should be enabled/disabled.
80.It Fl v
81Causes
82.Nm quotaon
b26cc6a5 83and
b42074ab 84.Nm quotaoff
79fdf6e5 85to print a message for each filesystem where quotas are turned on or off.
b42074ab
CL
86.El
87.Pp
88Specifying both
89.Fl g
90and
91.Fl u
92is equivalent to the default.
93.Sh FILES
94.Bl -tag -width quota.group -compact
95.It Pa quota.user
96at the filesystem root with user quotas
97.It Pa quota.group
98at the filesystem root with group quotas
99.It Pa /etc/fstab
100filesystem table
101.El
102.Sh SEE ALSO
103.Xr quota 1 ,
104.Xr quotactl 2 ,
105.Xr fstab 5 ,
106.Xr edquota 8 ,
107.Xr quotacheck 8 ,
108.Xr repquota 8
109.Sh HISTORY
110The
111.Nm
112command appeared in
113.Bx 4.2 .