System Administration Guide, Volume 2

How to Set Up Quotas for a User

  1. Become superuser.

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


    # edquota username
    

    username

    User for whom you want to set up quotas. 

  3. Change the number of 1-Kbyte disk blocks, both soft and hard, and the number of inodes, both soft and hard, from 0 (the default) to the quotas you specify for each file system.

  4. Verify the user's quota by using the quota command.


    # quota -v username
    

    -v

    Display's user's quota information on all mounted file systems where quotas exist. 

    username

    Specifies user name to view quota limits. 

Examples--Setting Up 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 line in the temporary file after quotas have been set up.


fs /files blocks (soft = 50, hard = 60) inodes (soft = 90, hard = 100)