LinuxCommandLibrary

smbcquotas

Manage Samba share quotas

SYNOPSIS

smbcquotas [-b] [-u username] [-g groupname] [-v] [\\server\\[share]]

PARAMETERS

-b
    Displays quota blocks in bytes.

-u username
    Displays quota information for the specified username.

-g groupname
    Displays quota information for the specified groupname.

-v
    Verbose output. Prints all quota information.

\\server\\[share]
    Specifies the SMB server and share to query. If omitted, uses the default server configured in `smb.conf`.

DESCRIPTION

The `smbcquotas` command is a command-line utility used to manage and display quota information for shared resources accessible through the Server Message Block (SMB) protocol. It allows administrators to view quota settings, disk space usage, and other relevant statistics for users and groups accessing shared directories on an SMB server. This tool is essential for controlling resource consumption, enforcing storage limits, and monitoring the utilization of network shares within an SMB environment. It interacts with the server to retrieve quota data and present it in a readable format, aiding in capacity planning and troubleshooting storage-related issues. `smbcquotas` supports various options for filtering and displaying quota information, making it a versatile tool for administrators managing SMB file shares. It leverages Samba client libraries for communication with the SMB server.

IMPORTANT NOTES

Quotas must be enabled on the SMB server for `smbcquotas` to function correctly. Also, the user running `smbcquotas` needs sufficient permissions on the SMB server to view quota information.
Ensure that the Samba client utilities are installed on your system before using this command.

EXAMPLES

To view all quota information:
`smbcquotas -v \\server\share`
To view quota information for a specific user:
`smbcquotas -u johndoe \\server\share`
To view quota information for a specific group:
`smbcquotas -g developers \\server\share`

SEE ALSO

smbstatus(1), smb.conf(5)

Copied to clipboard