Dell 740N Laptop User Manual


 
Command ReferenceA-143
A user or group is specified by one of the following values:
a user or group name, which must appear in the password or group database
(either in the /etc/passwd or /etc/group file on the filer, or in the password or
group NIS map if NIS is enabled on the filer and is being used for the pass-
word or group database);
a numerical user or group ID;
the pathname of a file owned by that user or group.
The user or group identifier for a user or group quota can be followed by an @/
vol/
volume
string, which specifies the volume to which the quota applies. If the
string is omitted, the quota applies to the root volume.
A quota of type tree can only be applied to a qtree, which is a directory in the root
directory of a specified volume. A qtree is created with the qtree create or quota
qtree command.
User and group quotas can be created inside a qtree, so that the users or groups
use of space or files within that qtree is restricted. This is done by specifying the
type as user@
tree
or group@
tree
where
tree
is the name of the qtree. In the
example above, we first limit overall usage in the qtree /vol/vol0/export and then
we restrict the user mhoward to 50 MB and 5,120 files under the /vol/vol0/export
tree. Similarly, the group stooges has been limited to 100 MB of disk space and
10,240 files under the /vol/vol0/export tree.
In any operation that creates files or writes to them, all applicable quotas must be
satisfied. For example, the user mhoward can write to a file in the /vol/vol0/export
tree if all of these requirements are met:
his total disk usage in the root volume does not exceed 500 MB
his total number of files in the root volume does not exceed 51,200
his usage within the /vol/vol0/export tree does not exceed 50 MB
his number of files within the /vol/vol0/export tree does not exceed 5,120
the space already in use in the /vol/vol0/export tree does not exceed 750 MB
the number of files in the /vol/vol0/export tree does not exceed 768,000
The asterisk (*) in the /etc/quotas file specifies a default user or a group quota
depending on the type. Any user or group that is not specifically mentioned in the
/etc/quotas file is subject to the limits of the default user or group. Default user or
group quotas can be specified on a per qtree basis or a per volume basis.
Disk and file size limits in the third and fourth columns of the /etc/quotas file ends
in K, M, or G. K indicates kilobytes (or kilofiles). That is, it multiplies the
limit by 1,024. Similarly, M denotes megabytes (or megafiles) and G denotes
gigabytes (or gigafiles). The default for the disk limit is kilobytes.
quotas