System Administration Guide: Advanced Administration

ProcedureHow to Change UFS 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 open a temporary file that contains one line for each mounted file system that has a quotas file in the file system's root directory.

    # edquota username

    where username specifies the user name whose quota you want to change.

    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. Specify the number of 1-Kbyte disk blocks, both soft and hard, and the number of inodes, both soft and hard.

  4. Verify that a user's UFS quota has been correctly changed.

    # quota -v username

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


    Specifies the user name whose quota you want to check.

Example 7–9 Changing UFS Quotas for a User

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

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

The following output shows the same temporary file after quotas have been changed.

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

Example 7–10 Verifying That Hard UFS Quotas Have Been Changed

The following example shows how to verify that the hard quotas for user smith have been changed to 500 1-Kbyte blocks, and 100 inodes.

# quota -v smith
Disk quotas for smith (uid 12):
Filesystem  usage  quota  limit  timeleft  files  quota  limit  timeleft
  /files     1       0     500              1       0     100