source: vendor/3.6.23/docs/manpages/smbcquotas.1

Last change on this file was 860, checked in by Silvan Scherrer, 11 years ago

Samba 3.6: updated vendor to latest version

File size: 7.4 KB
Line 
1'\" t
2.\" Title: smbcquotas
3.\" Author: [see the "AUTHOR" section]
4.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
5.\" Date: 09/18/2013
6.\" Manual: User Commands
7.\" Source: Samba 3.6
8.\" Language: English
9.\"
10.TH "SMBCQUOTAS" "1" "09/18/2013" "Samba 3\&.6" "User Commands"
11.\" -----------------------------------------------------------------
12.\" * Define some portability stuff
13.\" -----------------------------------------------------------------
14.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15.\" http://bugs.debian.org/507673
16.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18.ie \n(.g .ds Aq \(aq
19.el .ds Aq '
20.\" -----------------------------------------------------------------
21.\" * set default formatting
22.\" -----------------------------------------------------------------
23.\" disable hyphenation
24.nh
25.\" disable justification (adjust text to left margin only)
26.ad l
27.\" -----------------------------------------------------------------
28.\" * MAIN CONTENT STARTS HERE *
29.\" -----------------------------------------------------------------
30.SH "NAME"
31smbcquotas \- Set or get QUOTAs of NTFS 5 shares
32.SH "SYNOPSIS"
33.HP \w'\ 'u
34smbcquotas {//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]
35.SH "DESCRIPTION"
36.PP
37This tool is part of the
38\fBsamba\fR(7)
39suite\&.
40.PP
41The
42smbcquotas
43program manipulates NT Quotas on SMB file shares\&.
44.SH "OPTIONS"
45.PP
46The following options are available to the
47smbcquotas
48program\&.
49.PP
50\-u user
51.RS 4
52Specifies the user of whom the quotas are get or set\&. By default the current user\*(Aqs username will be used\&.
53.RE
54.PP
55\-L
56.RS 4
57Lists all quota records of the share\&.
58.RE
59.PP
60\-F
61.RS 4
62Show the share quota status and default limits\&.
63.RE
64.PP
65\-S QUOTA_SET_COMMAND
66.RS 4
67This command sets/modifies quotas for a user or on the share, depending on the QUOTA_SET_COMMAND parameter which is described later\&.
68.RE
69.PP
70\-n
71.RS 4
72This option displays all QUOTA information in numeric format\&. The default is to convert SIDs to names and QUOTA limits to a readable string format\&.
73.RE
74.PP
75\-t
76.RS 4
77Don\*(Aqt actually do anything, only validate the correctness of the arguments\&.
78.RE
79.PP
80\-v
81.RS 4
82Be verbose\&.
83.RE
84.PP
85\-h|\-\-help
86.RS 4
87Print a summary of command line options\&.
88.RE
89.PP
90\-d|\-\-debuglevel=level
91.RS 4
92\fIlevel\fR
93is an integer from 0 to 10\&. The default value if this parameter is not specified is 0\&.
94.sp
95The higher this value, the more detail will be logged to the log files about the activities of the server\&. At level 0, only critical errors and serious warnings will be logged\&. Level 1 is a reasonable level for day\-to\-day running \- it generates a small amount of information about operations carried out\&.
96.sp
97Levels above 1 will generate considerable amounts of log data, and should only be used when investigating a problem\&. Levels above 3 are designed for use only by developers and generate HUGE amounts of log data, most of which is extremely cryptic\&.
98.sp
99Note that specifying this parameter here will override the
100\m[blue]\fBlog level\fR\m[]
101parameter in the
102smb\&.conf
103file\&.
104.RE
105.PP
106\-V|\-\-version
107.RS 4
108Prints the program version number\&.
109.RE
110.PP
111\-s|\-\-configfile <configuration file>
112.RS 4
113The file specified contains the configuration details required by the server\&. The information in this file includes server\-specific information such as what printcap file to use, as well as descriptions of all the services that the server is to provide\&. See
114smb\&.conf
115for more information\&. The default configuration file name is determined at compile time\&.
116.RE
117.PP
118\-l|\-\-log\-basename=logdirectory
119.RS 4
120Base directory name for log/debug files\&. The extension
121\fB"\&.progname"\fR
122will be appended (e\&.g\&. log\&.smbclient, log\&.smbd, etc\&.\&.\&.)\&. The log file is never removed by the client\&.
123.RE
124.PP
125\-N|\-\-no\-pass
126.RS 4
127If specified, this parameter suppresses the normal password prompt from the client to the user\&. This is useful when accessing a service that does not require a password\&.
128.sp
129Unless a password is specified on the command line or this parameter is specified, the client will request a password\&.
130.sp
131If a password is specified on the command line and this option is also defined the password on the command line will be silently ingnored and no password will be used\&.
132.RE
133.PP
134\-k|\-\-kerberos
135.RS 4
136Try to authenticate with kerberos\&. Only useful in an Active Directory environment\&.
137.RE
138.PP
139\-C|\-\-use\-ccache
140.RS 4
141Try to use the credentials cached by winbind\&.
142.RE
143.PP
144\-A|\-\-authentication\-file=filename
145.RS 4
146This option allows you to specify a file from which to read the username and password used in the connection\&. The format of the file is
147.sp
148.if n \{\
149.RS 4
150.\}
151.nf
152username = <value>
153password = <value>
154domain = <value>
155.fi
156.if n \{\
157.RE
158.\}
159.sp
160Make certain that the permissions on the file restrict access from unwanted users\&.
161.RE
162.PP
163\-U|\-\-user=username[%password]
164.RS 4
165Sets the SMB username or username and password\&.
166.sp
167If %password is not specified, the user will be prompted\&. The client will first check the
168\fBUSER\fR
169environment variable, then the
170\fBLOGNAME\fR
171variable and if either exists, the string is uppercased\&. If these environmental variables are not found, the username
172\fBGUEST\fR
173is used\&.
174.sp
175A third option is to use a credentials file which contains the plaintext of the username and password\&. This option is mainly provided for scripts where the admin does not wish to pass the credentials on the command line or via environment variables\&. If this method is used, make certain that the permissions on the file restrict access from unwanted users\&. See the
176\fI\-A\fR
177for more details\&.
178.sp
179Be cautious about including passwords in scripts\&. Also, on many systems the command line of a running process may be seen via the
180ps
181command\&. To be safe always allow
182rpcclient
183to prompt for a password and type it in directly\&.
184.RE
185.SH "QUOTA_SET_COMMAND"
186.PP
187The format of an the QUOTA_SET_COMMAND is an operation name followed by a set of parameters specific to that operation\&.
188.PP
189To set user quotas for the user specified by \-u or for the current username:
190.PP
191\fB UQLIM:<username>:<softlimit>/<hardlimit> \fR
192.PP
193To set the default quotas for a share:
194.PP
195\fB FSQLIM:<softlimit>/<hardlimit> \fR
196.PP
197To change the share quota settings:
198.PP
199\fB FSQFLAGS:QUOTA_ENABLED/DENY_DISK/LOG_SOFTLIMIT/LOG_HARD_LIMIT \fR
200.PP
201All limits are specified as a number of bytes\&.
202.SH "EXIT STATUS"
203.PP
204The
205smbcquotas
206program sets the exit status depending on the success or otherwise of the operations performed\&. The exit status may be one of the following values\&.
207.PP
208If the operation succeeded, smbcquotas returns an exit status of 0\&. If
209smbcquotas
210couldn\*(Aqt 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\&.
211.SH "VERSION"
212.PP
213This man page is correct for version 3 of the Samba suite\&.
214.SH "AUTHOR"
215.PP
216The 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\&.
217.PP
218smbcquotas
219was written by Stefan Metzmacher\&.
Note: See TracBrowser for help on using the repository browser.