- Timestamp:
- May 27, 2009, 9:08:03 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/docs/htmldocs/manpages/smbclient.1.html
r226 r231 1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>smbclient</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.7 3.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en"><a name="smbclient.1"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>smbclient — ftp-like client to access SMB/CIFS resources2 on servers</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="literal">smbclient</code> [-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>]</p></div><div class="cmdsynopsis"><p><code class="literal">smbclient</code> {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]</p></div></div><div class="refsect1" lang="en"><a name="id2479458"></a><h2>DESCRIPTION</h2><p>This tool is part of the <a class="citerefentry" href="samba.7.html"><span class="citerefentry"><span class="refentrytitle">samba</span>(7)</span></a> suite.</p><p><code class="literal">smbclient</code> is a client that can1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>smbclient</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.74.0"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en"><a name="smbclient.1"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>smbclient — ftp-like client to access SMB/CIFS resources 2 on servers</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="literal">smbclient</code> [-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>]</p></div><div class="cmdsynopsis"><p><code class="literal">smbclient</code> {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]</p></div></div><div class="refsect1" lang="en"><a name="id2483769"></a><h2>DESCRIPTION</h2><p>This tool is part of the <a class="citerefentry" href="samba.7.html"><span class="citerefentry"><span class="refentrytitle">samba</span>(7)</span></a> suite.</p><p><code class="literal">smbclient</code> is a client that can 3 3 'talk' to an SMB/CIFS server. It offers an interface 4 4 similar to that of the ftp program (see <a class="citerefentry" href="ftp.1.html"><span class="citerefentry"><span class="refentrytitle">ftp</span>(1)</span></a>). … … 6 6 to the local machine, putting files from the local machine to 7 7 the server, retrieving directory information from the server 8 and so on. </p></div><div class="refsect1" lang="en"><a name="id24 79498"></a><h2>OPTIONS</h2><div class="variablelist"><dl><dt><span class="term">servicename</span></dt><dd><p>servicename is the name of the service8 and so on. </p></div><div class="refsect1" lang="en"><a name="id2483808"></a><h2>OPTIONS</h2><div class="variablelist"><dl><dt><span class="term">servicename</span></dt><dd><p>servicename is the name of the service 9 9 you want to use on the server. A service name takes the form 10 10 <code class="filename">//server/service</code> where <em class="parameter"><code>server … … 86 86 when making connections to the server. The standard (well-known) 87 87 TCP port number for an SMB/CIFS server is 139, which is the 88 default. </p></dd><dt><span class="term">-P</span></dt><dd><p> 88 default. </p></dd><dt><span class="term">-g</span></dt><dd><p>This parameter provides combined with 89 <em class="parameter"><code>-L</code></em> easy parseable output that allows processing 90 with utilities such as grep and cut. 91 </p></dd><dt><span class="term">-P</span></dt><dd><p> 89 92 Make queries to the external server using the machine account of the local server. 90 93 </p></dd><dt><span class="term">-h|--help</span></dt><dd><p>Print a summary of command line options. 91 </p></dd><dt><span class="term">-I IP-address</span></dt><dd><p><em class="replaceable"><code>IP address</code></em> is the address of the server to connect to. 94 </p></dd><dt><span class="term">-I IP-address</span></dt><dd><p><em class="replaceable"><code>IP address</code></em> is the address of the server to connect to. 92 95 It should be specified in standard "a.b.c.d" notation. </p><p>Normally the client would attempt to locate a named 93 96 SMB/CIFS server by looking it up via the NetBIOS name resolution … … 138 141 use only by developers and generate HUGE amounts of log 139 142 data, most of which is extremely cryptic.</p><p>Note that specifying this parameter here will 140 override the <a class="link" href="smb.conf.5.html#LOGLEVEL" >log level</a> parameter143 override the <a class="link" href="smb.conf.5.html#LOGLEVEL" target="_top">log level</a> parameter 141 144 in the <code class="filename">smb.conf</code> file.</p></dd><dt><span class="term">-V</span></dt><dd><p>Prints the program version number. 142 145 </p></dd><dt><span class="term">-s <configuration file></span></dt><dd><p>The file specified contains the … … 183 186 it in directly. </p></dd><dt><span class="term">-n <primary NetBIOS name></span></dt><dd><p>This option allows you to override 184 187 the NetBIOS name that Samba uses for itself. This is identical 185 to setting the <a class="link" href="smb.conf.5.html#NETBIOSNAME" >netbios name</a> parameter in the <code class="filename">smb.conf</code> file.188 to setting the <a class="link" href="smb.conf.5.html#NETBIOSNAME" target="_top">netbios name</a> parameter in the <code class="filename">smb.conf</code> file. 186 189 However, a command 187 190 line setting will take precedence over settings in … … 268 271 commands to be executed instead of prompting from stdin. <em class="parameter"><code> 269 272 -N</code></em> is implied by <em class="parameter"><code>-c</code></em>.</p><p>This is particularly useful in scripts and for printing stdin 270 to the server, e.g. <code class="literal">-c 'print -'</code>. </p></dd></dl></div></div><div class="refsect1" lang="en"><a name="id25 26297"></a><h2>OPERATIONS</h2><p>Once the client is running, the user is presented with273 to the server, e.g. <code class="literal">-c 'print -'</code>. </p></dd></dl></div></div><div class="refsect1" lang="en"><a name="id2533319"></a><h2>OPERATIONS</h2><p>Once the client is running, the user is presented with 271 274 a prompt : </p><p><code class="prompt">smb:\> </code></p><p>The backslash ("\\") indicates the current working directory 272 275 on the server, and will change if the current working directory … … 466 469 the given arbitrary number. Without an argument prints out the current 467 470 vuid being used. Used for internal Samba testing purposes. 468 </p></dd></dl></div></div><div class="refsect1" lang="en"><a name="id25 27420"></a><h2>NOTES</h2><p>Some servers are fussy about the case of supplied usernames,471 </p></dd></dl></div></div><div class="refsect1" lang="en"><a name="id2534409"></a><h2>NOTES</h2><p>Some servers are fussy about the case of supplied usernames, 469 472 passwords, share names (AKA service names) and machine names. 470 473 If you fail to connect try giving all parameters in uppercase. … … 473 476 on a valid NetBIOS name being used, so you need to supply a valid 474 477 name that would be known to the server.</p><p>smbclient supports long file names where the server 475 supports the LANMAN2 protocol or above. </p></div><div class="refsect1" lang="en"><a name="id25 27446"></a><h2>ENVIRONMENT VARIABLES</h2><p>The variable <code class="envar">USER</code> may contain the478 supports the LANMAN2 protocol or above. </p></div><div class="refsect1" lang="en"><a name="id2534434"></a><h2>ENVIRONMENT VARIABLES</h2><p>The variable <code class="envar">USER</code> may contain the 476 479 username of the person using the client. This information is 477 480 used only if the protocol level is high enough to support … … 483 486 to instead of connecting to a server. This functionality is primarily 484 487 intended as a development aid, and works best when using a LMHOSTS 485 file</p></div><div class="refsect1" lang="en"><a name="id25 27484"></a><h2>INSTALLATION</h2><p>The location of the client program is a matter for488 file</p></div><div class="refsect1" lang="en"><a name="id2534470"></a><h2>INSTALLATION</h2><p>The location of the client program is a matter for 486 489 individual system administrators. The following are thus 487 490 suggestions only. </p><p>It is recommended that the smbclient software be installed … … 494 497 running SMB/CIFS server. It is possible to run <a class="citerefentry" href="smbd.8.html"><span class="citerefentry"><span class="refentrytitle">smbd</span>(8)</span></a> as an ordinary user - running that server as a daemon 495 498 on a user-accessible port (typically any port number over 1024) 496 would provide a suitable test server. </p></div><div class="refsect1" lang="en"><a name="id25 27540"></a><h2>DIAGNOSTICS</h2><p>Most diagnostics issued by the client are logged in a499 would provide a suitable test server. </p></div><div class="refsect1" lang="en"><a name="id2534523"></a><h2>DIAGNOSTICS</h2><p>Most diagnostics issued by the client are logged in a 497 500 specified log file. The log file name is specified at compile time, 498 501 but may be overridden on the command line. </p><p>The number and nature of diagnostics available depends 499 502 on the debug level used by the client. If you have problems, 500 set the debug level to 3 and peruse the log files. </p></div><div class="refsect1" lang="en"><a name="id25 27559"></a><h2>VERSION</h2><p>This man page is correct for version 3.2 of the Samba suite.</p></div><div class="refsect1" lang="en"><a name="id2527570"></a><h2>AUTHOR</h2><p>The original Samba software and related utilities503 set the debug level to 3 and peruse the log files. </p></div><div class="refsect1" lang="en"><a name="id2534541"></a><h2>VERSION</h2><p>This man page is correct for version 3.2 of the Samba suite.</p></div><div class="refsect1" lang="en"><a name="id2534552"></a><h2>AUTHOR</h2><p>The original Samba software and related utilities 501 504 were created by Andrew Tridgell. Samba is now developed 502 505 by the Samba Team as an Open Source project similar
Note:
See TracChangeset
for help on using the changeset viewer.