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 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207
|
.TH SETQUOTA 8
.SH NAME
setquota \- set disk quotas
.SH SYNOPSIS
.B setquota
[
.B \-rm
]
[
.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 \-rm
]
[
.B \-u
|
.B \-g
]
[
.B \-F
.I quotaformat
]
[
.B \-p
.I protoname
]
.I name
.B \-a
|
.I filesystem...
.LP
.B setquota
.B \-b
[
.B \-rm
]
[
.B \-u
|
.B \-g
]
[
.B \-F
.I quotaformat
]
.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. Note that if a number is
given in the place of a user/group name it is treated as an UID/GID.
.TP
.B -r, --remote
Edit also remote quota use rpc.rquotad on remote server to set quota. This
option is available only if quota tools were compiled with enabled support
for setting quotas over RPC.
.TP
.B -m, --no-mixed-pathnames
Currently, pathnames of NFSv4 mountpoints are sent without leading slash in the path.
.BR rpc.rquotad
uses this to recognize NFSv4 mounts and properly prepend pseudoroot of NFS filesystem
to the path. If you specify this option,
.BR setquota
will always send paths with a leading slash. This can be useful for legacy reasons but
be aware that quota over RPC will stop working if you are using new
.BR rpc.rquotad .
.TP
.B -F, --format=\f2quotaformat\f1
Perform setting for specified format (ie. don't perform format autodetection).
Possible format names are:
.B vfsold
Original quota format with 16-bit UIDs / GIDs,
.B vfsv0
Quota format with 32-bit UIDs / GIDs, 64-bit space usage, 32-bit inode usage and limits,
.B vfsv1
Quota format with 64-bit quota limits and usage,
.B rpc
(quota over NFS),
.B xfs
(quota on XFS filesystem)
.TP
.B -u, --user
Set user quotas for named user. This is the default.
.TP
.B -g, --group
Set group quotas for named group.
.TP
.B -p, --prototype=\f2protoname\f1
Use quota settings of user or group
.I protoname
to set the quota for the named user or group.
.TP
.B --always-resolve
Always try to translate user / group name to uid / gid even if the name
is composed of digits only.
.TP
.B -b, --batch
Read information to set from stdin (input format is
.I name block-softlimit block-hardlimit inode-softlimit inode-hardlimit
). Empty lines and lines starting with # are ignored.
.TP
.B -c, --continue-batch
If parsing of an input line in batch mode fails, continue with processing the next line.
.TP
.B -t, --edit-period
Set grace times for users/groups. Times
.B block-grace
and
.B inode-grace
are specified in seconds.
.TP
.B -T, --edit-times
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, --all
Go through all filesystems with quota in
.B /etc/mtab
and perform setting.
.PP
To disable a quota, set the corresponding 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)
|