System Administration Guide

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
    

    username

    User name whose quota will be disabled. 


    Caution - Caution -

    Although you can specify multiple users as arguments to the edquota command, the information displayed does not show which user it 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 (zero).


    Note -

    Be sure you change the values to zero. Do not delete the line from the text file.


  4. Exit the editor, saving your changes.

  5. Verify that you have disabled a user's quota by using the quota command.


    # quota -v username
    

    -v

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

    username

    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 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 = 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 = 10)