smbcquotas — Set or get QUOTAs of NTFS 5 shares
smbcquotas
{//server/share} [-u user] [-L] [-F] [-S QUOTA_SET_COMMAND] [-n] [-t] [-v] [-d debuglevel] [-s configfile] [-l logdir] [-V] [-U username] [-N] [-k] [-A]
This tool is part of the samba(7) suite.
The smbcquotas
program manipulates NT Quotas on SMB file shares.
The following options are available to the smbcquotas
program.
Specifies the user of whom the quotas are get or set. By default the current user's username will be used.
Lists all quota records of the share.
Show the share quota status and default limits.
This command sets/modifies quotas for a user or on the share, depending on the QUOTA_SET_COMMAND parameter which is described later.
This option displays all QUOTA information in numeric format. The default is to convert SIDs to names and QUOTA limits to a readable string format.
Don't actually do anything, only validate the correctness of the arguments.
Be verbose.
The format of an the QUOTA_SET_COMMAND is an operation name followed by a set of parameters specific to that operation.
To set user quotas for the user specified by -u or for the current username:
UQLIM:<username>:<softlimit>/<hardlimit>
To set the default quotas for a share:
FSQLIM:<softlimit>/<hardlimit>
To change the share quota settings:
FSQFLAGS:QUOTA_ENABLED/DENY_DISK/LOG_SOFTLIMIT/LOG_HARD_LIMIT
All limits are specified as a number of bytes.
The smbcquotas
program sets the exit status
depending on the success or otherwise of the operations performed.
The exit status may be one of the following values.
If the operation succeeded, smbcquotas returns an exit
status of 0. If smbcquotas
couldn't connect to the specified server,
or when there was an error getting or setting the quota(s), an exit status
of 1 is returned. If there was an error parsing any command line
arguments, an exit status of 2 is returned.