1edquota(1M)             System Administration Commands             edquota(1M)
2
3
4

NAME

6       edquota - edit user quotas for ufs file system
7

SYNOPSIS

9       edquota [-p proto_user] username...
10
11
12       edquota -t
13
14

DESCRIPTION

16       edquota  is  a quota editor.  One or more users may be specified on the
17       command line. For each user a temporary file is created with  an  ASCII
18       representation  of  the  current  disk  quotas  for  that user for each
19       mounted ufs file system that has a quotas file, and an editor  is  then
20       invoked on the file. The quotas may then be modified, new quotas added,
21       etc. Upon leaving the editor, edquota reads the temporary file and mod‐
22       ifies the binary quota files to reflect the changes made.
23
24
25       The  editor  invoked  is  vi(1)  unless the EDITOR environment variable
26       specifies otherwise.
27
28
29       Only the super-user may edit quotas.  In order for quotas to be  estab‐
30       lished  on  a  file  system, the root directory of the file system must
31       contain a file, owned by root, called quotas. (See quotaon(1M).)
32
33
34       proto_user and username can be numeric, corresponding to the  UID of  a
35       user.  Unassigned  UIDs  may be specified; unassigned names may not. In
36       this way, default quotas can be established for  users  who  are  later
37       assigned a UID.
38
39
40       If  no  options are specified, the temporary file created will have one
41       or more lines of the format, where a block is considered to be  a  1024
42       byte (1K) block:
43
44         fs mount_point blocks (soft =number, \
45              hard =number ) inodes (soft =number, \
46              hard =number)
47
48
49
50
51       The  number fields may be modified to reflect desired values.
52

OPTIONS

54       The following options are supported:
55
56       -p    Duplicate  the  quotas of the proto_user specified for each user‐
57             name specified. This is the normal mechanism used  to  initialize
58             quotas for groups of users.
59
60
61       -t    Edit  the soft time limits for each file system. If the time lim‐
62             its    are    zero,    the     default     time     limits     in
63             /usr/include/sys/fs/ufs_quota.h are used. The temporary file cre‐
64             ated will have one or more lines of the form
65
66             fs mount_point blocks time limit =  number  tmunit,   files  time
67             limit = number tmunit
68
69
70
71       tmunit may be one of ``month'', ``week'', ``day'', ``hour'', ``min'' or
72       ``sec''; characters appended to these keywords are ignored, so you  may
73       write  ``months''  or  ``minutes'' if you prefer. The number and tmunit
74       fields may be modified to set desired values. Time limits  are  printed
75       in  the greatest possible time unit such that the value is greater than
76       or equal to one. If ``default'' is printed after the tmunit, this indi‐
77       cates that the value shown is zero (the default).
78

USAGE

80       See  largefile(5)  for  the description of the behavior of edquota when
81       encountering files greater than or equal to 2 Gbyte ( 2^31 bytes).
82

FILES

84       quotas         quota file at the file system root
85
86
87       /etc/mnttab    table of mounted file systems
88
89

ATTRIBUTES

91       See attributes(5) for descriptions of the following attributes:
92
93
94
95
96       ┌─────────────────────────────┬─────────────────────────────┐
97       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
98       ├─────────────────────────────┼─────────────────────────────┤
99       │Availability                 │SUNWcsu                      │
100       └─────────────────────────────┴─────────────────────────────┘
101

SEE ALSO

103       vi(1),   quota(1M),    quotacheck(1M),    quotaon(1M),    repquota(1M),
104       attributes(5), largefile(5), quotactl(7I)
105

NOTES

107       All UIDs can be assigned quotas.
108
109
110
111SunOS 5.11                        14 Feb 2003                      edquota(1M)
Impressum