[862] | 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"
|
---|
| 31 | smbcquotas \- Set or get QUOTAs of NTFS 5 shares
|
---|
| 32 | .SH "SYNOPSIS"
|
---|
| 33 | .HP \w'\ 'u
|
---|
| 34 | smbcquotas {//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
|
---|
| 37 | This tool is part of the
|
---|
| 38 | \fBsamba\fR(7)
|
---|
| 39 | suite\&.
|
---|
| 40 | .PP
|
---|
| 41 | The
|
---|
| 42 | smbcquotas
|
---|
| 43 | program manipulates NT Quotas on SMB file shares\&.
|
---|
| 44 | .SH "OPTIONS"
|
---|
| 45 | .PP
|
---|
| 46 | The following options are available to the
|
---|
| 47 | smbcquotas
|
---|
| 48 | program\&.
|
---|
| 49 | .PP
|
---|
| 50 | \-u user
|
---|
| 51 | .RS 4
|
---|
| 52 | Specifies 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
|
---|
| 57 | Lists all quota records of the share\&.
|
---|
| 58 | .RE
|
---|
| 59 | .PP
|
---|
| 60 | \-F
|
---|
| 61 | .RS 4
|
---|
| 62 | Show the share quota status and default limits\&.
|
---|
| 63 | .RE
|
---|
| 64 | .PP
|
---|
| 65 | \-S QUOTA_SET_COMMAND
|
---|
| 66 | .RS 4
|
---|
| 67 | This 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
|
---|
| 72 | 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\&.
|
---|
| 73 | .RE
|
---|
| 74 | .PP
|
---|
| 75 | \-t
|
---|
| 76 | .RS 4
|
---|
| 77 | Don\*(Aqt actually do anything, only validate the correctness of the arguments\&.
|
---|
| 78 | .RE
|
---|
| 79 | .PP
|
---|
| 80 | \-v
|
---|
| 81 | .RS 4
|
---|
| 82 | Be verbose\&.
|
---|
| 83 | .RE
|
---|
| 84 | .PP
|
---|
| 85 | \-h|\-\-help
|
---|
| 86 | .RS 4
|
---|
| 87 | Print a summary of command line options\&.
|
---|
| 88 | .RE
|
---|
| 89 | .PP
|
---|
| 90 | \-d|\-\-debuglevel=level
|
---|
| 91 | .RS 4
|
---|
| 92 | \fIlevel\fR
|
---|
| 93 | is an integer from 0 to 10\&. The default value if this parameter is not specified is 0\&.
|
---|
| 94 | .sp
|
---|
| 95 | The 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
|
---|
| 97 | Levels 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
|
---|
| 99 | Note that specifying this parameter here will override the
|
---|
| 100 | \m[blue]\fBlog level\fR\m[]
|
---|
| 101 | parameter in the
|
---|
| 102 | smb\&.conf
|
---|
| 103 | file\&.
|
---|
| 104 | .RE
|
---|
| 105 | .PP
|
---|
| 106 | \-V|\-\-version
|
---|
| 107 | .RS 4
|
---|
| 108 | Prints the program version number\&.
|
---|
| 109 | .RE
|
---|
| 110 | .PP
|
---|
| 111 | \-s|\-\-configfile <configuration file>
|
---|
| 112 | .RS 4
|
---|
| 113 | The 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
|
---|
| 114 | smb\&.conf
|
---|
| 115 | for more information\&. The default configuration file name is determined at compile time\&.
|
---|
| 116 | .RE
|
---|
| 117 | .PP
|
---|
| 118 | \-l|\-\-log\-basename=logdirectory
|
---|
| 119 | .RS 4
|
---|
| 120 | Base directory name for log/debug files\&. The extension
|
---|
| 121 | \fB"\&.progname"\fR
|
---|
| 122 | will 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
|
---|
| 127 | If 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
|
---|
| 129 | Unless a password is specified on the command line or this parameter is specified, the client will request a password\&.
|
---|
| 130 | .sp
|
---|
| 131 | If 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
|
---|
| 136 | Try to authenticate with kerberos\&. Only useful in an Active Directory environment\&.
|
---|
| 137 | .RE
|
---|
| 138 | .PP
|
---|
| 139 | \-C|\-\-use\-ccache
|
---|
| 140 | .RS 4
|
---|
| 141 | Try to use the credentials cached by winbind\&.
|
---|
| 142 | .RE
|
---|
| 143 | .PP
|
---|
| 144 | \-A|\-\-authentication\-file=filename
|
---|
| 145 | .RS 4
|
---|
| 146 | This 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
|
---|
| 152 | username = <value>
|
---|
| 153 | password = <value>
|
---|
| 154 | domain = <value>
|
---|
| 155 | .fi
|
---|
| 156 | .if n \{\
|
---|
| 157 | .RE
|
---|
| 158 | .\}
|
---|
| 159 | .sp
|
---|
| 160 | Make certain that the permissions on the file restrict access from unwanted users\&.
|
---|
| 161 | .RE
|
---|
| 162 | .PP
|
---|
| 163 | \-U|\-\-user=username[%password]
|
---|
| 164 | .RS 4
|
---|
| 165 | Sets the SMB username or username and password\&.
|
---|
| 166 | .sp
|
---|
| 167 | If %password is not specified, the user will be prompted\&. The client will first check the
|
---|
| 168 | \fBUSER\fR
|
---|
| 169 | environment variable, then the
|
---|
| 170 | \fBLOGNAME\fR
|
---|
| 171 | variable and if either exists, the string is uppercased\&. If these environmental variables are not found, the username
|
---|
| 172 | \fBGUEST\fR
|
---|
| 173 | is used\&.
|
---|
| 174 | .sp
|
---|
| 175 | A 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
|
---|
| 177 | for more details\&.
|
---|
| 178 | .sp
|
---|
| 179 | Be cautious about including passwords in scripts\&. Also, on many systems the command line of a running process may be seen via the
|
---|
| 180 | ps
|
---|
| 181 | command\&. To be safe always allow
|
---|
| 182 | rpcclient
|
---|
| 183 | to prompt for a password and type it in directly\&.
|
---|
| 184 | .RE
|
---|
| 185 | .SH "QUOTA_SET_COMMAND"
|
---|
| 186 | .PP
|
---|
| 187 | The format of an the QUOTA_SET_COMMAND is an operation name followed by a set of parameters specific to that operation\&.
|
---|
| 188 | .PP
|
---|
| 189 | To 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
|
---|
| 193 | To set the default quotas for a share:
|
---|
| 194 | .PP
|
---|
| 195 | \fB FSQLIM:<softlimit>/<hardlimit> \fR
|
---|
| 196 | .PP
|
---|
| 197 | To change the share quota settings:
|
---|
| 198 | .PP
|
---|
| 199 | \fB FSQFLAGS:QUOTA_ENABLED/DENY_DISK/LOG_SOFTLIMIT/LOG_HARD_LIMIT \fR
|
---|
| 200 | .PP
|
---|
| 201 | All limits are specified as a number of bytes\&.
|
---|
| 202 | .SH "EXIT STATUS"
|
---|
| 203 | .PP
|
---|
| 204 | The
|
---|
| 205 | smbcquotas
|
---|
| 206 | 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\&.
|
---|
| 207 | .PP
|
---|
| 208 | If the operation succeeded, smbcquotas returns an exit status of 0\&. If
|
---|
| 209 | smbcquotas
|
---|
| 210 | couldn\*(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
|
---|
| 213 | This man page is correct for version 3 of the Samba suite\&.
|
---|
| 214 | .SH "AUTHOR"
|
---|
| 215 | .PP
|
---|
| 216 | 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\&.
|
---|
| 217 | .PP
|
---|
| 218 | smbcquotas
|
---|
| 219 | was written by Stefan Metzmacher\&.
|
---|