[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 4


quotaon or quotaoff Command

Purpose

Turns on and off file system quotas.

Syntax

quotaon [ -g ] [ -u ] [ -v ] { -a | FileSystem ... }

quotaoff [ -g ] [ -u ] [ -v ] { -a | FileSystem ... }

Description

The quotaon command enables disk quotas for one or more file systems specified by the FileSystem parameter. The specified file system must be defined with quotas in the /etc/filesystems file, and must be mounted. The quotaon command looks for the quota.user and quota.group default quota files in the root directory of the associated file system. These file names may be changed in the /etc/filesystems file.

By default, both user and group quotas are enabled. The -u flag enables only user quotas; the -g flag enables only group quotas. Specifying both -g and -u flags is equivalent to the default option. The -a flag specifies that all file systems with disk quotas, as indicated by the /etc/filesystems file, are enabled.

The quotaoff command disables disk quotas for one or more file systems. By default, both user and group quotas are disabled. The -a, -g, and -u flags operate as with the quotaon command.

The -v flag prints a message for each file system in which quotas are turned on or off with the quotaon and quotaoff commands, respectively.

Flags


-a Enables or disables all file systems that are read-write and have disk quotas, as indicated by the /etc/filesystems file. When used with the -g flag, only group quotas in the /etc/filesystems file are enabled or disabled; when used with the -u flag, only user quotas in the /etc/filesystems file are enabled or disabled.
-g Specifies that only group quotas are enabled or disabled.
-u Specifies that only user quotas are enabled or disabled.
-v Prints a message for each file system in which quotas are turned on or off.

Security

Access Control: Only the root user can execute this command.

Examples

  1. To enable user quotas for the /usr file system, enter:

    quotaon -u /usr
    
  2. To disable user and group quotas for all file systems in the /etc/filesystems file and print a message, enter:

    quotaoff -v -a
    

Files


quota.user Specifies user quotas.
quota.group Specifies group quotas.
/etc/filesystems Contains file system names and locations.

Related Information

The quota command displays disk usage and quotas. The edquota command creates and edits quotas. The repquota command summarizes quotas for a file system. The quotacheck command checks file system quota consistency.

The Disk Quota System Overview in AIX 5L Version 5.1 System Management Guide: Operating System and Devices introduces the disk quota system.

Setting Up the Disk Quota System in AIX 5L Version 5.1 System Management Guide: Operating System and Devices describes how to establish disk quotas.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]