1SETQUOTA(8) System Manager's Manual SETQUOTA(8)
2
3
4
6 setquota - set disk quotas
7
9 setquota [ -rm ] [ -u | -g | -P ] [ -F quotaformat ] name block-soft‐
10 limit block-hardlimit inode-softlimit inode-hardlimit -a | filesys‐
11 tem...
12
13 setquota [ -rm ] [ -u | -g | -P ] [ -F quotaformat ] [ -p protoname ]
14 name -a | filesystem...
15
16 setquota -b [ -rm ] [ -u | -g | -P ] [ -F quotaformat ] -a | filesys‐
17 tem...
18
19 setquota -t [ -u | -g | -P ] [ -F quotaformat ] block-grace inode-grace
20 -a | filesystem...
21
22 setquota -T [ -u | -g | -P ] [ -F quotaformat ] name block-grace inode-
23 grace -a | filesystem...
24
26 setquota is a command line quota editor. The filesystem,
27 user/group/project name and new quotas for this filesystem can be spec‐
28 ified on the command line. Note that if a number is given in the place
29 of a user/group/project name it is treated as an UID/GID/project ID.
30
31 -r, --remote
32 Edit also remote quota use rpc.rquotad on remote server to set
33 quota. This option is available only if quota tools were com‐
34 piled with enabled support for setting quotas over RPC.
35
36 -m, --no-mixed-pathnames
37 Currently, pathnames of NFSv4 mountpoints are sent without lead‐
38 ing slash in the path. rpc.rquotad uses this to recognize NFSv4
39 mounts and properly prepend pseudoroot of NFS filesystem to the
40 path. If you specify this option, setquota will always send
41 paths with a leading slash. This can be useful for legacy rea‐
42 sons but be aware that quota over RPC will stop working if you
43 are using new rpc.rquotad.
44
45 -F, --format=quotaformat
46 Perform setting for specified format (ie. don't perform format
47 autodetection). Possible format names are: vfsold Original
48 quota format with 16-bit UIDs / GIDs, vfsv0 Quota format with
49 32-bit UIDs / GIDs, 64-bit space usage, 32-bit inode usage and
50 limits, vfsv1 Quota format with 64-bit quota limits and usage,
51 rpc (quota over NFS), xfs (quota on XFS filesystem)
52
53 -u, --user
54 Set user quotas for named user. This is the default.
55
56 -g, --group
57 Set group quotas for named group.
58
59 -P, --project
60 Set project quotas for named project.
61
62 -p, --prototype=protoname
63 Use quota settings of user, group or project protoname to set
64 the quota for the named user, group or project.
65
66 --always-resolve
67 Always try to translate user / group / project name to uid / gid
68 / project ID even if the name is composed of digits only.
69
70 -b, --batch
71 Read information to set from stdin (input format is name block-
72 softlimit block-hardlimit inode-softlimit inode-hardlimit ).
73 Empty lines and lines starting with # are ignored.
74
75 -c, --continue-batch
76 If parsing of an input line in batch mode fails, continue with
77 processing the next line.
78
79 -t, --edit-period
80 Set grace times for users/groups/projects. Times block-grace and
81 inode-grace are specified in seconds.
82
83 -T, --edit-times
84 Alter times for individual user/group/project when softlimit is
85 enforced. Times block-grace and inode-grace are specified in
86 seconds or can be string 'unset'.
87
88 -a, --all
89 Go through all filesystems with quota in /etc/mtab and perform
90 setting.
91
92 block-softlimit and block-hardlimit are interpreted as multiples of
93 kibibyte (1024 bytes) blocks by default. Symbols K, M, G, and T can be
94 appended to numeric value to express kibibytes, mebibytes, gibibytes,
95 and tebibytes.
96
97 inode-softlimit and inode-hardlimit are interpreted literally. Symbols
98 k, m, g, and t can be appended to numeric value to express multiples of
99 10^3, 10^6, 10^9, and 10^12 inodes.
100
101 To disable a quota, set the corresponding parameter to 0. To change
102 quotas for several filesystems, invoke once for each filesystem.
103
104 Only the super-user may edit quotas.
105
107 aquota.user or aquota.group
108 quota file at the filesystem root (version 2 quota,
109 non-XFS filesystems)
110 quota.user or quota.group
111 quota file at the filesystem root (version 1 quota,
112 non-XFS filesystems)
113 /etc/mtab mounted filesystem table
114
116 edquota(8), quota(1), quotactl(2), quotacheck(8), quotaon(8),
117 repquota(8)
118
119
120
121 SETQUOTA(8)