edquota [ -u ] [ -p Proto-UserName ] UserName ...
edquota [ -g [ -p Proto-GroupName ] GroupName ... ]
The edquota command creates and edits quotas. It creates a temporary file that contains each user's and group's current disk quotas. It determines the list of file systems with established quotas from the /etc/filesystems file. The edquota command also invokes the vi editor (or the editor specified by the EDITOR environment variable) on the temporary file so that quotas can be added and modified.
Note: If you specify an editor in the EDITOR environment variable, you must specify the full pathname of the editor.
Quotas are maintained separately for each file system. When you create or edit a quota for a user or a group, the quota applies to a specific file system. A quota must be set in each file system where you want to use quotas.
By default, or when used with the -u flag, the edquota command edits the quotas of one or more users specified by the UserName parameter on the command line. When used with the -g flag, the edquota command edits the quotas of one or more groups specified by the GroupName parameter. The -p flag identifies a prototypical user (UserName) or a prototypical group (Proto-GroupName) and duplicates these quotas for a specified user or group.
A user can exceed established soft limits for a default grace period of 1 week. Upon expiration of the grace period, the soft limit is enforced as a hard limit. The grace period can be specified in days, hours, minutes, or seconds. A value of 0 indicates that the default grace period is imposed; a value of 1 second indicates that no grace period is granted. The -t flag changes the grace period.
Fields displayed in the temporary
file are:
Note: A hard limit with a value of 1 indicates that no allocations are permitted. A soft limit with a value of 1, in conjunction with a hard limit with a value of 0, indicates that allocations are permitted only on a temporary basis.
When the editor is exited, the edquota command reads the temporary file and modifies the binary quota files to reflect any changes.
Hard or soft limits can only be specified in whole 1KB block amounts.
Note: If the user or group names contains all numbers then it will be treated as a user or group ID. Quotas will then be edited for the ID rather than the name.
Access Control: | Only the root user can execute this command. |
To create quotas for user sharl, using the quotas established for user davec as a prototype, enter:
edquota -u -p davec sharl
quota.user | Specifies user quotas. |
quota.group | Specifies group quotas. |
/etc/filesystems | Contains file system names and locations. |
The quota command, quotacheck command quotaon and quotaoff command, repquota command.
The Disk Quota System Overview in AIX 5L Version 5.1 System Management Concepts: Operating System and Devices introduces the disk quota system.
How to Set Up the Disk Quota System in AIX 5L Version 5.1 System Management Guide: Operating System and Devices describes how to establish disk quotas.