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:
Blocks in use The current number of 1KB file system blocks used by this user or group.
Inodes in use The current number of files used by this user or group.
Block soft limit The number of 1KB blocks the user or group will be allowed to use during normal operations.
Block hard limit The total amount of 1KB blocks the user or group will be allowed to use, including temporary storage during a quota grace period.
Inode soft limit The number of files the user or group will be allowed to create during normal operations.
Inode hard limit The total number of files the user or group will be allowed to create, including temporary files created during a quota grace period.
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 1 KB block amounts.
Last edited by AshLinux; 06-12-2007 at 08:44 PM.
|