System Administration Guide: Advanced Administration

ProcedureHow to Disable 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 containing one line for each mounted file system that has a quotas file in its top-level directory.


    # edquota username
    

    Where username specifies the user name whose quota you want to disable.


    Caution – Caution –

    You can specify multiple users as arguments to the edquota command. However, the user that this information belongs to, is not displayed. To avoid confusion, specify only one user name.


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


    Note –

    Ensure that you change the values to zero. Do not delete the line from the text file.


  4. Verify that you have disabled a user's quota.


    # quota -v username
    
    -v

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

    username

    Specifies the user name (UID) whose quota you want to check.


Example 7–11 Disabling Quotas for a User

The following example shows the contents of the temporary file opened by the edquota command on a system where /files is the only mounted file system that contains a quotas file in the file system's root directory.


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

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


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