System Administration Guide: Advanced Administration

ProcedureHow to Configure File Systems for Quotas

  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. Edit the /etc/vfstab file and add rq to the mount options field for each UFS file system that will have quotas.

  3. Change directory to the root of the file system that will have quotas.

  4. Create a file named quotas.


    # touch quotas
    
  5. Change permissions to read/write for superuser access only.


    # chmod 600 quotas
    

Example 7–1 Configuring File Systems for Quotas

The following /etc/vfstab example shows that the /export/home directory from the system pluto is mounted as an NFS file system on the local system. You can tell that quotas are enabled by the rq entry under the mount options column.


# device   device    mount     FS    fsck   mount   mount
# to mount       to fsck  point     type   pass  at boot options
# pluto:/export/home -   /export/home nfs    -     yes    rq

The following example line from the /etc/vfstab file shows that the local /work directory is mounted with quotas enabled, signified by the rq entry under the mount options column.


#device     device        mount  FS   fsck  mount    mount
#to mount         to fsck      point  type  pass  at boot options
#/dev/dsk/c0t4d0s0 /dev/rdsk/c0t4d0s0 /work ufs  3    yes     rq

See Also