Edquota
来自 ChinaUnix Wiki
Linux命令:edquota
功能说明:编辑用户或群组的quota。
语 法:edquota [-p <源用户名称>][-ug][用户或群组名称...] 或 edquota [-ug] -t
补充说明:edquota预设会使用vi来编辑使用者或群组的quota设置。
参 数: -u 设置用户的quota,这是预设的参数。 -g 设置群组的quota。 -p<源用户名称> 将源用户的quota设置套用至其他用户或群组。 -t 设置宽限期限。
英文版本,欢迎翻译:
NAME edquota - edit user quotas
SYNOPSIS edquota [ -p proto-username ] [ -u | -g ] username...
edquota [ -u | -g ] -t
DESCRIPTION edquota is a quota editor (see setquota(8) if you want to set quotas from script). One or more users or groups may be specified on the command line. 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.
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 imformational purposes; 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 the VISUAL or EDITOR environment variable specifies otherwise.
Only the super-user may edit quotas. (In order for quotas to be established on a file system, the root directory of the file system must contain a file, owned by root, called aquota.user or aquota.group. See quotaon(8) for details.)
OPTIONS -u Edit the user quota. This is the default.
-g Edit the group quota.
-p Duplicate the quotas of the prototypical user/group for each user/group specified. This is the normal mechanism used to initialize quotas for groups of users/groups.
-t Edit the soft time limits for each file system. Time units of sec(onds), min(utes), hour(s), day(s) are understood. Time limits are printed in the greatest possible time unit such that the value is greater than or equal to one.
FILES aquota.user or aquota.group quota files at the filesystem root /etc/mtab mounted filesystem table
SEE ALSO quota(1), vi(1), quotactl(2), quotacheck(8), quotaon(8), repquota(8), convertquota(8), setquota(8)
BUGS The format of the temporary file is inscrutable.
AUTHOR Jan Kara <jack@atrey.karlin.mff.cuni.cz> Based on old edquota probably by: Marco van Wieringen <mvw@planets.elm.net>
Fri Mar 09 2001 1
