2004-04-07 14:15:11 +04:00
<?xml version="1.0" encoding="iso-8859-1"?>
2005-03-12 22:33:59 +03:00
<!DOCTYPE refentry PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
2004-04-07 14:15:11 +04:00
<refentry id= "smbcquotas.1" >
<refmeta >
<refentrytitle > smbcquotas</refentrytitle>
<manvolnum > 1</manvolnum>
2008-04-07 00:26:45 +04:00
<refmiscinfo class= "source" > Samba</refmiscinfo>
<refmiscinfo class= "manual" > User Commands</refmiscinfo>
2017-12-12 11:08:06 +03:00
<refmiscinfo class= "version" > &doc.version; </refmiscinfo>
2004-04-07 14:15:11 +04:00
</refmeta>
<refnamediv >
<refname > smbcquotas</refname>
<refpurpose > Set or get QUOTAs of NTFS 5 shares</refpurpose>
</refnamediv>
<refsynopsisdiv >
<cmdsynopsis >
<command > smbcquotas</command>
<arg choice= "req" > //server/share</arg>
2013-11-18 14:59:54 +04:00
<arg choice= "opt" > -u|--user user</arg>
<arg choice= "opt" > -L|--list</arg>
<arg choice= "opt" > -F|--fs</arg>
<arg choice= "opt" > -S|--set QUOTA_SET_COMMAND</arg>
<arg choice= "opt" > -n|--numeric</arg>
<arg choice= "opt" > -t|--test-args</arg>
<arg choice= "opt" > -v|--verbose</arg>
2004-04-07 14:15:11 +04:00
<arg choice= "opt" > -d debuglevel</arg>
<arg choice= "opt" > -s configfile</arg>
<arg choice= "opt" > -l logdir</arg>
<arg choice= "opt" > -V</arg>
<arg choice= "opt" > -U username</arg>
2016-09-20 18:51:00 +03:00
<arg choice= "opt" > -m|--max-protocol LEVEL</arg>
2004-04-07 14:15:11 +04:00
<arg choice= "opt" > -N</arg>
<arg choice= "opt" > -k</arg>
<arg choice= "opt" > -A</arg>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1 >
<title > DESCRIPTION</title>
2004-04-27 18:43:44 +04:00
<para > This tool is part of the <citerefentry > <refentrytitle > samba</refentrytitle>
2004-04-07 14:15:11 +04:00
<manvolnum > 7</manvolnum> </citerefentry> suite.</para>
<para > The <command > smbcquotas</command> program manipulates NT Quotas on SMB file shares. </para>
</refsect1>
<refsect1 >
<title > OPTIONS</title>
<para > The following options are available to the <command > smbcquotas</command> program. </para>
<variablelist >
<varlistentry >
2013-11-18 14:59:54 +04:00
<term > -u|--user user</term>
2004-04-07 14:15:11 +04:00
<listitem > <para > Specifies the user of whom the quotas are get or set.
By default the current user's username will be used.</para> </listitem>
</varlistentry>
<varlistentry >
2013-11-18 14:59:54 +04:00
<term > -L|--list</term>
2004-04-07 14:15:11 +04:00
<listitem > <para > Lists all quota records of the share.</para> </listitem>
</varlistentry>
<varlistentry >
2013-11-18 14:59:54 +04:00
<term > -F|--fs</term>
2004-04-07 14:15:11 +04:00
<listitem > <para > Show the share quota status and default limits.</para> </listitem>
</varlistentry>
<varlistentry >
2013-11-18 14:59:54 +04:00
<term > -S|--set QUOTA_SET_COMMAND</term>
2004-04-07 14:15:11 +04:00
<listitem > <para > This command sets/modifies quotas for a user or on the share,
depending on the QUOTA_SET_COMMAND parameter which is described later.</para> </listitem>
</varlistentry>
<varlistentry >
2013-11-18 14:59:54 +04:00
<term > -n|--numeric</term>
2004-04-07 14:15:11 +04:00
<listitem > <para > 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.</para> </listitem>
</varlistentry>
2016-09-20 18:51:00 +03:00
<varlistentry >
<term > -m|--max-protocol PROTOCOL_NAME</term>
<listitem > <para > This allows the user to select the
highest SMB protocol level that smbcquotas will use to
connect to the server. By default this is set to
NT1, which is the highest available SMB1 protocol.
To connect using SMB2 or SMB3 protocol, use the
strings SMB2 or SMB3 respectively.
</para> </listitem>
</varlistentry>
2004-04-07 14:15:11 +04:00
<varlistentry >
2013-11-18 14:59:54 +04:00
<term > -t|--test-args</term>
2004-04-07 14:15:11 +04:00
<listitem > <para >
Don't actually do anything, only validate the correctness of the arguments.
</para> </listitem>
</varlistentry>
<varlistentry >
2013-11-18 14:59:54 +04:00
<term > -v|--verbose</term>
2004-04-07 14:15:11 +04:00
<listitem > <para >
Be verbose.
</para> </listitem>
</varlistentry>
2013-11-18 14:59:54 +04:00
2008-01-10 11:39:53 +03:00
&stdarg.server.debug;
2004-04-07 14:15:11 +04:00
&popt.common.samba;
&popt.common.credentials;
2013-11-18 14:59:54 +04:00
&popt.autohelp;
2004-04-07 14:15:11 +04:00
</variablelist>
</refsect1>
<refsect1 >
2012-05-08 14:01:28 +04:00
<title > QUOTA_SET_COMMAND</title>
2004-04-07 14:15:11 +04:00
2007-03-01 05:04:56 +03:00
<para > The format of an the QUOTA_SET_COMMAND is an operation
name followed by a set of parameters specific to that operation.
2004-04-07 14:15:11 +04:00
</para>
2007-03-01 05:04:56 +03:00
<para > To set user quotas for the user specified by -u or for the
current username: </para>
2004-04-07 14:15:11 +04:00
<para > <userinput >
UQLIM:< username> :< softlimit> /< hardlimit>
</userinput> </para>
2007-03-01 05:04:56 +03:00
<para > To set the default quotas for a share:
2004-04-07 14:15:11 +04:00
</para>
<para > <userinput >
FSQLIM:< softlimit> /< hardlimit>
</userinput> </para>
<para >
2007-03-01 05:04:56 +03:00
To change the share quota settings:
2004-04-07 14:15:11 +04:00
</para>
<para > <userinput >
FSQFLAGS:QUOTA_ENABLED/DENY_DISK/LOG_SOFTLIMIT/LOG_HARD_LIMIT
</userinput> </para>
2007-03-01 05:04:56 +03:00
<para > All limits are specified as a number of bytes.</para>
2004-04-07 14:15:11 +04:00
</refsect1>
<refsect1 >
<title > EXIT STATUS</title>
<para > The <command > smbcquotas</command> 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. </para>
<para > If the operation succeeded, smbcquotas returns an exit
status of 0. If <command > smbcquotas</command> 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. </para>
</refsect1>
<refsect1 >
<title > VERSION</title>
2017-12-13 03:38:25 +03:00
<para > This man page is part of version &doc.version; of the Samba suite.</para>
2004-04-07 14:15:11 +04:00
</refsect1>
<refsect1 >
<title > AUTHOR</title>
<para > The original Samba software and related utilities
were created by Andrew Tridgell. Samba is now developed
by the Samba Team as an Open Source project similar
to the way the Linux kernel is developed.</para>
<para > <command > smbcquotas</command> was written by Stefan Metzmacher.</para>
</refsect1>
</refentry>