summaryrefslogtreecommitdiff
path: root/setquota.8
blob: fd109091dfb16ce420168aa4c1325d0658aaaf34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
.TH SETQUOTA 8
.SH NAME
setquota \- set disk quotas
.SH SYNOPSIS
.B setquota
[
.B \-r
]
[
.B \-u
|
.B \-g
]
[
.B \-F
.I quotaformat
]
.I name
.I block-softlimit
.I block-hardlimit
.I inode-softlimit
.I inode-hardlimit
.B \-a
|
.I filesystem...
.LP
.B setquota
[
.B \-r
]
[
.B \-u
|
.B \-g
]
[
.B \-F
.I quotaformat
]
[
.B \-p
.I protoname 
]
.I name
.B \-a
|
.I filesystem...
.LP
.B setquota
.B \-t
[
.B \-u
|
.B \-g
]
[
.B \-F
.I quotaformat
]
.I block-grace
.I inode-grace
.B \-a
|
.I filesystem...
.LP
.B setquota
.B \-T
[
.B \-u
|
.B \-g
]
[
.B \-F
.I quotaformat
]
.I name
.I block-grace
.I inode-grace
.B \-a
|
.I filesystem...
.SH DESCRIPTION
.IX  "setquota command"  ""  "\fLsetquota\fP \(em set disk quotas"
.IX  set "disk quotas \(em \fLsetquota\fP"
.IX  "disk quotas"  "setquota command"  ""  "\fLsetquota\fP \(em set disk quotas"
.IX  "disk quotas"  "setquota command"  ""  "\fLsetquota\fP \(em set disk quotas"
.IX  "quotas"  "setquota command"  ""  "\fLsetquota\fP \(em set disk quotas"
.IX  "filesystem"  "setquota command"  ""  "\fLsetquota\fP \(em set disk quotas"
.B setquota
is a command line quota editor.
The filesystem, user/group name and new quotas for this
filesystem can be specified on the command line.
.TP
.B -r
Edit also remote quota use rpc.rquotad on remote server to set quota.
.TP
.B -F \f2quotaformat\f1
Perform setting for specified format (ie. don't perform format autodetection).
Possible format names are:
.B vfsold
(version 1 quota),
.B vfsv0
(version 2 quota),
.B rpc
(quota over NFS),
.B xfs
(quota on XFS filesystem)
.TP
.B -u
Set user quotas for named user. This is the default.
.TP
.B -g
Set group quotas for named group.
.TP
.B -p \f2protoname\f1
Use quota settings of user or group
.I protoname
to set the quota for the named user or group.
.TP
.B -t
Set grace times for users/groups. Times
.B block-grace
and
.B inode-grace
are specified in seconds.
.TP
.B -T
Alter times for individual user/group when softlimit is enforced. Times
.B block-grace
and
.B inode-grace
are specified in seconds or can be string 'unset'.
.TP
.B -a
Go through all filesystems with quota in
.B /etc/mtab
and perform setting.
.PP
To disable a quota, set the coresponding parameter to 0. To change quotas
for several filesystems, invoke once for each filesystem.
.PP
Only the super-user may edit quotas.
.SH FILES
.PD 0
.TP 20
.B aquota.user or aquota.group
quota file at the filesystem root (version 2 quota, non-XFS filesystems)
.TP
.B quota.user or quota.group
quota file at the filesystem root (version 1 quota, non-XFS filesystems)
.TP
.B /etc/mtab
mounted filesystem table
.PD
.SH SEE ALSO
.BR edquota (8),
.BR quota (1),
.BR quotactl (2),
.BR quotacheck (8),
.BR quotaon (8),
.BR repquota (8)