Sun Microsystems, Inc.
spacerspacer
spacer www.sun.com docs.sun.com |
spacer
black dot
 
 
17.  Managing Quotas (Tasks) Changing and Removing Quotas How to Change Quotas for a User Examples--Changing Quotas for a User  Previous   Contents   Next 
   
 

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

How to Turn Off Quotas

  1. Become superuser.

  2. Turn off file system quotas.

    # quotaoff [-v] -a filesystem ...

    -v

    Displays a message from each file system when quotas are turned off.

    -a

    Turns off quotas for all file systems.

    filesystem

    Turns off quotas for one or more file systems you specify. More than one file system is specified by separating each file system name with a space.

Example--Turning Off Quotas

The following example shows how to turn off the quotas for the /export/home file system.

# quotaoff -v /export/home
/export/home: quotas turned off
 
 
 
  Previous   Contents   Next