Debian Codegraph @

upstream/debian-unstable/man8/setquota.8

raw
1 .TH SETQUOTA 8
2 .SH NAME
3 setquota \- set disk quotas
4 .SH SYNOPSIS
5 .B setquota
6 [
7 .B \-rm
8 ]
9 [
10 .B \-u
11 |
12 .B \-g
13 |
14 .B \-P
15 ]
16 [
17 .B \-F
18 .I quotaformat
19 ]
20 .I name
21 .I block-softlimit
22 .I block-hardlimit
23 .I inode-softlimit
24 .I inode-hardlimit
25 .B \-a
26 |
27 .I filesystem...
28 .LP
29 .B setquota
30 [
31 .B \-rm
32 ]
33 [
34 .B \-u
35 |
36 .B \-g
37 |
38 .B \-P
39 ]
40 [
41 .B \-F
42 .I quotaformat
43 ]
44 [
45 .B \-p
46 .I protoname
47 ]
48 .I name
49 .B \-a
50 |
51 .I filesystem...
52 .LP
53 .B setquota
54 .B \-b
55 [
56 .B \-rm
57 ]
58 [
59 .B \-u
60 |
61 .B \-g
62 |
63 .B \-P
64 ]
65 [
66 .B \-F
67 .I quotaformat
68 ]
69 .B \-a
70 |
71 .I filesystem...
72 .LP
73 .B setquota
74 .B \-t
75 [
76 .B \-u
77 |
78 .B \-g
79 |
80 .B \-P
81 ]
82 [
83 .B \-F
84 .I quotaformat
85 ]
86 .I block-grace
87 .I inode-grace
88 .B \-a
89 |
90 .I filesystem...
91 .LP
92 .B setquota
93 .B \-T
94 [
95 .B \-u
96 |
97 .B \-g
98 |
99 .B \-P
100 ]
101 [
102 .B \-F
103 .I quotaformat
104 ]
105 .I name
106 .I block-grace
107 .I inode-grace
108 .B \-a
109 |
110 .I filesystem...
111 .SH DESCRIPTION
112 .IX "setquota command" "" "\fLsetquota\fP \(em set disk quotas"
113 .IX set "disk quotas \(em \fLsetquota\fP"
114 .IX "disk quotas" "setquota command" "" "\fLsetquota\fP \(em set disk quotas"
115 .IX "disk quotas" "setquota command" "" "\fLsetquota\fP \(em set disk quotas"
116 .IX "quotas" "setquota command" "" "\fLsetquota\fP \(em set disk quotas"
117 .IX "filesystem" "setquota command" "" "\fLsetquota\fP \(em set disk quotas"
118 .B setquota
119 is a command line quota editor.
120 The filesystem, user/group/project name and new quotas for this
121 filesystem can be specified on the command line. Note that if a number is
122 given in the place of a user/group/project name it is treated as an UID/GID/project ID.
123 .TP
124 .B -r, --remote
125 Edit also remote quota use rpc.rquotad on remote server to set quota. This
126 option is available only if quota tools were compiled with enabled support
127 for setting quotas over RPC.
128 .TP
129 .B -m, --no-mixed-pathnames
130 Currently, pathnames of NFSv4 mountpoints are sent without leading slash in the path.
131 .BR rpc.rquotad
132 uses this to recognize NFSv4 mounts and properly prepend pseudoroot of NFS filesystem
133 to the path. If you specify this option,
134 .BR setquota
135 will always send paths with a leading slash. This can be useful for legacy reasons but
136 be aware that quota over RPC will stop working if you are using new
137 .BR rpc.rquotad .
138 .TP
139 .B -F, --format=\f2quotaformat\f1
140 Perform setting for specified format (ie. don't perform format autodetection).
141 Possible format names are:
142 .B vfsold
143 Original quota format with 16-bit UIDs / GIDs,
144 .B vfsv0
145 Quota format with 32-bit UIDs / GIDs, 64-bit space usage, 32-bit inode usage and limits,
146 .B vfsv1
147 Quota format with 64-bit quota limits and usage,
148 .B rpc
149 (quota over NFS),
150 .B xfs
151 (quota on XFS filesystem)
152 .TP
153 .B -u, --user
154 Set user quotas for named user. This is the default.
155 .TP
156 .B -g, --group
157 Set group quotas for named group.
158 .TP
159 .B -P, --project
160 Set project quotas for named project.
161 .TP
162 .B -p, --prototype=\f2protoname\f1
163 Use quota settings of user, group or project
164 .I protoname
165 to set the quota for the named user, group or project.
166 .TP
167 .B --always-resolve
168 Always try to translate user / group / project name to
169 uid / gid / project ID even if the name is composed of
170 digits only.
171 .TP
172 .B -b, --batch
173 Read information to set from stdin (input format is
174 .I name block-softlimit block-hardlimit inode-softlimit inode-hardlimit
175 ). Empty lines and lines starting with # are ignored.
176 .TP
177 .B -c, --continue-batch
178 If parsing of an input line in batch mode fails, continue with processing the next line.
179 .TP
180 .B -t, --edit-period
181 Set grace times for users/groups/projects. Times
182 .B block-grace
183 and
184 .B inode-grace
185 are specified in seconds.
186 .TP
187 .B -T, --edit-times
188 Alter times for individual user/group/project when softlimit is enforced. Times
189 .B block-grace
190 and
191 .B inode-grace
192 are specified in seconds or can be string 'unset'.
193 .TP
194 .B -a, --all
195 Go through all filesystems with quota in
196 .B /etc/mtab
197 and perform setting.
198 .PP
199 .I block-softlimit
200 and
201 .I block-hardlimit
202 are interpreted as multiples of kibibyte (1024 bytes) blocks by default.
203 Symbols K, M, G, and T can be appended to numeric value to express kibibytes,
204 mebibytes, gibibytes, and tebibytes.
205 .PP
206 .I inode-softlimit
207 and
208 .I inode-hardlimit
209 are interpreted literally. Symbols k, m, g, and t can be appended to numeric
210 value to express multiples of 10^3, 10^6, 10^9, and 10^12 inodes.
211 .PP
212 To disable a quota, set the corresponding parameter to 0. To change quotas
213 for several filesystems, invoke once for each filesystem.
214 .PP
215 Only the super-user may edit quotas.
216 .SH FILES
217 .PD 0
218 .TP 20
219 .B aquota.user or aquota.group
220 quota file at the filesystem root (version 2 quota, non-XFS filesystems)
221 .TP
222 .B quota.user or quota.group
223 quota file at the filesystem root (version 1 quota, non-XFS filesystems)
224 .TP
225 .B /etc/mtab
226 mounted filesystem table
227 .PD
228 .SH SEE ALSO
229 .BR edquota (8),
230 .BR quota (1),
231 .BR quotactl (2),
232 .BR quotacheck (8),
233 .BR quotaon (8),
234 .BR repquota (8)