Changeset 231 for branches/samba-3.2.x/docs/manpages/smbclient.1
- Timestamp:
- May 27, 2009, 9:08:03 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/docs/manpages/smbclient.1
r229 r231 1 1 .\" Title: smbclient 2 .\" Author: 3 .\" Generator: DocBook XSL Stylesheets v1.7 3.1<http://docbook.sf.net/>4 .\" Date: 12/19/20082 .\" Author: [see the "AUTHOR" section] 3 .\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/> 4 .\" Date: 02/03/2009 5 5 .\" Manual: User Commands 6 6 .\" Source: Samba 3.2 7 .\" Language: English 7 8 .\" 8 .TH "SMBCLIENT" "1" "12/19/2008" "Samba 3\.2" "User Commands" 9 .TH "SMBCLIENT" "1" "02/03/2009" "Samba 3\&.2" "User Commands" 10 .\" ----------------------------------------------------------------- 11 .\" * (re)Define some macros 12 .\" ----------------------------------------------------------------- 13 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 14 .\" toupper - uppercase a string (locale-aware) 15 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 16 .de toupper 17 .tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ 18 \\$* 19 .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz 20 .. 21 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 22 .\" SH-xref - format a cross-reference to an SH section 23 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 24 .de SH-xref 25 .ie n \{\ 26 .\} 27 .toupper \\$* 28 .el \{\ 29 \\$* 30 .\} 31 .. 32 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 33 .\" SH - level-one heading that works better for non-TTY output 34 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 35 .de1 SH 36 .\" put an extra blank line of space above the head in non-TTY output 37 .if t \{\ 38 .sp 1 39 .\} 40 .sp \\n[PD]u 41 .nr an-level 1 42 .set-an-margin 43 .nr an-prevailing-indent \\n[IN] 44 .fi 45 .in \\n[an-margin]u 46 .ti 0 47 .HTML-TAG ".NH \\n[an-level]" 48 .it 1 an-trap 49 .nr an-no-space-flag 1 50 .nr an-break-flag 1 51 \." make the size of the head bigger 52 .ps +3 53 .ft B 54 .ne (2v + 1u) 55 .ie n \{\ 56 .\" if n (TTY output), use uppercase 57 .toupper \\$* 58 .\} 59 .el \{\ 60 .nr an-break-flag 0 61 .\" if not n (not TTY), use normal case (not uppercase) 62 \\$1 63 .in \\n[an-margin]u 64 .ti 0 65 .\" if not n (not TTY), put a border/line under subheading 66 .sp -.6 67 \l'\n(.lu' 68 .\} 69 .. 70 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 .\" SS - level-two heading that works better for non-TTY output 72 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 .de1 SS 74 .sp \\n[PD]u 75 .nr an-level 1 76 .set-an-margin 77 .nr an-prevailing-indent \\n[IN] 78 .fi 79 .in \\n[IN]u 80 .ti \\n[SN]u 81 .it 1 an-trap 82 .nr an-no-space-flag 1 83 .nr an-break-flag 1 84 .ps \\n[PS-SS]u 85 \." make the size of the head bigger 86 .ps +2 87 .ft B 88 .ne (2v + 1u) 89 .if \\n[.$] \&\\$* 90 .. 91 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 92 .\" BB/BE - put background/screen (filled box) around block of text 93 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 94 .de BB 95 .if t \{\ 96 .sp -.5 97 .br 98 .in +2n 99 .ll -2n 100 .gcolor red 101 .di BX 102 .\} 103 .. 104 .de EB 105 .if t \{\ 106 .if "\\$2"adjust-for-leading-newline" \{\ 107 .sp -1 108 .\} 109 .br 110 .di 111 .in 112 .ll 113 .gcolor 114 .nr BW \\n(.lu-\\n(.i 115 .nr BH \\n(dn+.5v 116 .ne \\n(BHu+.5v 117 .ie "\\$2"adjust-for-leading-newline" \{\ 118 \M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] 119 .\} 120 .el \{\ 121 \M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] 122 .\} 123 .in 0 124 .sp -.5v 125 .nf 126 .BX 127 .in 128 .sp .5v 129 .fi 130 .\} 131 .. 132 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 133 .\" BM/EM - put colored marker in margin next to block of text 134 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 135 .de BM 136 .if t \{\ 137 .br 138 .ll -2n 139 .gcolor red 140 .di BX 141 .\} 142 .. 143 .de EM 144 .if t \{\ 145 .br 146 .di 147 .ll 148 .gcolor 149 .nr BH \\n(dn 150 .ne \\n(BHu 151 \M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] 152 .in 0 153 .nf 154 .BX 155 .in 156 .fi 157 .\} 158 .. 159 .\" ----------------------------------------------------------------- 160 .\" * set default formatting 161 .\" ----------------------------------------------------------------- 9 162 .\" disable hyphenation 10 163 .nh 11 164 .\" disable justification (adjust text to left margin only) 12 165 .ad l 13 .SH "NAME" 14 smbclient - ftp-like client to access SMB/CIFS resources on servers 15 .SH "SYNOPSIS" 16 .HP 1 17 smbclient [\-b\ <buffer\ size>] [\-d\ debuglevel] [\-e] [\-L\ <netbios\ name>] [\-U\ username] [\-I\ destinationIP] [\-M\ <netbios\ name>] [\-m\ maxprotocol] [\-A\ authfile] [\-N] [\-i\ scope] [\-O\ <socket\ options>] [\-p\ port] [\-R\ <name\ resolve\ order>] [\-s\ <smb\ config\ file>] [\-k] [\-P] [\-c\ <command>] 18 .HP 1 19 smbclient {servicename} [password] [\-b\ <buffer\ size>] [\-d\ debuglevel] [\-e] [\-D\ Directory] [\-U\ username] [\-W\ workgroup] [\-M\ <netbios\ name>] [\-m\ maxprotocol] [\-A\ authfile] [\-N] [\-l\ log\-basename] [\-I\ destinationIP] [\-E] [\-c\ <command\ string>] [\-i\ scope] [\-O\ <socket\ options>] [\-p\ port] [\-R\ <name\ resolve\ order>] [\-s\ <smb\ config\ file>] [\-T<c|x>IXFqgbNan] [\-k] 166 .\" ----------------------------------------------------------------- 167 .\" * MAIN CONTENT STARTS HERE * 168 .\" ----------------------------------------------------------------- 169 .SH "Name" 170 smbclient \- ftp\-like client to access SMB/CIFS resources on servers 171 .SH "Synopsis" 172 .fam C 173 .HP \w'\ 'u 174 \FCsmbclient\F[] [\-b\ <buffer\ size>] [\-d\ debuglevel] [\-e] [\-L\ <netbios\ name>] [\-U\ username] [\-I\ destinationIP] [\-M\ <netbios\ name>] [\-m\ maxprotocol] [\-A\ authfile] [\-N] [\-g] [\-i\ scope] [\-O\ <socket\ options>] [\-p\ port] [\-R\ <name\ resolve\ order>] [\-s\ <smb\ config\ file>] [\-k] [\-P] [\-c\ <command>] 175 .fam 176 .fam C 177 .HP \w'\ 'u 178 \FCsmbclient\F[] {servicename} [password] [\-b\ <buffer\ size>] [\-d\ debuglevel] [\-e] [\-D\ Directory] [\-U\ username] [\-W\ workgroup] [\-M\ <netbios\ name>] [\-m\ maxprotocol] [\-A\ authfile] [\-N] [\-g] [\-l\ log\-basename] [\-I\ destinationIP] [\-E] [\-c\ <command\ string>] [\-i\ scope] [\-O\ <socket\ options>] [\-p\ port] [\-R\ <name\ resolve\ order>] [\-s\ <smb\ config\ file>] [\-T<c|x>IXFqgbNan] [\-k] 179 .fam 20 180 .SH "DESCRIPTION" 21 181 .PP 22 182 This tool is part of the 23 183 \fBsamba\fR(7) 24 suite\ .25 .PP 26 smbclient 27 is a client that can \'talk\' to an SMB/CIFS server\ . It offers an interface similar to that of the ftp program (see28 \fBftp\fR(1))\ . Operations include things like getting files from the server to the local machine, putting files from the local machine to the server, retrieving directory information from the server and so on\.184 suite\&. 185 .PP 186 \FCsmbclient\F[] 187 is a client that can \'talk\' to an SMB/CIFS server\&. It offers an interface similar to that of the ftp program (see 188 \fBftp\fR(1))\&. Operations include things like getting files from the server to the local machine, putting files from the local machine to the server, retrieving directory information from the server and so on\&. 29 189 .SH "OPTIONS" 30 190 .PP 31 191 servicename 32 192 .RS 4 33 servicename is the name of the service you want to use on the server\ . A service name takes the form34 \ fI//server/service\fR193 servicename is the name of the service you want to use on the server\&. A service name takes the form 194 \FC//server/service\F[] 35 195 where 36 196 \fIserver \fR 37 197 is the NetBIOS name of the SMB/CIFS server offering the desired service and 38 198 \fIservice\fR 39 is the name of the service offered\ . Thus to connect to the service "printer" on the SMB/CIFS server "smbserver", you would use the servicename40 \ fI//smbserver/printer \fR41 .sp 42 Note that the server name required is NOT necessarily the IP (DNS) host name of the server ! The name required is a NetBIOS server name, which may or may not be the same as the IP hostname of the machine running the server\ .199 is the name of the service offered\&. Thus to connect to the service "printer" on the SMB/CIFS server "smbserver", you would use the servicename 200 \FC//smbserver/printer \F[] 201 .sp 202 Note that the server name required is NOT necessarily the IP (DNS) host name of the server ! The name required is a NetBIOS server name, which may or may not be the same as the IP hostname of the machine running the server\&. 43 203 .sp 44 204 The server name is looked up according to either the 45 205 \fI\-R\fR 46 206 parameter to 47 smbclient 207 \FCsmbclient\F[] 48 208 or using the name resolve order parameter in the 49 209 \fBsmb.conf\fR(5) 50 file, allowing an administrator to change the order and methods by which server names are looked up\ .210 file, allowing an administrator to change the order and methods by which server names are looked up\&. 51 211 .RE 52 212 .PP 53 213 password 54 214 .RS 4 55 The password required to access the specified service on the specified server\ . If this parameter is supplied, the215 The password required to access the specified service on the specified server\&. If this parameter is supplied, the 56 216 \fI\-N\fR 57 option (suppress password prompt) is assumed\ .58 .sp 59 There is no default password\ . If no password is supplied on the command line (either by using this parameter or adding a password to the217 option (suppress password prompt) is assumed\&. 218 .sp 219 There is no default password\&. If no password is supplied on the command line (either by using this parameter or adding a password to the 60 220 \fI\-U\fR 61 221 option (see below)) and the 62 222 \fI\-N\fR 63 option is not specified, the client will prompt for a password, even if the desired service does not require one\ . (If no password is required, simply press ENTER to provide a null password\.)64 .sp 65 Note: Some servers (including OS/2 and Windows for Workgroups) insist on an uppercase password\ . Lowercase or mixed case passwords may be rejected by these servers\.66 .sp 67 Be cautious about including passwords in scripts\ .223 option is not specified, the client will prompt for a password, even if the desired service does not require one\&. (If no password is required, simply press ENTER to provide a null password\&.) 224 .sp 225 Note: Some servers (including OS/2 and Windows for Workgroups) insist on an uppercase password\&. Lowercase or mixed case passwords may be rejected by these servers\&. 226 .sp 227 Be cautious about including passwords in scripts\&. 68 228 .RE 69 229 .PP 70 230 \-R <name resolve order> 71 231 .RS 4 72 This option is used by the programs in the Samba suite to determine what naming services and in what order to resolve host names to IP addresses\ . The option takes a space\-separated string of different name resolution options\.73 .sp 74 The options are :"lmhosts", "host", "wins" and "bcast"\ . They cause names to be resolved as follows:75 .sp 76 .RS 4 77 .ie n \{\ 78 \h'-04'\(bu\h'+03'\c 79 .\} 80 .el \{\ 81 .sp -1 82 .IP \(bu 2.3 83 .\} 84 \fBlmhosts\fR: Lookup an IP address in the Samba lmhosts file\ . If the line in lmhosts has no name type attached to the NetBIOS name (see the232 This option is used by the programs in the Samba suite to determine what naming services and in what order to resolve host names to IP addresses\&. The option takes a space\-separated string of different name resolution options\&. 233 .sp 234 The options are :"lmhosts", "host", "wins" and "bcast"\&. They cause names to be resolved as follows: 235 .sp 236 .RS 4 237 .ie n \{\ 238 \h'-04'\(bu\h'+03'\c 239 .\} 240 .el \{\ 241 .sp -1 242 .IP \(bu 2.3 243 .\} 244 \fBlmhosts\fR: Lookup an IP address in the Samba lmhosts file\&. If the line in lmhosts has no name type attached to the NetBIOS name (see the 85 245 \fBlmhosts\fR(5) 86 for details) then any name type matches for lookup\ .246 for details) then any name type matches for lookup\&. 87 247 .RE 88 248 .sp … … 96 256 .\} 97 257 \fBhost\fR: Do a standard host name to IP address resolution, using the system 98 \ fI/etc/hosts \fR, NIS, or DNS lookups\. This method of name resolution is operating system dependent, for instance on IRIX or Solaris this may be controlled by the99 \ fI/etc/nsswitch\.conf\fR100 file)\ . Note that this method is only used if the NetBIOS name type being queried is the 0x20 (server) name type, otherwise it is ignored\.258 \FC/etc/hosts \F[], NIS, or DNS lookups\&. This method of name resolution is operating system dependent, for instance on IRIX or Solaris this may be controlled by the 259 \FC/etc/nsswitch\&.conf\F[] 260 file)\&. Note that this method is only used if the NetBIOS name type being queried is the 0x20 (server) name type, otherwise it is ignored\&. 101 261 .RE 102 262 .sp … … 111 271 \fBwins\fR: Query a name with the IP address listed in the 112 272 \fIwins server\fR 113 parameter\ . If no WINS server has been specified this method will be ignored\.273 parameter\&. If no WINS server has been specified this method will be ignored\&. 114 274 .RE 115 275 .sp … … 124 284 \fBbcast\fR: Do a broadcast on each of the known local interfaces listed in the 125 285 \fIinterfaces\fR 126 parameter\ . This is the least reliable of the name resolution methods as it depends on the target host being on a locally connected subnet\.286 parameter\&. This is the least reliable of the name resolution methods as it depends on the target host being on a locally connected subnet\&. 127 287 .sp 128 288 .RE 129 289 If this parameter is not set then the name resolve order defined in the 130 290 \fBsmb.conf\fR(5) 131 file parameter (name resolve order) will be used\ .291 file parameter (name resolve order) will be used\&. 132 292 .sp 133 293 The default order is lmhosts, host, wins, bcast and without this parameter or any entry in the … … 135 295 parameter of the 136 296 \fBsmb.conf\fR(5) 137 file the name resolution methods will be attempted in this order\ .297 file the name resolution methods will be attempted in this order\&. 138 298 .RE 139 299 .PP 140 300 \-M NetBIOS name 141 301 .RS 4 142 This options allows you to send messages, using the "WinPopup" protocol, to another computer\ . Once a connection is established you then type your message, pressing ^D (control\-D) to end\.143 .sp 144 If the receiving computer is running WinPopup the user will receive the message and probably a beep\ . If they are not running WinPopup the message will be lost, and no error message will occur\.145 .sp 146 The message is also automatically truncated if the message is over 1600 bytes, as this is the limit of the protocol\ .302 This options allows you to send messages, using the "WinPopup" protocol, to another computer\&. Once a connection is established you then type your message, pressing ^D (control\-D) to end\&. 303 .sp 304 If the receiving computer is running WinPopup the user will receive the message and probably a beep\&. If they are not running WinPopup the message will be lost, and no error message will occur\&. 305 .sp 306 The message is also automatically truncated if the message is over 1600 bytes, as this is the limit of the protocol\&. 147 307 .sp 148 308 One useful trick is to pipe the message through 149 smbclient\. For example: smbclient \-M FRED < mymessage\.txt will send the message in the file150 \ fImymessage\.txt\fR151 to the machine FRED\ .309 \FCsmbclient\F[]\&. For example: smbclient \-M FRED < mymessage\&.txt will send the message in the file 310 \FCmymessage\&.txt\F[] 311 to the machine FRED\&. 152 312 .sp 153 313 You may also find the … … 155 315 and 156 316 \fI\-I\fR 157 options useful, as they allow you to control the FROM and TO parts of the message\ .317 options useful, as they allow you to control the FROM and TO parts of the message\&. 158 318 .sp 159 319 See the … … 161 321 parameter in the 162 322 \fBsmb.conf\fR(5) 163 for a description of how to handle incoming WinPopup messages in Samba\ .164 .sp 165 \fINote\fR: Copy WinPopup into the startup group on your WfWg PCs if you want them to always be able to receive messages\ .323 for a description of how to handle incoming WinPopup messages in Samba\&. 324 .sp 325 \fINote\fR: Copy WinPopup into the startup group on your WfWg PCs if you want them to always be able to receive messages\&. 166 326 .RE 167 327 .PP 168 328 \-p port 169 329 .RS 4 170 This number is the TCP port number that will be used when making connections to the server\. The standard (well\-known) TCP port number for an SMB/CIFS server is 139, which is the default\. 330 This number is the TCP port number that will be used when making connections to the server\&. The standard (well\-known) TCP port number for an SMB/CIFS server is 139, which is the default\&. 331 .RE 332 .PP 333 \-g 334 .RS 4 335 This parameter provides combined with 336 \fI\-L\fR 337 easy parseable output that allows processing with utilities such as grep and cut\&. 171 338 .RE 172 339 .PP 173 340 \-P 174 341 .RS 4 175 Make queries to the external server using the machine account of the local server\ .342 Make queries to the external server using the machine account of the local server\&. 176 343 .RE 177 344 .PP 178 345 \-h|\-\-help 179 346 .RS 4 180 Print a summary of command line options\ .347 Print a summary of command line options\&. 181 348 .RE 182 349 .PP … … 184 351 .RS 4 185 352 \fIIP address\fR 186 is the address of the server to connect to\ . It should be specified in standard "a\.b\.c\.d" notation\.353 is the address of the server to connect to\&. It should be specified in standard "a\&.b\&.c\&.d" notation\&. 187 354 .sp 188 355 Normally the client would attempt to locate a named SMB/CIFS server by looking it up via the NetBIOS name resolution mechanism described above in the 189 356 \fIname resolve order\fR 190 parameter above\ . Using this parameter will force the client to assume that the server is on the machine with the specified IP address and the NetBIOS name component of the resource being connected to will be ignored\.191 .sp 192 There is no default for this parameter\ . If not supplied, it will be determined automatically by the client as described above\.357 parameter above\&. Using this parameter will force the client to assume that the server is on the machine with the specified IP address and the NetBIOS name component of the resource being connected to will be ignored\&. 358 .sp 359 There is no default for this parameter\&. If not supplied, it will be determined automatically by the client as described above\&. 193 360 .RE 194 361 .PP 195 362 \-E 196 363 .RS 4 197 This parameter causes the client to write messages to the standard error stream (stderr) rather than to the standard output stream\ .198 .sp 199 By default, the client writes messages to standard output \- typically the user\'s tty\ .364 This parameter causes the client to write messages to the standard error stream (stderr) rather than to the standard output stream\&. 365 .sp 366 By default, the client writes messages to standard output \- typically the user\'s tty\&. 200 367 .RE 201 368 .PP 202 369 \-L 203 370 .RS 4 204 This option allows you to look at what services are available on a server\ . You use it as205 smbclient \-L host 206 and a list should appear\ . The371 This option allows you to look at what services are available on a server\&. You use it as 372 \FCsmbclient \-L host\F[] 373 and a list should appear\&. The 207 374 \fI\-I \fR 208 option may be useful if your NetBIOS names don\'t match your TCP/IP DNS host names or if you are trying to reach a host on another network\ .375 option may be useful if your NetBIOS names don\'t match your TCP/IP DNS host names or if you are trying to reach a host on another network\&. 209 376 .RE 210 377 .PP … … 212 379 .RS 4 213 380 This option tells 214 smbclient 215 how to interpret filenames coming from the remote server\ . Usually Asian language multibyte UNIX implementations use different character sets than SMB/CIFS servers (\fIEUC\fR381 \FCsmbclient\F[] 382 how to interpret filenames coming from the remote server\&. Usually Asian language multibyte UNIX implementations use different character sets than SMB/CIFS servers (\fIEUC\fR 216 383 instead of 217 384 \fI SJIS\fR 218 for example)\ . Setting this parameter will let219 smbclient 220 convert between the UNIX filenames and the SMB filenames correctly\ . This option has not been seriously tested and may have some problems\.221 .sp 222 The terminal codes include CWsjis, CWeuc, CWjis7, CWjis8, CWjunet, CWhex, CWcap\ . This is not a complete list, check the Samba source code for the complete list\.385 for example)\&. Setting this parameter will let 386 \FCsmbclient\F[] 387 convert between the UNIX filenames and the SMB filenames correctly\&. This option has not been seriously tested and may have some problems\&. 388 .sp 389 The terminal codes include CWsjis, CWeuc, CWjis7, CWjis8, CWjunet, CWhex, CWcap\&. This is not a complete list, check the Samba source code for the complete list\&. 223 390 .RE 224 391 .PP 225 392 \-b buffersize 226 393 .RS 4 227 This option changes the transmit/send buffer size when getting or putting a file from/to the server\ . The default is 65520 bytes\. Setting this value smaller (to 1200 bytes) has been observed to speed up file transfers to and from a Win9x server\.394 This option changes the transmit/send buffer size when getting or putting a file from/to the server\&. The default is 65520 bytes\&. Setting this value smaller (to 1200 bytes) has been observed to speed up file transfers to and from a Win9x server\&. 228 395 .RE 229 396 .PP 230 397 \-e 231 398 .RS 4 232 This command line parameter requires the remote server support the UNIX extensions\ . Request that the connection be encrypted\. This is new for Samba 3\.2 and will only work with Samba 3\.2 or above servers\. Negotiates SMB encryption using GSSAPI\. Uses the given credentials for the encryption negotiaion (either kerberos or NTLMv1/v2 if given domain/username/password triple\. Fails the connection if encryption cannot be negotiated\.399 This command line parameter requires the remote server support the UNIX extensions\&. Request that the connection be encrypted\&. This is new for Samba 3\&.2 and will only work with Samba 3\&.2 or above servers\&. Negotiates SMB encryption using GSSAPI\&. Uses the given credentials for the encryption negotiaion (either kerberos or NTLMv1/v2 if given domain/username/password triple\&. Fails the connection if encryption cannot be negotiated\&. 233 400 .RE 234 401 .PP … … 236 403 .RS 4 237 404 \fIlevel\fR 238 is an integer from 0 to 10\ . The default value if this parameter is not specified is 1\.239 .sp 240 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\.241 .sp 242 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\.405 is an integer from 0 to 10\&. The default value if this parameter is not specified is 1\&. 406 .sp 407 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\&. 408 .sp 409 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\&. 243 410 .sp 244 411 Note that specifying this parameter here will override the 245 \ fIlog level\fR412 \m[blue]\fBlog level\fR\m[] 246 413 parameter in the 247 \ fIsmb\.conf\fR248 file\ .414 \FCsmb\&.conf\F[] 415 file\&. 249 416 .RE 250 417 .PP 251 418 \-V 252 419 .RS 4 253 Prints the program version number\ .420 Prints the program version number\&. 254 421 .RE 255 422 .PP 256 423 \-s <configuration file> 257 424 .RS 4 258 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\. See259 \ fIsmb\.conf\fR260 for more information\ . The default configuration file name is determined at compile time\.425 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 426 \FCsmb\&.conf\F[] 427 for more information\&. The default configuration file name is determined at compile time\&. 261 428 .RE 262 429 .PP 263 430 \-l|\-\-log\-basename=logdirectory 264 431 .RS 4 265 Base directory name for log/debug files\ . The extension266 \fB"\ .progname"\fR267 will be appended (e\ .g\. log\.smbclient, log\.smbd, etc\.\.\.)\. The log file is never removed by the client\.432 Base directory name for log/debug files\&. The extension 433 \fB"\&.progname"\fR 434 will be appended (e\&.g\&. log\&.smbclient, log\&.smbd, etc\&.\&.\&.)\&. The log file is never removed by the client\&. 268 435 .RE 269 436 .PP 270 437 \-N 271 438 .RS 4 272 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\.273 .sp 274 Unless a password is specified on the command line or this parameter is specified, the client will request a password\ .275 .sp 276 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\ .439 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\&. 440 .sp 441 Unless a password is specified on the command line or this parameter is specified, the client will request a password\&. 442 .sp 443 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\&. 277 444 .RE 278 445 .PP 279 446 \-k 280 447 .RS 4 281 Try to authenticate with kerberos\ . Only useful in an Active Directory environment\.448 Try to authenticate with kerberos\&. Only useful in an Active Directory environment\&. 282 449 .RE 283 450 .PP 284 451 \-A|\-\-authentication\-file=filename 285 452 .RS 4 286 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 287 .sp 288 .sp 289 .RS 4 453 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 454 .sp 455 .if n \{\ 456 .RS 4 457 .\} 458 .fam C 459 .ps -1 290 460 .nf 461 .if t \{\ 462 .sp -1 463 .\} 464 .BB lightgray adjust-for-leading-newline 465 .sp -1 466 291 467 username = <value> 292 468 password = <value> 293 469 domain = <value> 470 .EB lightgray adjust-for-leading-newline 471 .if t \{\ 472 .sp 1 473 .\} 294 474 .fi 295 .RE 296 .sp 297 Make certain that the permissions on the file restrict access from unwanted users\. 475 .fam 476 .ps +1 477 .if n \{\ 478 .RE 479 .\} 480 .sp 481 Make certain that the permissions on the file restrict access from unwanted users\&. 298 482 .RE 299 483 .PP 300 484 \-U|\-\-user=username[%password] 301 485 .RS 4 302 Sets the SMB username or username and password\ .303 .sp 304 If %password is not specified, the user will be prompted\ . The client will first check the486 Sets the SMB username or username and password\&. 487 .sp 488 If %password is not specified, the user will be prompted\&. The client will first check the 305 489 \fBUSER\fR 306 490 environment variable, then the 307 491 \fBLOGNAME\fR 308 variable and if either exists, the string is uppercased\ . If these environmental variables are not found, the username492 variable and if either exists, the string is uppercased\&. If these environmental variables are not found, the username 309 493 \fBGUEST\fR 310 is used\ .311 .sp 312 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 the494 is used\&. 495 .sp 496 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 313 497 \fI\-A\fR 314 for more details\ .315 .sp 316 Be cautious about including passwords in scripts\ . Also, on many systems the command line of a running process may be seen via the317 ps 318 command\ . To be safe always allow319 rpcclient 320 to prompt for a password and type it in directly\ .498 for more details\&. 499 .sp 500 Be cautious about including passwords in scripts\&. Also, on many systems the command line of a running process may be seen via the 501 \FCps\F[] 502 command\&. To be safe always allow 503 \FCrpcclient\F[] 504 to prompt for a password and type it in directly\&. 321 505 .RE 322 506 .PP 323 507 \-n <primary NetBIOS name> 324 508 .RS 4 325 This option allows you to override the NetBIOS name that Samba uses for itself\ . This is identical to setting the326 \ fInetbios name\fR509 This option allows you to override the NetBIOS name that Samba uses for itself\&. This is identical to setting the 510 \m[blue]\fBnetbios name\fR\m[] 327 511 parameter in the 328 \ fIsmb\.conf\fR329 file\ . However, a command line setting will take precedence over settings in330 \ fIsmb\.conf\fR\.512 \FCsmb\&.conf\F[] 513 file\&. However, a command line setting will take precedence over settings in 514 \FCsmb\&.conf\F[]\&. 331 515 .RE 332 516 .PP … … 334 518 .RS 4 335 519 This specifies a NetBIOS scope that 336 nmblookup 337 will use to communicate with when generating NetBIOS names\ . For details on the use of NetBIOS scopes, see rfc1001\.txt and rfc1002\.txt\. NetBIOS scopes are520 \FCnmblookup\F[] 521 will use to communicate with when generating NetBIOS names\&. For details on the use of NetBIOS scopes, see rfc1001\&.txt and rfc1002\&.txt\&. NetBIOS scopes are 338 522 \fIvery\fR 339 rarely used, only set this parameter if you are the system administrator in charge of all the NetBIOS systems you communicate with\ .523 rarely used, only set this parameter if you are the system administrator in charge of all the NetBIOS systems you communicate with\&. 340 524 .RE 341 525 .PP 342 526 \-W|\-\-workgroup=domain 343 527 .RS 4 344 Set the SMB domain of the username\ . This overrides the default domain which is the domain defined in smb\.conf\. If the domain specified is the same as the servers NetBIOS name, it causes the client to log on using the servers local SAM (as opposed to the Domain SAM)\.528 Set the SMB domain of the username\&. This overrides the default domain which is the domain defined in smb\&.conf\&. If the domain specified is the same as the servers NetBIOS name, it causes the client to log on using the servers local SAM (as opposed to the Domain SAM)\&. 345 529 .RE 346 530 .PP 347 531 \-O socket options 348 532 .RS 4 349 TCP socket options to set on the client socket\ . See the socket options parameter in the350 \ fIsmb\.conf\fR351 manual page for the list of valid options\ .533 TCP socket options to set on the client socket\&. See the socket options parameter in the 534 \FCsmb\&.conf\F[] 535 manual page for the list of valid options\&. 352 536 .RE 353 537 .PP … … 355 539 .RS 4 356 540 smbclient may be used to create 357 tar(1) 358 compatible backups of all the files on an SMB/CIFS share\ . The secondary tar flags that can be given to this option are :541 \FCtar(1) \F[] 542 compatible backups of all the files on an SMB/CIFS share\&. The secondary tar flags that can be given to this option are : 359 543 .sp 360 544 .RS 4 … … 367 551 .\} 368 552 \fIc\fR 369 \- Create a tar file on UNIX\ . Must be followed by the name of a tar file, tape device or "\-" for standard output\. If using standard output you must turn the log level to its lowest value \-d0 to avoid corrupting your tar file\. This flag is mutually exclusive with the553 \- Create a tar file on UNIX\&. Must be followed by the name of a tar file, tape device or "\-" for standard output\&. If using standard output you must turn the log level to its lowest value \-d0 to avoid corrupting your tar file\&. This flag is mutually exclusive with the 370 554 \fIx\fR 371 flag\ .555 flag\&. 372 556 .RE 373 557 .sp … … 381 565 .\} 382 566 \fIx\fR 383 \- Extract (restore) a local tar file back to a share\ . Unless the \-D option is given, the tar files will be restored from the top level of the share\. Must be followed by the name of the tar file, device or "\-" for standard input\. Mutually exclusive with the567 \- Extract (restore) a local tar file back to a share\&. Unless the \-D option is given, the tar files will be restored from the top level of the share\&. Must be followed by the name of the tar file, device or "\-" for standard input\&. Mutually exclusive with the 384 568 \fIc\fR 385 flag\ . Restored files have their creation times (mtime) set to the date saved in the tar file\. Directories currently do not get their creation dates restored properly\.569 flag\&. Restored files have their creation times (mtime) set to the date saved in the tar file\&. Directories currently do not get their creation dates restored properly\&. 386 570 .RE 387 571 .sp … … 395 579 .\} 396 580 \fII\fR 397 \- Include files and directories\ . Is the default behavior when filenames are specified above\. Causes files to be included in an extract or create (and therefore everything else to be excluded)\. See example below\. Filename globbing works in one of two ways\. See581 \- Include files and directories\&. Is the default behavior when filenames are specified above\&. Causes files to be included in an extract or create (and therefore everything else to be excluded)\&. See example below\&. Filename globbing works in one of two ways\&. See 398 582 \fIr\fR 399 below\ .583 below\&. 400 584 .RE 401 585 .sp … … 409 593 .\} 410 594 \fIX\fR 411 \- Exclude files and directories\ . Causes files to be excluded from an extract or create\. See example below\. Filename globbing works in one of two ways now\. See595 \- Exclude files and directories\&. Causes files to be excluded from an extract or create\&. See example below\&. Filename globbing works in one of two ways now\&. See 412 596 \fIr\fR 413 below\ .597 below\&. 414 598 .RE 415 599 .sp … … 423 607 .\} 424 608 \fIF\fR 425 \- File containing a list of files and directories\ . The609 \- File containing a list of files and directories\&. The 426 610 \fIF\fR 427 causes the name following the tarfile to create to be read as a filename that contains a list of files and directories to be included in an extract or create (and therefore everything else to be excluded)\ . See example below\. Filename globbing works in one of two ways\. See611 causes the name following the tarfile to create to be read as a filename that contains a list of files and directories to be included in an extract or create (and therefore everything else to be excluded)\&. See example below\&. Filename globbing works in one of two ways\&. See 428 612 \fIr\fR 429 below\ .613 below\&. 430 614 .RE 431 615 .sp … … 439 623 .\} 440 624 \fIb\fR 441 \- Blocksize\ . Must be followed by a valid (greater than zero) blocksize\. Causes tar file to be written out in blocksize*TBLOCK (usually 512 byte) blocks\.625 \- Blocksize\&. Must be followed by a valid (greater than zero) blocksize\&. Causes tar file to be written out in blocksize*TBLOCK (usually 512 byte) blocks\&. 442 626 .RE 443 627 .sp … … 451 635 .\} 452 636 \fIg\fR 453 \- Incremental\ . Only back up files that have the archive bit set\. Useful only with the637 \- Incremental\&. Only back up files that have the archive bit set\&. Useful only with the 454 638 \fIc\fR 455 flag\ .639 flag\&. 456 640 .RE 457 641 .sp … … 465 649 .\} 466 650 \fIq\fR 467 \- Quiet\ . Keeps tar from printing diagnostics as it works\. This is the same as tarmode quiet\.651 \- Quiet\&. Keeps tar from printing diagnostics as it works\&. This is the same as tarmode quiet\&. 468 652 .RE 469 653 .sp … … 477 661 .\} 478 662 \fIr\fR 479 \- Regular expression include or exclude\ . Uses regular expression matching for excluding or excluding files if compiled with HAVE_REGEX_H\. However this mode can be very slow\. If not compiled with HAVE_REGEX_H, does a limited wildcard match on \'*\' and \'?\'\.663 \- Regular expression include or exclude\&. Uses regular expression matching for excluding or excluding files if compiled with HAVE_REGEX_H\&. However this mode can be very slow\&. If not compiled with HAVE_REGEX_H, does a limited wildcard match on \'*\' and \'?\'\&. 480 664 .RE 481 665 .sp … … 489 673 .\} 490 674 \fIN\fR 491 \- Newer than\ . Must be followed by the name of a file whose date is compared against files found on the share during a create\. Only files newer than the file specified are backed up to the tar file\. Useful only with the675 \- Newer than\&. Must be followed by the name of a file whose date is compared against files found on the share during a create\&. Only files newer than the file specified are backed up to the tar file\&. Useful only with the 492 676 \fIc\fR 493 flag\ .677 flag\&. 494 678 .RE 495 679 .sp … … 503 687 .\} 504 688 \fIa\fR 505 \- Set archive bit\ . Causes the archive bit to be reset when a file is backed up\. Useful with the689 \- Set archive bit\&. Causes the archive bit to be reset when a file is backed up\&. Useful with the 506 690 \fIg\fR 507 691 and 508 692 \fIc\fR 509 flags\ .693 flags\&. 510 694 .sp 511 695 .RE 512 696 \fITar Long File Names\fR 513 697 .sp 514 smbclient\'s tar option now supports long file names both on backup and restore\. However, the full path name of the file must be less than 1024 bytes\. Also, when a tar archive is created,515 smbclient\'s tar option places all files in the archive with relative names, not absolute names\.698 \FCsmbclient\F[]\'s tar option now supports long file names both on backup and restore\&. However, the full path name of the file must be less than 1024 bytes\&. Also, when a tar archive is created, 699 \FCsmbclient\F[]\'s tar option places all files in the archive with relative names, not absolute names\&. 516 700 .sp 517 701 \fITar Filenames\fR 518 702 .sp 519 All file names can be given as DOS path names (with \'\e\e\' as the component separator) or as UNIX path names (with \'/\' as the component separator)\ .703 All file names can be given as DOS path names (with \'\e\e\' as the component separator) or as UNIX path names (with \'/\' as the component separator)\&. 520 704 .sp 521 705 \fIExamples\fR 522 706 .sp 523 707 Restore from tar file 524 \ fIbackup\.tar\fR525 into myshare on mypc (no password on share)\ .526 .sp 527 smbclient //mypc/yshare "" \-N \-Tx backup\.tar 708 \FCbackup\&.tar\F[] 709 into myshare on mypc (no password on share)\&. 710 .sp 711 \FCsmbclient //mypc/yshare "" \-N \-Tx backup\&.tar \F[] 528 712 .sp 529 713 Restore everything except 530 \ fIusers/docs\fR531 .sp 532 smbclient //mypc/myshare "" \-N \-TXx backup\.tar users/docs 714 \FCusers/docs\F[] 715 .sp 716 \FCsmbclient //mypc/myshare "" \-N \-TXx backup\&.tar users/docs\F[] 533 717 .sp 534 718 Create a tar file of the files beneath 535 \ fI users/docs\fR\.536 .sp 537 smbclient //mypc/myshare "" \-N \-Tc backup\.tar users/docs 538 .sp 539 Create the same tar file as above, but now use a DOS path name\ .540 .sp 541 smbclient //mypc/myshare "" \-N \-tc backup\.tar users\eedocs 719 \FC users/docs\F[]\&. 720 .sp 721 \FCsmbclient //mypc/myshare "" \-N \-Tc backup\&.tar users/docs \F[] 722 .sp 723 Create the same tar file as above, but now use a DOS path name\&. 724 .sp 725 \FCsmbclient //mypc/myshare "" \-N \-tc backup\&.tar users\eedocs \F[] 542 726 .sp 543 727 Create a tar file of the files listed in the file 544 \ fItarlist\fR\.545 .sp 546 smbclient //mypc/myshare "" \-N \-TcF backup\.tar tarlist 547 .sp 548 Create a tar file of all the files and directories in the share\ .549 .sp 550 smbclient //mypc/myshare "" \-N \-Tc backup\.tar * 728 \FCtarlist\F[]\&. 729 .sp 730 \FCsmbclient //mypc/myshare "" \-N \-TcF backup\&.tar tarlist\F[] 731 .sp 732 Create a tar file of all the files and directories in the share\&. 733 .sp 734 \FCsmbclient //mypc/myshare "" \-N \-Tc backup\&.tar * \F[] 551 735 .RE 552 736 .PP 553 737 \-D initial directory 554 738 .RS 4 555 Change to initial directory before starting\ . Probably only of any use with the tar \-T option\.739 Change to initial directory before starting\&. Probably only of any use with the tar \-T option\&. 556 740 .RE 557 741 .PP 558 742 \-c command string 559 743 .RS 4 560 command string is a semicolon\-separated list of commands to be executed instead of prompting from stdin\ .744 command string is a semicolon\-separated list of commands to be executed instead of prompting from stdin\&. 561 745 \fI \-N\fR 562 746 is implied by 563 \fI\-c\fR\ .564 .sp 565 This is particularly useful in scripts and for printing stdin to the server, e\ .g\.566 \ -c \'print \-\'\.747 \fI\-c\fR\&. 748 .sp 749 This is particularly useful in scripts and for printing stdin to the server, e\&.g\&. 750 \FC\-c \'print \-\'\F[]\&. 567 751 .RE 568 752 .SH "OPERATIONS" … … 570 754 Once the client is running, the user is presented with a prompt : 571 755 .PP 572 smb:\e> 573 .PP 574 The backslash ("\e\e") indicates the current working directory on the server, and will change if the current working directory is changed\ .575 .PP 576 The prompt indicates that the client is ready and waiting to carry out a user command\ . Each command is a single word, optionally followed by parameters specific to that command\. Command and parameters are space\-delimited unless these notes specifically state otherwise\. All commands are case\-insensitive\. Parameters to commands may or may not be case sensitive, depending on the command\.577 .PP 578 You can specify file names which have spaces in them by quoting the name with double quotes, for example "a long file name"\ .579 .PP 580 Parameters shown in square brackets (e\ .g\., "[parameter]") are optional\. If not given, the command will use suitable defaults\. Parameters shown in angle brackets (e\.g\., "<parameter>") are required\.581 .PP 582 Note that all commands operating on the server are actually performed by issuing a request to the server\ . Thus the behavior may vary from server to server, depending on how the server was implemented\.583 .PP 584 The commands available are given here in alphabetical order\ .756 \FCsmb:\e> \F[] 757 .PP 758 The backslash ("\e\e") indicates the current working directory on the server, and will change if the current working directory is changed\&. 759 .PP 760 The prompt indicates that the client is ready and waiting to carry out a user command\&. Each command is a single word, optionally followed by parameters specific to that command\&. Command and parameters are space\-delimited unless these notes specifically state otherwise\&. All commands are case\-insensitive\&. Parameters to commands may or may not be case sensitive, depending on the command\&. 761 .PP 762 You can specify file names which have spaces in them by quoting the name with double quotes, for example "a long file name"\&. 763 .PP 764 Parameters shown in square brackets (e\&.g\&., "[parameter]") are optional\&. If not given, the command will use suitable defaults\&. Parameters shown in angle brackets (e\&.g\&., "<parameter>") are required\&. 765 .PP 766 Note that all commands operating on the server are actually performed by issuing a request to the server\&. Thus the behavior may vary from server to server, depending on how the server was implemented\&. 767 .PP 768 The commands available are given here in alphabetical order\&. 585 769 .PP 586 770 ? [command] … … 588 772 If 589 773 \fIcommand\fR 590 is specified, the ? command will display a brief informative message about the specified command\ . If no command is specified, a list of available commands will be displayed\.774 is specified, the ? command will display a brief informative message about the specified command\&. If no command is specified, a list of available commands will be displayed\&. 591 775 .RE 592 776 .PP … … 595 779 If 596 780 \fIshell command\fR 597 is specified, the ! command will execute a shell locally and run the specified shell command\ . If no command is specified, a local shell will be run\.781 is specified, the ! command will execute a shell locally and run the specified shell command\&. If no command is specified, a local shell will be run\&. 598 782 .RE 599 783 .PP 600 784 allinfo file 601 785 .RS 4 602 The client will request that the server return all known information about a file or directory (including streams)\ .786 The client will request that the server return all known information about a file or directory (including streams)\&. 603 787 .RE 604 788 .PP 605 789 altname file 606 790 .RS 4 607 The client will request that the server return the "alternate" name (the 8\ .3 name) for a file or directory\.791 The client will request that the server return the "alternate" name (the 8\&.3 name) for a file or directory\&. 608 792 .RE 609 793 .PP 610 794 archive <number> 611 795 .RS 4 612 Sets the archive level when operating on files\ . 0 means ignore the archive bit, 1 means only operate on files with this bit set, 2 means only operate on files with this bit set and reset it after operation, 3 means operate on all files and reset it after operation\. The default is 0\.796 Sets the archive level when operating on files\&. 0 means ignore the archive bit, 1 means only operate on files with this bit set, 2 means only operate on files with this bit set and reset it after operation, 3 means operate on all files and reset it after operation\&. The default is 0\&. 613 797 .RE 614 798 .PP 615 799 blocksize <number> 616 800 .RS 4 617 Sets the blocksize parameter for a tar operation\ . The default is 20\. Causes tar file to be written out in blocksize*TBLOCK (normally 512 byte) units\.618 .RE 619 .PP 620 cancel jobid0 [jobid1] \ .\.\. [jobidN]621 .RS 4 622 The client will request that the server cancel the printjobs identified by the given numeric print job ids\ .801 Sets the blocksize parameter for a tar operation\&. The default is 20\&. Causes tar file to be written out in blocksize*TBLOCK (normally 512 byte) units\&. 802 .RE 803 .PP 804 cancel jobid0 [jobid1] \&.\&.\&. [jobidN] 805 .RS 4 806 The client will request that the server cancel the printjobs identified by the given numeric print job ids\&. 623 807 .RE 624 808 .PP 625 809 case_sensitive 626 810 .RS 4 627 Toggles the setting of the flag in SMB packets that tells the server to treat filenames as case sensitive\ . Set to OFF by default (tells file server to treat filenames as case insensitive)\. Only currently affects Samba 3\.0\.5 and above file servers with the case sensitive parameter set to auto in the smb\.conf\.811 Toggles the setting of the flag in SMB packets that tells the server to treat filenames as case sensitive\&. Set to OFF by default (tells file server to treat filenames as case insensitive)\&. Only currently affects Samba 3\&.0\&.5 and above file servers with the case sensitive parameter set to auto in the smb\&.conf\&. 628 812 .RE 629 813 .PP 630 814 cd <directory name> 631 815 .RS 4 632 If "directory name" is specified, the current working directory on the server will be changed to the directory specified\ . This operation will fail if for any reason the specified directory is inaccessible\.633 .sp 634 If no directory name is specified, the current working directory on the server will be reported\ .816 If "directory name" is specified, the current working directory on the server will be changed to the directory specified\&. This operation will fail if for any reason the specified directory is inaccessible\&. 817 .sp 818 If no directory name is specified, the current working directory on the server will be reported\&. 635 819 .RE 636 820 .PP 637 821 chmod file mode in octal 638 822 .RS 4 639 This command depends on the server supporting the CIFS UNIX extensions and will fail if the server does not\ . The client requests that the server change the UNIX permissions to the given octal mode, in standard UNIX format\.823 This command depends on the server supporting the CIFS UNIX extensions and will fail if the server does not\&. The client requests that the server change the UNIX permissions to the given octal mode, in standard UNIX format\&. 640 824 .RE 641 825 .PP 642 826 chown file uid gid 643 827 .RS 4 644 This command depends on the server supporting the CIFS UNIX extensions and will fail if the server does not\ . The client requests that the server change the UNIX user and group ownership to the given decimal values\. Note there is currently no way to remotely look up the UNIX uid and gid values for a given name\. This may be addressed in future versions of the CIFS UNIX extensions\.828 This command depends on the server supporting the CIFS UNIX extensions and will fail if the server does not\&. The client requests that the server change the UNIX user and group ownership to the given decimal values\&. Note there is currently no way to remotely look up the UNIX uid and gid values for a given name\&. This may be addressed in future versions of the CIFS UNIX extensions\&. 645 829 .RE 646 830 .PP 647 831 close <fileid> 648 832 .RS 4 649 Closes a file explicitly opened by the open command\ . Used for internal Samba testing purposes\.833 Closes a file explicitly opened by the open command\&. Used for internal Samba testing purposes\&. 650 834 .RE 651 835 .PP … … 654 838 The client will request that the server attempt to delete all files matching 655 839 \fImask\fR 656 from the current working directory on the server\ .840 from the current working directory on the server\&. 657 841 .RE 658 842 .PP … … 661 845 A list of the files matching 662 846 \fImask\fR 663 in the current working directory on the server will be retrieved from the server and displayed\ .847 in the current working directory on the server will be retrieved from the server and displayed\&. 664 848 .RE 665 849 .PP 666 850 du <filename> 667 851 .RS 4 668 Does a directory listing and then prints out the current disk useage and free space on a share\ .852 Does a directory listing and then prints out the current disk useage and free space on a share\&. 669 853 .RE 670 854 .PP 671 855 echo <number> <data> 672 856 .RS 4 673 Does an SMBecho request to ping the server\ . Used for internal Samba testing purposes\.857 Does an SMBecho request to ping the server\&. Used for internal Samba testing purposes\&. 674 858 .RE 675 859 .PP 676 860 exit 677 861 .RS 4 678 Terminate the connection with the server and exit from the program\ .862 Terminate the connection with the server and exit from the program\&. 679 863 .RE 680 864 .PP … … 682 866 .RS 4 683 867 Copy the file called 684 \ fIremote file name\fR685 from the server to the machine running the client\ . If specified, name the local copy686 \ fIlocal file name\fR\. Note that all transfers in687 smbclient 688 are binary\ . See also the lowercase command\.868 \FCremote file name\F[] 869 from the server to the machine running the client\&. If specified, name the local copy 870 \FClocal file name\F[]\&. Note that all transfers in 871 \FCsmbclient\F[] 872 are binary\&. See also the lowercase command\&. 689 873 .RE 690 874 .PP 691 875 getfacl <filename> 692 876 .RS 4 693 Requires the server support the UNIX extensions\ . Requests and prints the POSIX ACL on a file\.877 Requires the server support the UNIX extensions\&. Requests and prints the POSIX ACL on a file\&. 694 878 .RE 695 879 .PP 696 880 hardlink <src> <dest> 697 881 .RS 4 698 Creates a hardlink on the server using Windows CIFS semantics\ .882 Creates a hardlink on the server using Windows CIFS semantics\&. 699 883 .RE 700 884 .PP 701 885 help [command] 702 886 .RS 4 703 See the ? command above\ .887 See the ? command above\&. 704 888 .RE 705 889 .PP 706 890 history 707 891 .RS 4 708 Displays the command history\ .892 Displays the command history\&. 709 893 .RE 710 894 .PP 711 895 iosize <bytes> 712 896 .RS 4 713 When sending or receiving files, smbclient uses an internal memory buffer by default of size 64512 bytes\ . This command allows this size to be set to any range between 16384 (0x4000) bytes and 16776960 (0xFFFF00) bytes\. Larger sizes may mean more efficient data transfer as smbclient will try and use the most efficient read and write calls for the connected server\.897 When sending or receiving files, smbclient uses an internal memory buffer by default of size 64512 bytes\&. This command allows this size to be set to any range between 16384 (0x4000) bytes and 16776960 (0xFFFF00) bytes\&. Larger sizes may mean more efficient data transfer as smbclient will try and use the most efficient read and write calls for the connected server\&. 714 898 .RE 715 899 .PP … … 718 902 If 719 903 \fIdirectory name\fR 720 is specified, the current working directory on the local machine will be changed to the directory specified\ . This operation will fail if for any reason the specified directory is inaccessible\.721 .sp 722 If no directory name is specified, the name of the current working directory on the local machine will be reported\ .904 is specified, the current working directory on the local machine will be changed to the directory specified\&. This operation will fail if for any reason the specified directory is inaccessible\&. 905 .sp 906 If no directory name is specified, the name of the current working directory on the local machine will be reported\&. 723 907 .RE 724 908 .PP 725 909 link target linkname 726 910 .RS 4 727 This command depends on the server supporting the CIFS UNIX extensions and will fail if the server does not\ . The client requests that the server create a hard link between the linkname and target files\. The linkname file must not exist\.911 This command depends on the server supporting the CIFS UNIX extensions and will fail if the server does not\&. The client requests that the server create a hard link between the linkname and target files\&. The linkname file must not exist\&. 728 912 .RE 729 913 .PP 730 914 listconnect 731 915 .RS 4 732 Show the current connections held for DFS purposes\ .916 Show the current connections held for DFS purposes\&. 733 917 .RE 734 918 .PP 735 919 lock <filenum> <r|w> <hex\-start> <hex\-len> 736 920 .RS 4 737 This command depends on the server supporting the CIFS UNIX extensions and will fail if the server does not\ . Tries to set a POSIX fcntl lock of the given type on the given range\. Used for internal Samba testing purposes\.921 This command depends on the server supporting the CIFS UNIX extensions and will fail if the server does not\&. Tries to set a POSIX fcntl lock of the given type on the given range\&. Used for internal Samba testing purposes\&. 738 922 .RE 739 923 .PP 740 924 logon <username> <password> 741 925 .RS 4 742 Establishes a new vuid for this session by logging on again\ . Replaces the current vuid\. Prints out the new vuid\. Used for internal Samba testing purposes\.926 Establishes a new vuid for this session by logging on again\&. Replaces the current vuid\&. Prints out the new vuid\&. Used for internal Samba testing purposes\&. 743 927 .RE 744 928 .PP 745 929 lowercase 746 930 .RS 4 747 Toggle lowercasing of filenames for the get and mget commands\ .748 .sp 749 When lowercasing is toggled ON, local filenames are converted to lowercase when using the get and mget commands\ . This is often useful when copying (say) MSDOS files from a server, because lowercase filenames are the norm on UNIX systems\.931 Toggle lowercasing of filenames for the get and mget commands\&. 932 .sp 933 When lowercasing is toggled ON, local filenames are converted to lowercase when using the get and mget commands\&. This is often useful when copying (say) MSDOS files from a server, because lowercase filenames are the norm on UNIX systems\&. 750 934 .RE 751 935 .PP 752 936 ls <mask> 753 937 .RS 4 754 See the dir command above\ .938 See the dir command above\&. 755 939 .RE 756 940 .PP 757 941 mask <mask> 758 942 .RS 4 759 This command allows the user to set up a mask which will be used during recursive operation of the mget and mput commands\ .760 .sp 761 The masks specified to the mget and mput commands act as filters for directories rather than files when recursion is toggled ON\ .762 .sp 763 The mask specified with the mask command is necessary to filter files within those directories\ . For example, if the mask specified in an mget command is "source*" and the mask specified with the mask command is "*\.c" and recursion is toggled ON, the mget command will retrieve all files matching "*\.c" in all directories below and including all directories matching "source*" in the current working directory\.764 .sp 765 Note that the value for mask defaults to blank (equivalent to "*") and remains so until the mask command is used to change it\ . It retains the most recently specified value indefinitely\. To avoid unexpected results it would be wise to change the value of mask back to "*" after using the mget or mput commands\.943 This command allows the user to set up a mask which will be used during recursive operation of the mget and mput commands\&. 944 .sp 945 The masks specified to the mget and mput commands act as filters for directories rather than files when recursion is toggled ON\&. 946 .sp 947 The mask specified with the mask command is necessary to filter files within those directories\&. For example, if the mask specified in an mget command is "source*" and the mask specified with the mask command is "*\&.c" and recursion is toggled ON, the mget command will retrieve all files matching "*\&.c" in all directories below and including all directories matching "source*" in the current working directory\&. 948 .sp 949 Note that the value for mask defaults to blank (equivalent to "*") and remains so until the mask command is used to change it\&. It retains the most recently specified value indefinitely\&. To avoid unexpected results it would be wise to change the value of mask back to "*" after using the mget or mput commands\&. 766 950 .RE 767 951 .PP 768 952 md <directory name> 769 953 .RS 4 770 See the mkdir command\ .954 See the mkdir command\&. 771 955 .RE 772 956 .PP … … 775 959 Copy all files matching 776 960 \fImask\fR 777 from the server to the machine running the client\ .961 from the server to the machine running the client\&. 778 962 .sp 779 963 Note that 780 964 \fImask\fR 781 is interpreted differently during recursive operation and non\-recursive operation \- refer to the recurse and mask commands for more information\ . Note that all transfers in782 smbclient 783 are binary\ . See also the lowercase command\.965 is interpreted differently during recursive operation and non\-recursive operation \- refer to the recurse and mask commands for more information\&. Note that all transfers in 966 \FCsmbclient\F[] 967 are binary\&. See also the lowercase command\&. 784 968 .RE 785 969 .PP 786 970 mkdir <directory name> 787 971 .RS 4 788 Create a new directory on the server (user access privileges permitting) with the specified name\ .972 Create a new directory on the server (user access privileges permitting) with the specified name\&. 789 973 .RE 790 974 .PP 791 975 more <file name> 792 976 .RS 4 793 Fetch a remote file and view it with the contents of your PAGER environment variable\ .977 Fetch a remote file and view it with the contents of your PAGER environment variable\&. 794 978 .RE 795 979 .PP … … 798 982 Copy all files matching 799 983 \fImask\fR 800 in the current working directory on the local machine to the current working directory on the server\ .984 in the current working directory on the local machine to the current working directory on the server\&. 801 985 .sp 802 986 Note that 803 987 \fImask\fR 804 is interpreted differently during recursive operation and non\-recursive operation \- refer to the recurse and mask commands for more information\ . Note that all transfers in805 smbclient 806 are binary\ .988 is interpreted differently during recursive operation and non\-recursive operation \- refer to the recurse and mask commands for more information\&. Note that all transfers in 989 \FCsmbclient\F[] 990 are binary\&. 807 991 .RE 808 992 .PP 809 993 posix 810 994 .RS 4 811 Query the remote server to see if it supports the CIFS UNIX extensions and prints out the list of capabilities supported\ . If so, turn on POSIX pathname processing and large file read/writes (if available),\.995 Query the remote server to see if it supports the CIFS UNIX extensions and prints out the list of capabilities supported\&. If so, turn on POSIX pathname processing and large file read/writes (if available),\&. 812 996 .RE 813 997 .PP 814 998 posix_encrypt <domain> <username> <password> 815 999 .RS 4 816 This command depends on the server supporting the CIFS UNIX extensions and will fail if the server does not\ . Attempt to negotiate SMB encryption on this connection\. If smbclient connected with kerberos credentials (\-k) the arguments to this command are ignored and the kerberos credentials are used to negotiate GSSAPI signing and sealing instead\. See also the \-e option to smbclient to force encryption on initial connection\. This command is new with Samba 3\.2\.1000 This command depends on the server supporting the CIFS UNIX extensions and will fail if the server does not\&. Attempt to negotiate SMB encryption on this connection\&. If smbclient connected with kerberos credentials (\-k) the arguments to this command are ignored and the kerberos credentials are used to negotiate GSSAPI signing and sealing instead\&. See also the \-e option to smbclient to force encryption on initial connection\&. This command is new with Samba 3\&.2\&. 817 1001 .RE 818 1002 .PP 819 1003 posix_open <filename> <octal mode> 820 1004 .RS 4 821 This command depends on the server supporting the CIFS UNIX extensions and will fail if the server does not\ . Opens a remote file using the CIFS UNIX extensions and prints a fileid\. Used for internal Samba testing purposes\.1005 This command depends on the server supporting the CIFS UNIX extensions and will fail if the server does not\&. Opens a remote file using the CIFS UNIX extensions and prints a fileid\&. Used for internal Samba testing purposes\&. 822 1006 .RE 823 1007 .PP 824 1008 posix_mkdir <directoryname> <octal mode> 825 1009 .RS 4 826 This command depends on the server supporting the CIFS UNIX extensions and will fail if the server does not\ . Creates a remote directory using the CIFS UNIX extensions with the given mode\.1010 This command depends on the server supporting the CIFS UNIX extensions and will fail if the server does not\&. Creates a remote directory using the CIFS UNIX extensions with the given mode\&. 827 1011 .RE 828 1012 .PP 829 1013 posix_rmdir <directoryname> 830 1014 .RS 4 831 This command depends on the server supporting the CIFS UNIX extensions and will fail if the server does not\ . Deletes a remote directory using the CIFS UNIX extensions\.1015 This command depends on the server supporting the CIFS UNIX extensions and will fail if the server does not\&. Deletes a remote directory using the CIFS UNIX extensions\&. 832 1016 .RE 833 1017 .PP 834 1018 posix_unlink <filename> 835 1019 .RS 4 836 This command depends on the server supporting the CIFS UNIX extensions and will fail if the server does not\ . Deletes a remote file using the CIFS UNIX extensions\.1020 This command depends on the server supporting the CIFS UNIX extensions and will fail if the server does not\&. Deletes a remote file using the CIFS UNIX extensions\&. 837 1021 .RE 838 1022 .PP 839 1023 print <file name> 840 1024 .RS 4 841 Print the specified file from the local machine through a printable service on the server\ .1025 Print the specified file from the local machine through a printable service on the server\&. 842 1026 .RE 843 1027 .PP 844 1028 prompt 845 1029 .RS 4 846 Toggle prompting for filenames during operation of the mget and mput commands\ .847 .sp 848 When toggled ON, the user will be prompted to confirm the transfer of each file during these commands\ . When toggled OFF, all specified files will be transferred without prompting\.1030 Toggle prompting for filenames during operation of the mget and mput commands\&. 1031 .sp 1032 When toggled ON, the user will be prompted to confirm the transfer of each file during these commands\&. When toggled OFF, all specified files will be transferred without prompting\&. 849 1033 .RE 850 1034 .PP … … 852 1036 .RS 4 853 1037 Copy the file called 854 \ fIlocal file name\fR855 from the machine running the client to the server\ . If specified, name the remote copy856 \ fIremote file name\fR\. Note that all transfers in857 smbclient 858 are binary\ . See also the lowercase command\.1038 \FClocal file name\F[] 1039 from the machine running the client to the server\&. If specified, name the remote copy 1040 \FCremote file name\F[]\&. Note that all transfers in 1041 \FCsmbclient\F[] 1042 are binary\&. See also the lowercase command\&. 859 1043 .RE 860 1044 .PP 861 1045 queue 862 1046 .RS 4 863 Displays the print queue, showing the job id, name, size and current status\ .1047 Displays the print queue, showing the job id, name, size and current status\&. 864 1048 .RE 865 1049 .PP 866 1050 quit 867 1051 .RS 4 868 See the exit command\ .1052 See the exit command\&. 869 1053 .RE 870 1054 .PP 871 1055 rd <directory name> 872 1056 .RS 4 873 See the rmdir command\ .1057 See the rmdir command\&. 874 1058 .RE 875 1059 .PP 876 1060 recurse 877 1061 .RS 4 878 Toggle directory recursion for the commands mget and mput\ .879 .sp 880 When toggled ON, these commands will process all directories in the source directory (i\ .e\., the directory they are copying from ) and will recurse into any that match the mask specified to the command\. Only files that match the mask specified using the mask command will be retrieved\. See also the mask command\.881 .sp 882 When recursion is toggled OFF, only files from the current working directory on the source machine that match the mask specified to the mget or mput commands will be copied, and any mask specified using the mask command will be ignored\ .1062 Toggle directory recursion for the commands mget and mput\&. 1063 .sp 1064 When toggled ON, these commands will process all directories in the source directory (i\&.e\&., the directory they are copying from ) and will recurse into any that match the mask specified to the command\&. Only files that match the mask specified using the mask command will be retrieved\&. See also the mask command\&. 1065 .sp 1066 When recursion is toggled OFF, only files from the current working directory on the source machine that match the mask specified to the mget or mput commands will be copied, and any mask specified using the mask command will be ignored\&. 883 1067 .RE 884 1068 .PP … … 888 1072 \fIold filename\fR 889 1073 to 890 \fInew filename\fR\ .1074 \fInew filename\fR\&. 891 1075 .RE 892 1076 .PP … … 895 1079 Remove all files matching 896 1080 \fImask\fR 897 from the current working directory on the server\ .1081 from the current working directory on the server\&. 898 1082 .RE 899 1083 .PP 900 1084 rmdir <directory name> 901 1085 .RS 4 902 Remove the specified directory (user access privileges permitting) from the server\ .1086 Remove the specified directory (user access privileges permitting) from the server\&. 903 1087 .RE 904 1088 .PP 905 1089 setmode <filename> <perm=[+|\e\-]rsha> 906 1090 .RS 4 907 A version of the DOS attrib command to set file permissions\ . For example:908 .sp 909 setmode myfile +r 910 .sp 911 would make myfile read only\ .1091 A version of the DOS attrib command to set file permissions\&. For example: 1092 .sp 1093 \FCsetmode myfile +r \F[] 1094 .sp 1095 would make myfile read only\&. 912 1096 .RE 913 1097 .PP 914 1098 showconnect 915 1099 .RS 4 916 Show the currently active connection held for DFS purposes\ .1100 Show the currently active connection held for DFS purposes\&. 917 1101 .RE 918 1102 .PP 919 1103 stat file 920 1104 .RS 4 921 This command depends on the server supporting the CIFS UNIX extensions and will fail if the server does not\ . The client requests the UNIX basic info level and prints out the same info that the Linux stat command would about the file\. This includes the size, blocks used on disk, file type, permissions, inode number, number of links and finally the three timestamps (access, modify and change)\. If the file is a special file (symlink, character or block device, fifo or socket) then extra information may also be printed\.1105 This command depends on the server supporting the CIFS UNIX extensions and will fail if the server does not\&. The client requests the UNIX basic info level and prints out the same info that the Linux stat command would about the file\&. This includes the size, blocks used on disk, file type, permissions, inode number, number of links and finally the three timestamps (access, modify and change)\&. If the file is a special file (symlink, character or block device, fifo or socket) then extra information may also be printed\&. 922 1106 .RE 923 1107 .PP 924 1108 symlink target linkname 925 1109 .RS 4 926 This command depends on the server supporting the CIFS UNIX extensions and will fail if the server does not\ . The client requests that the server create a symbolic hard link between the target and linkname files\. The linkname file must not exist\. Note that the server will not create a link to any path that lies outside the currently connected share\. This is enforced by the Samba server\.1110 This command depends on the server supporting the CIFS UNIX extensions and will fail if the server does not\&. The client requests that the server create a symbolic hard link between the target and linkname files\&. The linkname file must not exist\&. Note that the server will not create a link to any path that lies outside the currently connected share\&. This is enforced by the Samba server\&. 927 1111 .RE 928 1112 .PP … … 931 1115 Performs a tar operation \- see the 932 1116 \fI\-T \fR 933 command line option above\ . Behavior may be affected by the tarmode command (see below)\. Using g (incremental) and N (newer) will affect tarmode settings\. Note that using the "\-" option with tar x may not work \- use the command line option instead\.1117 command line option above\&. Behavior may be affected by the tarmode command (see below)\&. Using g (incremental) and N (newer) will affect tarmode settings\&. Note that using the "\-" option with tar x may not work \- use the command line option instead\&. 934 1118 .RE 935 1119 .PP 936 1120 blocksize <blocksize> 937 1121 .RS 4 938 Blocksize\ . Must be followed by a valid (greater than zero) blocksize\. Causes tar file to be written out in939 \fIblocksize\fR*TBLOCK (usually 512 byte) blocks\ .1122 Blocksize\&. Must be followed by a valid (greater than zero) blocksize\&. Causes tar file to be written out in 1123 \fIblocksize\fR*TBLOCK (usually 512 byte) blocks\&. 940 1124 .RE 941 1125 .PP 942 1126 tarmode <full|inc|reset|noreset> 943 1127 .RS 4 944 Changes tar\'s behavior with regard to archive bits\ . In full mode, tar will back up everything regardless of the archive bit setting (this is the default mode)\. In incremental mode, tar will only back up files with the archive bit set\. In reset mode, tar will reset the archive bit on all files it backs up (implies read/write share)\.1128 Changes tar\'s behavior with regard to archive bits\&. In full mode, tar will back up everything regardless of the archive bit setting (this is the default mode)\&. In incremental mode, tar will only back up files with the archive bit set\&. In reset mode, tar will reset the archive bit on all files it backs up (implies read/write share)\&. 945 1129 .RE 946 1130 .PP 947 1131 unlock <filenum> <hex\-start> <hex\-len> 948 1132 .RS 4 949 This command depends on the server supporting the CIFS UNIX extensions and will fail if the server does not\ . Tries to unlock a POSIX fcntl lock on the given range\. Used for internal Samba testing purposes\.1133 This command depends on the server supporting the CIFS UNIX extensions and will fail if the server does not\&. Tries to unlock a POSIX fcntl lock on the given range\&. Used for internal Samba testing purposes\&. 950 1134 .RE 951 1135 .PP 952 1136 volume 953 1137 .RS 4 954 Prints the current volume name of the share\ .1138 Prints the current volume name of the share\&. 955 1139 .RE 956 1140 .PP 957 1141 vuid <number> 958 1142 .RS 4 959 Changes the currently used vuid in the protocol to the given arbitrary number\ . Without an argument prints out the current vuid being used\. Used for internal Samba testing purposes\.1143 Changes the currently used vuid in the protocol to the given arbitrary number\&. Without an argument prints out the current vuid being used\&. Used for internal Samba testing purposes\&. 960 1144 .RE 961 1145 .SH "NOTES" 962 1146 .PP 963 Some servers are fussy about the case of supplied usernames, passwords, share names (AKA service names) and machine names\ . If you fail to connect try giving all parameters in uppercase\.964 .PP 965 It is often necessary to use the \-n option when connecting to some types of servers\ . For example OS/2 LanManager insists on a valid NetBIOS name being used, so you need to supply a valid name that would be known to the server\.966 .PP 967 smbclient supports long file names where the server supports the LANMAN2 protocol or above\ .1147 Some servers are fussy about the case of supplied usernames, passwords, share names (AKA service names) and machine names\&. If you fail to connect try giving all parameters in uppercase\&. 1148 .PP 1149 It is often necessary to use the \-n option when connecting to some types of servers\&. For example OS/2 LanManager insists on a valid NetBIOS name being used, so you need to supply a valid name that would be known to the server\&. 1150 .PP 1151 smbclient supports long file names where the server supports the LANMAN2 protocol or above\&. 968 1152 .SH "ENVIRONMENT VARIABLES" 969 1153 .PP 970 1154 The variable 971 1155 \fBUSER\fR 972 may contain the username of the person using the client\ . This information is used only if the protocol level is high enough to support session\-level passwords\.1156 may contain the username of the person using the client\&. This information is used only if the protocol level is high enough to support session\-level passwords\&. 973 1157 .PP 974 1158 The variable 975 1159 \fBPASSWD\fR 976 may contain the password of the person using the client\ . This information is used only if the protocol level is high enough to support session\-level passwords\.1160 may contain the password of the person using the client\&. This information is used only if the protocol level is high enough to support session\-level passwords\&. 977 1161 .PP 978 1162 The variable 979 1163 \fBLIBSMB_PROG\fR 980 may contain the path, executed with system(), which the client should connect to instead of connecting to a server\ . This functionality is primarily intended as a development aid, and works best when using a LMHOSTS file1164 may contain the path, executed with system(), which the client should connect to instead of connecting to a server\&. This functionality is primarily intended as a development aid, and works best when using a LMHOSTS file 981 1165 .SH "INSTALLATION" 982 1166 .PP 983 The location of the client program is a matter for individual system administrators\ . The following are thus suggestions only\.1167 The location of the client program is a matter for individual system administrators\&. The following are thus suggestions only\&. 984 1168 .PP 985 1169 It is recommended that the smbclient software be installed in the 986 \ fI/usr/local/samba/bin/\fR1170 \FC/usr/local/samba/bin/\F[] 987 1171 or 988 \ fI /usr/samba/bin/\fR989 directory, this directory readable by all, writeable only by root\ . The client program itself should be executable by all\. The client should1172 \FC /usr/samba/bin/\F[] 1173 directory, this directory readable by all, writeable only by root\&. The client program itself should be executable by all\&. The client should 990 1174 \fINOT\fR 991 1175 be setuid or setgid! 992 1176 .PP 993 The client log files should be put in a directory readable and writeable only by the user\ .994 .PP 995 To test the client, you will need to know the name of a running SMB/CIFS server\ . It is possible to run1177 The client log files should be put in a directory readable and writeable only by the user\&. 1178 .PP 1179 To test the client, you will need to know the name of a running SMB/CIFS server\&. It is possible to run 996 1180 \fBsmbd\fR(8) 997 as an ordinary user \- running that server as a daemon on a user\-accessible port (typically any port number over 1024) would provide a suitable test server\ .1181 as an ordinary user \- running that server as a daemon on a user\-accessible port (typically any port number over 1024) would provide a suitable test server\&. 998 1182 .SH "DIAGNOSTICS" 999 1183 .PP 1000 Most diagnostics issued by the client are logged in a specified log file\ . The log file name is specified at compile time, but may be overridden on the command line\.1001 .PP 1002 The number and nature of diagnostics available depends on the debug level used by the client\ . If you have problems, set the debug level to 3 and peruse the log files\.1184 Most diagnostics issued by the client are logged in a specified log file\&. The log file name is specified at compile time, but may be overridden on the command line\&. 1185 .PP 1186 The number and nature of diagnostics available depends on the debug level used by the client\&. If you have problems, set the debug level to 3 and peruse the log files\&. 1003 1187 .SH "VERSION" 1004 1188 .PP 1005 This man page is correct for version 3\ .2 of the Samba suite\.1189 This man page is correct for version 3\&.2 of the Samba suite\&. 1006 1190 .SH "AUTHOR" 1007 1191 .PP 1008 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\.1009 .PP 1010 The original Samba man pages were written by Karl Auer\ . The man page sources were converted to YODL format (another excellent piece of Open Source software, available at1011 ftp://ftp\ .icce\.rug\.nl/pub/unix/) and updated for the Samba 2\.0 release by Jeremy Allison\. The conversion to DocBook for Samba 2\.2 was done by Gerald Carter\. The conversion to DocBook XML 4\.2 for Samba 3\.0 was done by Alexander Bokovoy\.1192 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\&. 1193 .PP 1194 The original Samba man pages were written by Karl Auer\&. The man page sources were converted to YODL format (another excellent piece of Open Source software, available at 1195 ftp://ftp\&.icce\&.rug\&.nl/pub/unix/) and updated for the Samba 2\&.0 release by Jeremy Allison\&. The conversion to DocBook for Samba 2\&.2 was done by Gerald Carter\&. The conversion to DocBook XML 4\&.2 for Samba 3\&.0 was done by Alexander Bokovoy\&.
Note:
See TracChangeset
for help on using the changeset viewer.