1SETQUOTA(8)                 System Manager's Manual                SETQUOTA(8)
2
3
4

NAME

6       setquota - set disk quotas
7

SYNOPSIS

9       setquota  [  -rm  ] [ -u | -g ] [ -F quotaformat ] name block-softlimit
10       block-hardlimit inode-softlimit inode-hardlimit -a | filesystem...
11
12       setquota [ -rm ] [ -u | -g ] [ -F quotaformat ] [ -p protoname  ]  name
13       -a | filesystem...
14
15       setquota -b [ -rm ] [ -u | -g ] [ -F quotaformat ] -a | filesystem...
16
17       setquota -t [ -u | -g ] [ -F quotaformat ] block-grace inode-grace -a |
18       filesystem...
19
20       setquota -T [ -u | -g ] [ -F quotaformat ] name block-grace inode-grace
21       -a | filesystem...
22

DESCRIPTION

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

FILES

102       aquota.user or aquota.group
103                           quota file at the filesystem root (version 2 quota,
104                           non-XFS filesystems)
105       quota.user or quota.group
106                           quota file at the filesystem root (version 1 quota,
107                           non-XFS filesystems)
108       /etc/mtab           mounted filesystem table
109

SEE ALSO

111       edquota(8),   quota(1),   quotactl(2),    quotacheck(8),    quotaon(8),
112       repquota(8)
113
114
115
116                                                                   SETQUOTA(8)
Impressum