source: branches/samba-3.2.x/docs/manpages/smbcquotas.1@ 204

Last change on this file since 204 was 204, checked in by Herwig Bauernfeind, 16 years ago

Update 3.2 branch to 3.2.4

File size: 6.5 KB
Line 
1.\" Title: smbcquotas
2.\" Author:
3.\" Generator: DocBook XSL Stylesheets v1.73.1 <http://docbook.sf.net/>
4.\" Date: 09/18/2008
5.\" Manual: User Commands
6.\" Source: Samba 3.2
7.\"
8.TH "SMBCQUOTAS" "1" "09/18/2008" "Samba 3\.2" "User Commands"
9.\" disable hyphenation
10.nh
11.\" disable justification (adjust text to left margin only)
12.ad l
13.SH "NAME"
14smbcquotas - Set or get QUOTAs of NTFS 5 shares
15.SH "SYNOPSIS"
16.HP 1
17smbcquotas {//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]
18.SH "DESCRIPTION"
19.PP
20This tool is part of the
21\fBsamba\fR(7)
22suite\.
23.PP
24The
25smbcquotas
26program manipulates NT Quotas on SMB file shares\.
27.SH "OPTIONS"
28.PP
29The following options are available to the
30smbcquotas
31program\.
32.PP
33\-u user
34.RS 4
35Specifies the user of whom the quotas are get or set\. By default the current user\'s username will be used\.
36.RE
37.PP
38\-L
39.RS 4
40Lists all quota records of the share\.
41.RE
42.PP
43\-F
44.RS 4
45Show the share quota status and default limits\.
46.RE
47.PP
48\-S QUOTA_SET_COMMAND
49.RS 4
50This command sets/modifies quotas for a user or on the share, depending on the QUOTA_SET_COMMAND parameter which is described later\.
51.RE
52.PP
53\-n
54.RS 4
55This option displays all QUOTA information in numeric format\. The default is to convert SIDs to names and QUOTA limits to a readable string format\.
56.RE
57.PP
58\-t
59.RS 4
60Don\'t actually do anything, only validate the correctness of the arguments\.
61.RE
62.PP
63\-v
64.RS 4
65Be verbose\.
66.RE
67.PP
68\-h|\-\-help
69.RS 4
70Print a summary of command line options\.
71.RE
72.PP
73\-d|\-\-debuglevel=level
74.RS 4
75\fIlevel\fR
76is an integer from 0 to 10\. The default value if this parameter is not specified is 0\.
77.sp
78The 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\.
79.sp
80Levels 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\.
81.sp
82Note that specifying this parameter here will override the
83\fIlog level\fR
84parameter in the
85\fIsmb\.conf\fR
86file\.
87.RE
88.PP
89\-V
90.RS 4
91Prints the program version number\.
92.RE
93.PP
94\-s <configuration file>
95.RS 4
96The 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
97\fIsmb\.conf\fR
98for more information\. The default configuration file name is determined at compile time\.
99.RE
100.PP
101\-l|\-\-log\-basename=logdirectory
102.RS 4
103Base directory name for log/debug files\. The extension
104\fB"\.progname"\fR
105will be appended (e\.g\. log\.smbclient, log\.smbd, etc\.\.\.)\. The log file is never removed by the client\.
106.RE
107.PP
108\-N
109.RS 4
110If 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\.
111.sp
112Unless a password is specified on the command line or this parameter is specified, the client will request a password\.
113.sp
114If 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\.
115.RE
116.PP
117\-k
118.RS 4
119Try to authenticate with kerberos\. Only useful in an Active Directory environment\.
120.RE
121.PP
122\-A|\-\-authentication\-file=filename
123.RS 4
124This 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
125.sp
126.sp
127.RS 4
128.nf
129username = <value>
130password = <value>
131domain = <value>
132.fi
133.RE
134.sp
135Make certain that the permissions on the file restrict access from unwanted users\.
136.RE
137.PP
138\-U|\-\-user=username[%password]
139.RS 4
140Sets the SMB username or username and password\.
141.sp
142If %password is not specified, the user will be prompted\. The client will first check the
143\fBUSER\fR
144environment variable, then the
145\fBLOGNAME\fR
146variable and if either exists, the string is uppercased\. If these environmental variables are not found, the username
147\fBGUEST\fR
148is used\.
149.sp
150A 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
151\fI\-A\fR
152for more details\.
153.sp
154Be cautious about including passwords in scripts\. Also, on many systems the command line of a running process may be seen via the
155ps
156command\. To be safe always allow
157rpcclient
158to prompt for a password and type it in directly\.
159.RE
160.SH "QUOTA_SET_COMAND"
161.PP
162The format of an the QUOTA_SET_COMMAND is an operation name followed by a set of parameters specific to that operation\.
163.PP
164To set user quotas for the user specified by \-u or for the current username:
165.PP
166\fB UQLIM:<username>:<softlimit>/<hardlimit> \fR
167.PP
168To set the default quotas for a share:
169.PP
170\fB FSQLIM:<softlimit>/<hardlimit> \fR
171.PP
172To change the share quota settings:
173.PP
174\fB FSQFLAGS:QUOTA_ENABLED/DENY_DISK/LOG_SOFTLIMIT/LOG_HARD_LIMIT \fR
175.PP
176All limits are specified as a number of bytes\.
177.SH "EXIT STATUS"
178.PP
179The
180smbcquotas
181program sets the exit status depending on the success or otherwise of the operations performed\. The exit status may be one of the following values\.
182.PP
183If the operation succeeded, smbcquotas returns an exit status of 0\. If
184smbcquotas
185couldn\'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\.
186.SH "VERSION"
187.PP
188This man page is correct for version 3 of the Samba suite\.
189.SH "AUTHOR"
190.PP
191The 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\.
192.PP
193smbcquotas
194was written by Stefan Metzmacher\.
Note: See TracBrowser for help on using the repository browser.