| 1 | .\" Copyright (c) 1983, 1990 Regents of the University of California. |
| 2 | .\" All rights reserved. |
| 3 | .\" |
| 4 | .\" This code is derived from software contributed to Berkeley by |
| 5 | .\" Robert Elz at The University of Melbourne. |
| 6 | .\" |
| 7 | .\" %sccs.include.redist.man% |
| 8 | .\" |
| 9 | .\" @(#)edquota.8 6.7 (Berkeley) %G% |
| 10 | .\" |
| 11 | .TH EDQUOTA 8 "" |
| 12 | .UC 5 |
| 13 | .SH NAME |
| 14 | edquota \- edit user quotas |
| 15 | .SH SYNOPSIS |
| 16 | .B edquota |
| 17 | [ |
| 18 | .I \-u |
| 19 | ] [ |
| 20 | .I \-p |
| 21 | proto-username |
| 22 | ] |
| 23 | username ... |
| 24 | .br |
| 25 | .B edquota |
| 26 | .I \-g |
| 27 | [ |
| 28 | .I \-p |
| 29 | proto-groupname |
| 30 | ] |
| 31 | groupname ... |
| 32 | .br |
| 33 | .B edquota |
| 34 | .I -t |
| 35 | [ |
| 36 | .I -u |
| 37 | ] |
| 38 | .br |
| 39 | .B edquota |
| 40 | .I -t |
| 41 | .I -g |
| 42 | .br |
| 43 | .SH DESCRIPTION |
| 44 | .I Edquota |
| 45 | is a quota editor. |
| 46 | By default, or if the \fI-u\fP flag is specified, |
| 47 | one or more users may be specified on the command line. |
| 48 | For each user a temporary file is created |
| 49 | with an ASCII representation of the current |
| 50 | disk quotas for that user. |
| 51 | The list of filesystems with user quotas is determined from |
| 52 | .IR /etc/fstab . |
| 53 | An editor is invoked on the ASCII file. |
| 54 | The editor invoked is |
| 55 | .IR vi (1) |
| 56 | unless the environment variable EDITOR specifies otherwise. |
| 57 | .PP |
| 58 | The quotas may then be modified, new quotas added, etc. |
| 59 | Setting a quota to zero indicates that no quota should be imposed. |
| 60 | Setting a hard limit to one indicates that no allocations should |
| 61 | be permitted. |
| 62 | Setting a soft limit to one with a hard limit of zero |
| 63 | indicates that allocations should be permitted on |
| 64 | only a temporary basis (see \fI-t\fP below). |
| 65 | The current usage information in the file is for informational purposes; |
| 66 | only the hard and soft limits can be changed. |
| 67 | .PP |
| 68 | On leaving the editor, |
| 69 | .I edquota |
| 70 | reads the temporary file and modifies the binary |
| 71 | quota files to reflect the changes made. |
| 72 | .PP |
| 73 | If the |
| 74 | .B \-p |
| 75 | option is specified, |
| 76 | .I edquota |
| 77 | will duplicate the quotas of the prototypical user |
| 78 | specified for each user specified. |
| 79 | This is the normal mechanism used to |
| 80 | initialize quotas for groups of users. |
| 81 | .PP |
| 82 | If the \fI-g\fP flag is specified, |
| 83 | .I edquota |
| 84 | is invoked to edit the quotas of |
| 85 | one or more groups specified on the command line. |
| 86 | The \fI-p\fP flag can be specified in conjunction with |
| 87 | the \fI-g\fP flag to specify a prototypical group |
| 88 | to be duplicated among the listed set of groups. |
| 89 | .PP |
| 90 | Users are permitted to exceed their soft limits |
| 91 | for a grace period that may be specified per filesystem. |
| 92 | Once the grace period has expired, |
| 93 | the soft limit is enforced as a hard limit. |
| 94 | The default grace period for a filesystem is specified in |
| 95 | .IR /usr/include/ufs/quota.h . |
| 96 | The \fI-t\fP flag can be used to change the grace period. |
| 97 | By default, or when invoked with the \fI-u\fP flag, |
| 98 | the grace period is set for all the filesystems with user |
| 99 | quotas specified in |
| 100 | .IR /etc/fstab . |
| 101 | When invoked with the \fI-g\fP flag the grace period is |
| 102 | set for all the filesystems with group quotas specified in |
| 103 | .IR /etc/fstab . |
| 104 | The grace period may be specified in days, hours, minutes, or seconds. |
| 105 | Setting a grace period to zero indicates that the default |
| 106 | grace period should be imposed. |
| 107 | Setting a grace period to one second indicates that no |
| 108 | grace period should be granted. |
| 109 | .PP |
| 110 | Only the super-user may edit quotas. |
| 111 | .SH FILES |
| 112 | .DT |
| 113 | \fIquota.user\fP at the filesystem root with user quotas |
| 114 | .br |
| 115 | \fIquota.group\fP at the filesystem root with group quotas |
| 116 | .br |
| 117 | /etc/fstab to find filesystem names and locations |
| 118 | .SH SEE ALSO |
| 119 | quota(1), |
| 120 | quotactl(2), |
| 121 | fstab(5), |
| 122 | quotacheck(8), quotaon(8), repquota(8) |
| 123 | .SH DIAGNOSTICS |
| 124 | Various messages about inaccessible files; self-explanatory. |