B.12 nssquota

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

B.12.1 Syntax

Command

Description

nssquota <USERQUOTAOPTIONS>

It is used to set, get, or clear user space quota on NSS volumes.

nssquota <DIRECTORYQUOTAOPTIONS>

It is used to set, get, or clear directory quota on NSS sub-directory files.

nssquota <VOLUMEQUOTAOPTIONS>

It is used to set, get, or clear volume quota on NSS volumes.

B.12.2 Options

Usage Options

Option

Description

-h, --help

Displays the help information.

-v, --version

Displays the program version information.

USERQUOTAOPTIONS

Option

Description

-U, --userquota

Sets the userquota options (set, get, or clear).

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

-c, --clear

Removes the quota restriction.

DIRECTORYQUOTAOPTIONS

Option

Description

-D, --directoryquota

Sets the directory quota options (set, get, or clear).

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

Size of the quota. The default unit is KB.

-d, --directoryname

Sub-directory name.

-n, --namespace

Indicates the path lookup namespace(DOS, UNIX, LONG, MACINTOSH).

-g, --getquotas

Gets the directory quota.

-c, --clear

Removes the quota restriction.

VOLUMEQUOTAOPTIONS

Option

Description

-V, --volumename

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

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

Size of the quota. The default unit is GB.

-Q, --volumequota

Sets, gets or clears the volume quota options.

-g, --getquota

Gets the volume quota.

-c, --clear

Removes the quota restriction

B.12.3 Examples

nssquota -U -V VOL  -u wwrun.novell -s 30GB

This example is for user quota.

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

This example is for directory quota.

nssquota -Q -V VOL -s 100GB

This example is for the volume quota.