System Administration Guide: Advanced Administration

How to Disable Quotas for a User

  1. Become superuser.

  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 –

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


  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 –

    Be sure 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. 

Examples—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)