System Administration Guide: Advanced Administration

How to Set Up Quotas for a User

  1. Become superuser.

  2. Use the quota editor to create a temporary file that contains one line of quota information for each mounted UFS file system that has a quotas file in the file system's root directory.


    # edquota username
    

    Where username is the 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.


    # quota -v username
    

    -v

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

    username

    Specifies the 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 the root 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)