1SMBCQUOTAS(1)                    User Commands                   SMBCQUOTAS(1)
2
3
4

NAME

6       smbcquotas - Set or get QUOTAs of NTFS 5 shares
7

SYNOPSIS

9       smbcquotas {//server/share} [-u user] [-L] [-F] [-S QUOTA_SET_COMMAND]
10        [-n] [-t] [-v] [-d debuglevel] [-s configfile] [-l logdir] [-V]
11        [-U username] [-N] [-k] [-A]
12

DESCRIPTION

14       This tool is part of the samba(7) suite.
15
16       The smbcquotas program manipulates NT Quotas on SMB file shares.
17

OPTIONS

19       The following options are available to the smbcquotas program.
20
21       -u user
22           Specifies the user of whom the quotas are get or set. By default
23           the current user's username will be used.
24
25       -L
26           Lists all quota records of the share.
27
28       -F
29           Show the share quota status and default limits.
30
31       -S QUOTA_SET_COMMAND
32           This command sets/modifies quotas for a user or on the share,
33           depending on the QUOTA_SET_COMMAND parameter which is described
34           later.
35
36       -n
37           This option displays all QUOTA information in numeric format. The
38           default is to convert SIDs to names and QUOTA limits to a readable
39           string format.
40
41       -t
42           Don't actually do anything, only validate the correctness of the
43           arguments.
44
45       -v
46           Be verbose.
47
48       -?|--help
49           Print a summary of command line options.
50
51       -d|--debuglevel=level
52           level is an integer from 0 to 10. The default value if this
53           parameter is not specified is 0.
54
55           The higher this value, the more detail will be logged to the log
56           files about the activities of the server. At level 0, only critical
57           errors and serious warnings will be logged. Level 1 is a reasonable
58           level for day-to-day running - it generates a small amount of
59           information about operations carried out.
60
61           Levels above 1 will generate considerable amounts of log data, and
62           should only be used when investigating a problem. Levels above 3
63           are designed for use only by developers and generate HUGE amounts
64           of log data, most of which is extremely cryptic.
65
66           Note that specifying this parameter here will override the log
67           level parameter in the smb.conf file.
68
69       -V|--version
70           Prints the program version number.
71
72       -s|--configfile <configuration file>
73           The file specified contains the configuration details required by
74           the server. The information in this file includes server-specific
75           information such as what printcap file to use, as well as
76           descriptions of all the services that the server is to provide. See
77           smb.conf for more information. The default configuration file name
78           is determined at compile time.
79
80       -l|--log-basename=logdirectory
81           Base directory name for log/debug files. The extension ".progname"
82           will be appended (e.g. log.smbclient, log.smbd, etc...). The log
83           file is never removed by the client.
84
85       -N|--no-pass
86           If specified, this parameter suppresses the normal password prompt
87           from the client to the user. This is useful when accessing a
88           service that does not require a password.
89
90           Unless a password is specified on the command line or this
91           parameter is specified, the client will request a password.
92
93           If a password is specified on the command line and this option is
94           also defined the password on the command line will be silently
95           ingnored and no password will be used.
96
97       -k|--kerberos
98           Try to authenticate with kerberos. Only useful in an Active
99           Directory environment.
100
101       -C|--use-ccache
102           Try to use the credentials cached by winbind.
103
104       -A|--authentication-file=filename
105           This option allows you to specify a file from which to read the
106           username and password used in the connection. The format of the
107           file is
108
109               username = <value>
110               password = <value>
111               domain   = <value>
112
113           Make certain that the permissions on the file restrict access from
114           unwanted users.
115
116       -U|--user=username[%password]
117           Sets the SMB username or username and password.
118
119           If %password is not specified, the user will be prompted. The
120           client will first check the USER environment variable, then the
121           LOGNAME variable and if either exists, the string is uppercased. If
122           these environmental variables are not found, the username GUEST is
123           used.
124
125           A third option is to use a credentials file which contains the
126           plaintext of the username and password. This option is mainly
127           provided for scripts where the admin does not wish to pass the
128           credentials on the command line or via environment variables. If
129           this method is used, make certain that the permissions on the file
130           restrict access from unwanted users. See the -A for more details.
131
132           Be cautious about including passwords in scripts. Also, on many
133           systems the command line of a running process may be seen via the
134           ps command. To be safe always allow rpcclient to prompt for a
135           password and type it in directly.
136

QUOTA_SET_COMMAND

138       The format of an the QUOTA_SET_COMMAND is an operation name followed by
139       a set of parameters specific to that operation.
140
141       To set user quotas for the user specified by -u or for the current
142       username:
143
144        UQLIM:<username>:<softlimit>/<hardlimit>
145
146       To set the default quotas for a share:
147
148        FSQLIM:<softlimit>/<hardlimit>
149
150       To change the share quota settings:
151
152        FSQFLAGS:QUOTA_ENABLED/DENY_DISK/LOG_SOFTLIMIT/LOG_HARD_LIMIT
153
154       All limits are specified as a number of bytes.
155

EXIT STATUS

157       The smbcquotas program sets the exit status depending on the success or
158       otherwise of the operations performed. The exit status may be one of
159       the following values.
160
161       If the operation succeeded, smbcquotas returns an exit status of 0. If
162       smbcquotas couldn't connect to the specified server, or when there was
163       an error getting or setting the quota(s), an exit status of 1 is
164       returned. If there was an error parsing any command line arguments, an
165       exit status of 2 is returned.
166

VERSION

168       This man page is correct for version 3 of the Samba suite.
169

AUTHOR

171       The original Samba software and related utilities were created by
172       Andrew Tridgell. Samba is now developed by the Samba Team as an Open
173       Source project similar to the way the Linux kernel is developed.
174
175       smbcquotas was written by Stefan Metzmacher.
176
177
178
179Samba 3.6                         04/11/2016                     SMBCQUOTAS(1)
Impressum