EDQUOTA(8) EDQUOTA(8)
名前
edquota - ユーザーの quota を編集する
書式
edquota [ -p protoname ] [ -u | -g ] [ -r ] [ -F format-name ] [ -f
filesystem ] username...
edquota [ -u | -g ] [ -F format-name ] [ -f filesystem ] -t
edquota [ -u | -g ] [ -F format-name ] [ -f filesystem ] -T username |
groupname...
説明
edquota は quota のエディタである。 1 つ以上のユーザーまたはグループを
コマンドライン上で指定することができる。もしユーザーまたはグループを 指
定 する箇所に数字を指定した場合、その数字はそれぞれ UID または GID とし
て認識されます。各ユーザーまたはグループ毎に、現在のディスク quota に対
応した ASCII 形式のテンポラリファイルを作り、エディタを起動してそのファ
イルを開く。この上で、quota の変更や新しい quota の追加などができ る 。
quota を 0 に設定すると、quota を適用しないという意味になる。
ユ ーザーはある猶予期間、ソフトリミットを超過することが許可されている。
猶予期間はファイルシステム毎に指定することができる。猶予期間を過ぎる と
、ソフトリミットはハードリミットとして執行される。
フ ァイルに書かれている現在の使用状況の情報は、情報を提供するためのもの
である。ハードリミットとソフトリミットのみが変更できる。
エディタを終了すると、 edquota はテンポラリファイルを読み込んだ後、バイ
ナリの quota ファイルを更新して変更点を反映させる。
環 境変数 EDITOR または VISUAL で他のものが指定されない限り、起動される
エディタは vi(1) である。
スーパーユーザーのみが quota を編集することができる。
オプション
-r リモートサーバ上の rpc.rquotad を使って、ローカルでない quota を
編集する。 -n オプションも同じ意味であるが、後方互換性のためにメ
ンテナンスされている。
-u ユーザーの quota を編集する。これがデフォルトである。
-g グループの quota を編集する。
-p protoname
ひな型として指定されたユーザーの quota 設定を、指定したユーザ ー
の quota に複製する。多数のユーザーの quota を設定する場合、通常
この方法を用いる。
-F format-name
指定されたフォーマットの quota を編集する (つまり、フォーマッ ト
の 自 動 判 定を行わない)。指定可能なフォーマット名は以下の通り:
vfsold (バージョン 1 の quota), vfsv0 (バージョン 2 の quota),
rpc (NFS 越しの quota), xfs (XFS ファイルシステム上の quota)。
-f filesystem
指定したファイルシステムにのみ指定した操作を行う (デフォルトでは
quota がある全てのファイルシステムに操作を行う)。
-t 各ファイルシステムのソフトタイムリミットを編集する。古 い quota
フ ォ ーマットでは、タイムリミットがゼロの場合、
EDQUOTA(8) EDQUOTA(8)
NAME
edquota - edit user quotas
SYNOPSIS
edquota [ -p protoname ] [ -u | -g ] [ -rm ] [ -F format-name ] [ -f
filesystem ] username...
edquota [ -u | -g ] [ -F format-name ] [ -f filesystem ] -t
edquota [ -u | -g ] [ -F format-name ] [ -f filesystem ] -T username |
groupname...
DESCRIPTION
edquota is a quota editor. One or more users or groups may be speci-
fied on the command line. If a number is given in the place of
user/group name it is treated as an UID/GID. For each user or group a
temporary file is created with an ASCII representation of the current
disk quotas for that user or group and an editor is then invoked on the
file. The quotas may then be modified, new quotas added, etc. Setting
a quota to zero indicates that no quota should be imposed.
Block usage and limits are reported and interpereted as multiples of
kibibyte (1024 bytes) blocks by default. Symbols K, M, G, and T can be
appended to numeric value to express kibibytes, mebibytes, gibibytes,
and tebibytes.
Inode usage and limits are interpreted literally. Symbols k, m, g, and
t can be appended to numeric value to express multiples of 10^3, 10^6,
10^9, and 10^12 inodes.
Users are permitted to exceed their soft limits for a grace period that
may be specified per filesystem. Once the grace period has expired,
the soft limit is enforced as a hard limit.
The current usage information in the file is for informational pur-
poses; only the hard and soft limits can be changed.
Upon leaving the editor, edquota reads the temporary file and modifies
the binary quota files to reflect the changes made.
The editor invoked is vi(1) unless either the EDITOR or the VISUAL
environment variable specifies otherwise.
Only the super-user may edit quotas.
OPTIONS
-r, --remote
Edit also non-local 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. The
-n option is equivalent, and is maintained for backward compati-
bility.
-m, --no-mixed-pathnames
Currently, pathnames of NFSv4 mountpoints are sent without lead-
ing slash in the path. rpc.rquotad uses this to recognize NFSv4
mounts and properly prepend pseudoroot of NFS filesystem to the
path. If you specify this option, setquota will always send
paths with a trailing slash. This can be useful for legacy rea-
sons but be aware that quota over RPC will stop working if you
are using new rpc.rquotad.
-u, --user
Edit the user quota. This is the default.
-g, --group
Edit the group quota.
-p, --prototype=protoname
Duplicate the quotas of the prototypical user specified for each
user specified. This is the normal mechanism used to initialize
quotas for groups of users.
--always-resolve
Always try to translate user / group name to uid / gid even if
the name is composed of digits only.
-F, --format=format-name
Edit quota for specified format (ie. don’t perform format
autodetection). Possible format names are: vfsold Original
quota format with 16-bit UIDs / GIDs, vfsv0 Quota format with
32-bit UIDs / GIDs, 64-bit space usage, 32-bit inode usage and
limits, vfsv1 Quota format with 64-bit quota limits and usage,
rpc (quota over NFS), xfs (quota on XFS filesystem)
-f, --filesystem filesystem
Perform specified operations only for given filesystem (default
is to perform operations for all filesystems with quota).
-t, --edit-period
Edit the soft time limits for each filesystem. In old quota
format if the time limits are zero, the default time limits in
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa