System Administration Guide, Volume 2

How to Change Quotas for a User

  1. Become superuser.

  2. Use the quota editor to open a temporary file containing one line for each mounted file system that has a quotas file in its top-level directory.


    # edquota username
    

    username

    User name whose quota you want to change. 


    Caution - Caution -

    Although you can specify multiple users as arguments to the edquota command, the information displayed does not show which user it belongs to, which could create some confusion.


  3. Enter the number of 1-Kbyte disk blocks, both soft and hard, and the number of inodes, both soft and hard.

  4. Verify that a user's quota has been correctly changed by using the quota command.


    # quota -v username
    

    -v

    Displays user quota information on all mounted file systems with quotas enabled. 

    username

    User name whose quota you want to check. 

Examples--Changing Quotas for a User

The following example shows the contents of the temporary file opened by edquota on a system where /files is the only mounted file system containing a quotas file in its top-level directory.


fs /files blocks (soft = 0, hard = 0) inodes (soft = 0, hard = 0)

The following example shows the same temporary file after quotas have been changed.


fs /files blocks (soft = 0, hard = 500) inodes (soft = 0, hard = 100)

The following example shows how to verify that the hard quotas for user smith have been changed to 500 1-Kbyte blocks, and 100 inodes.


# quota -v smith
Disk quotas for smith (uid 12):
Filesystem  usage  quota  limit  timeleft  files  quota  limit  timeleft
 
  /files     1       0     500              1       0     100