9.7 Using the Quota Utility to Set Directory and User Space Quotas on NSS Volumes

Use this utility to set or get the user space quota and directory quota on NSS volumes and files.

9.7.1 Syntax

Command

Description

quota <USERQUOTAOPTIONS>

It is used to set or get user space quota on NSS volumes and files.

quota <DIRECTORYQUOTAOPTIONS>

It is used to set or get directory quota on NSS volumes and files.

9.7.2 Options

Usage Options

Option

Description

-h, --help

Displays the help information.

-v, --version

Displays the program version information.

USERQUOTAOPTIONS

Option

Description

-U, --userquota

To set the user quota options.

s, --size=quota (in KB/MB/GB)

Storage space allowed for the specified user. The default unit is MB.

-V, --volumename=volumename

Name of the volume for which quota has to be set.

-u, --username

Specify the user name.

-g, --getquotas

Gets the user quota.

DIRECTORYQUOTAOPTIONS

Option

Description

-D, --directoryquota

To set the directory quota options.

-s, --size=quota (in Multiples of 4KB/MB/GB)

Size of the quota. The default unit is KB.

-d, --directoryname

Directory name.

-g, --getquotas

Gets the directory quota.

9.7.3 Examples

quota -U -V VOL1  -u wwrun.novell -s 30GB

This example is for user quota.

quota -D -d /media/nss/VOL/test -s 4GB

This example is for directory quota.

quota -g -V VOL1

This example is for viewing user quota.

quota -g -d /media/nss/VOL/test

This example is for viewing directory quota.