B.13 nssquota

Use this utility to set, get, or clear the userspace quota, directory quota, and volume quota on NSS volumes and files. The namespace is used only for NSS path types.

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

 -a, --activedirectory

Specifies the active directory user name. If you have used Windows Server Manager to add users to AD, and if those user names contain any of the following special characters: / \ [ ] : ; | = , + * ? < > @ and ", they are replaced with an underscore (_). Ensure to specify the correct AD user names. The AD user name format is NETBIOSNameOfDomain\\username.

-p

Option to perform operations on the DST primary and shadow volume. This is set by default.

NOTE:Beginning with OES 2018 SP3, the -p option is set by default. Any operation performed on the DST primary volume is also applied to the shadow volume.

-k, --no-dst

Perform operations on the specified volume.

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.

-p, --dst

Option to perform operations on the DST primary and shadow volume. This is set by default.

NOTE:Beginning with OES 2018 SP3, the -p option is set by default. Any operation performed on the DST primary volume is also applied to the shadow volume.

-k, --no-dst

Perform operations on the specified volume.

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

This example is for directory quota.

nssquota -Q -V VOL -s 100GB

This example is for the volume quota.

For Active Directory user quota options, use the NetBIOS name of the AD domain followed by the user name. For example, NETBIOSNameOfDomain\\user.

nssquota -a -g -U -V VOL
nssquota -a -g -U -V VOL -u NETBIOSNameOfDomain\\joe
nssquota -a -U -V VOL -u NETBIOSNameOfDomain\\joe -s 100MB
nssquota -a -c -U -V VOL -u NETBIOSNameOfDomain\\joe

These examples are for active directory based user quota options.