System Administration Guide: Advanced Administration

ProcedureHow to Set Up Quotas for a User

  1. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  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 the default of 0, to the quotas that 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.


Example 7–2 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 that contains 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)