Tidied up VERSION section. Added testparm.1.yo
[samba.git] / docs / yodldocs / smbclient.1.yo
1 mailto(samba-bugs@samba.anu.edu.au) 
2
3 manpage(smbclient)(1)(23 Oct 1998)(Samba)(SAMBA)
4
5 label(NAME)
6 manpagename(smbclient)(ftp-like client to access SMB/CIFS resources on servers)
7
8 label(SYNOPSIS)
9 manpagesynopsis()
10
11 bf(smbclient) service [password] [-s smb.conf] [-B IP addr] [-O socket_options][-R name resolve order] [-M NetBIOS name] [-i scope] [-N] [-n NetBIOS name] [-d debuglevel] [-P] [-p port] [-l log basename] [-h] [-I dest IP] [-E] [-U username] [-L NetBIOS name] [-t terminal code] [-m max protocol] [-W workgroup] [-T<c|x>IXFqgbNan] [-D directory] [-c command string]
12
13 label(DESCRIPTION)
14 manpagedescription()
15
16 This program is part of the bf(Samba) suite.
17
18 bf(smbclient) is a client that can 'talk' to an SMB/CIFS server. It
19 offers an interface similar to that of the ftp program (see bf(ftp
20 (1))).  Operations include things like getting files from the server
21 to the local machine, putting files from the local machine to the
22 server, retrieving directory information from the server and so on.
23
24 label(OPTIONS)
25 manpageoptions()
26
27 startdit()
28
29 dit(bf(servicename)) servicename is the name of the service you want
30 to use on the server. A service name takes the form
31 tt(//server/service) where em(server) is the NetBIOS name of the SMB/CIFS
32 server offering the desired service and em(service) is the name
33 of the service offered. Thus to connect to the service em(printer) on
34 the SMB/CIFS server em(smbserver), you would use the servicename
35
36 tt(//smbserver/printer)
37
38 Note that the server name required is NOT necessarily the IP (DNS)
39 host name of the server ! The name required is a NetBIOS server name,
40 which may or may not be the same as the IP hostname of the machine
41 running the server.
42
43 The server name is looked up according to the url(bf(name resolve
44 order))(smbclient.1.html#name_resolve_order) parameter in the smb.conf
45 file, allowing an administrator to change the order and methods by
46 which server names are looked up.
47
48 dit(bf(password)) password is the password required to access the
49 specified service on the specified server. If this parameter is
50 supplied, the bf(-N) option (suppress password prompt) is assumed.
51
52 There is no default password. If no password is supplied on the
53 command line (either by using this parameter or adding a password to
54 the bf(-U) option (see below)) and the bf(-N) option is not specified,
55 the client will prompt for a password, even if the desired service
56 does not require one. (If no password is required, simply press ENTER
57 to provide a null password.)
58
59 Note: Some servers (including OS/2 and Windows for Workgroups) insist
60 on an uppercase password. Lowercase or mixed case passwords may be
61 rejected by these servers.
62
63 Be cautious about including passwords in scripts.
64
65 dit(bf(-s smb.conf)) This parameter specifies the pathname to the
66 Samba configuration file, smb.conf. This file controls all aspects of
67 the Samba setup on the machine and smbclient also needs to read this
68 file.
69
70 dit(bf(-B IP addr)) The IP address to use when sending a broadcast packet.
71
72 dit(bf(-O socket_options)) TCP socket options to set on the client
73 socket. See the url(socket options)(smb.conf.5.html#socket options)
74 parameter in the url(bf(smb.conf (5)))(smb.conf.5.html) manpage for
75 the list of valid options.
76
77 label(name_resolve_order)
78 dit(bf(-R name resolve order)) This option allows the user of
79 smbclient to determine what name resolution services to use when
80 looking up the NetBIOS name of the host being connected to.
81
82 The options are :"lmhosts", "host", "wins" and "bcast". They cause
83 names to be resolved as follows :
84
85 startit()
86
87 it() bf(lmhosts) : Lookup an IP address in the Samba lmhosts file.
88
89 it() bf(host) : Do a standard host name to IP address resolution,
90 using the system /etc/hosts, NIS, or DNS lookups. This method of name
91 resolution is operating system depended for instance on IRIX or
92 Solaris this may be controlled by the em(/etc/nsswitch.conf) file).  
93
94 it() bf(wins) : Query a name with the IP address listed in the bf(wins
95 server) parameter in the smb.conf file. If no WINS server has been
96 specified this method will be ignored.
97
98 it() bf(bcast) : Do a broadcast on each of the known local interfaces
99 listed in the bf(interfaces) parameter in the smb.conf file. This is
100 the least reliable of the name resolution methods as it depends on the
101 target host being on a locally connected subnet. To specify a
102 particular broadcast address the bf(-B) option may be used.
103
104 endit()
105
106 The default order is lmhosts, host, wins, bcast and without this
107 parameter the name resolution methods will be attempted in this order.
108
109 dit(bf(-M NetBIOS name)) This options allows you to send messages,
110 using the "WinPopup" protocol, to another computer. Once a connection
111 is established you then type your message, pressing ^D (control-D) to
112 end.
113
114 If the receiving computer is running WinPopup the user will receive
115 the message and probably a beep. If they are not running WinPopup the
116 message will be lost, and no error message will occur.
117
118 The message is also automatically truncated if the message is over
119 1600 bytes, as this is the limit of the protocol.
120
121 One useful trick is to cat the message through bf(smbclient).
122 For example:
123
124 tt(cat mymessage.txt | smbclient -M FRED)
125
126 will send the message in the file em(mymessage.txt) to the machine FRED.
127
128 You may also find the bf(-U) and bf(-I) options useful, as they allow
129 you to control the FROM and TO parts of the message.
130
131 See the message command section of bf(smb.conf (5)) for a description
132 of how to handle incoming WinPopup messages in Samba.
133
134 Note: Copy WinPopup into the startup group on your WfWg PCs if you
135 want them to always be able to receive messages.
136
137 dit(bf(-i scope)) This specifies a NetBIOS scope that smbclient will use
138 to communicate with when generating NetBIOS names. For details on the
139 use of NetBIOS scopes, see rfc1001.txt and rfc1002.txt. NetBIOS scopes
140 are em(very) rarely used, only set this parameter if you are the
141 system administrator in charge of all the NetBIOS systems you
142 communicate with.
143
144 dit(bf(-N)) If specified, this parameter suppresses the normal
145 password prompt from the client to the user. This is useful when
146 accessing a service that does not require a password.
147
148 Unless a password is specified on the command line or this parameter
149 is specified, the client will request a password.
150
151 dit(bf(-n NetBIOS name)) By default, the client will use the local
152 machine's hostname (in uppercase) as its NetBIOS name. This parameter
153 allows you to override the host name and use whatever NetBIOS name you
154 wish.
155
156 dit(bf(-d debuglevel)) debuglevel is an integer from 0 to 10, or the
157 letter 'A'.
158
159 The default value if this parameter is not specified is zero.
160
161 The higher this value, the more detail will be logged to the log files
162 about the activities of the client. At level 0, only critical errors
163 and serious warnings will be logged. Level 1 is a reasonable level for
164 day to day running - it generates a small amount of information about
165 operations carried out.
166
167 Levels above 1 will generate considerable amounts of log data, and
168 should only be used when investigating a problem. Levels above 3 are
169 designed for use only by developers and generate HUGE amounts of log
170 data, most of which is extremely cryptic. If debuglevel is set to the
171 letter 'A', then em(all) debug messages will be printed. This setting
172 is for developers only (and people who em(really) want to know how the
173 code works internally).
174
175 dit(bf(-P)) If this option is specified, the service requested will be
176 connected to as a printer service rather than as a normal filespace
177 service. Operations such as put and get will not be applicable for
178 such a connection.
179
180 By default, services will be connected to as NON-printer services.
181
182 dit(bf(-p port)) This number is the TCP port number that will be used
183 when making connections to the server. The standard (well-known) TCP
184 port number for an SMB/CIFS server is 139, which is the default.
185
186 dit(bf(-l logfilename)) If specified, logfilename specifies a base
187 filename into which operational data from the running client will be
188 logged.
189
190 The default base name is specified at compile time.
191
192 The base name is used to generate actual log file names. For example,
193 if the name specified was "log", the debug file would be
194 tt(log.client).
195
196 The log file generated is never removed by the client.
197
198 dit(bf(-h)) Print the usage message for the client.
199
200 dit(bf(-I IP address)) IP address is the address of the server to
201 connect to. It should be specified in standard "a.b.c.d" notation.
202
203 Normally the client would attempt to locate a named SMB/CIFS server by
204 looking it up via the NetBIOS name resolution mechanism described
205 above in the url(bf(name resolve order))(smbclient.1.html#name_resolve_order) parameter
206 above. Using this parameter will force the client to assume that the
207 server is on the machine with the specified IP address and the NetBIOS
208 name component of the resource being connected to will be ignored.
209
210 There is no default for this parameter. If not supplied, it will be
211 determined automatically by the client as described above.
212
213 dit(bf(-E)) This parameter causes the client to write messages to the
214 standard error stream (stderr) rather than to the standard output
215 stream.
216
217 By default, the client writes messages to standard output - typically
218 the user's tty.
219
220 dit(bf(-U username)) This specifies the user name that will be used by
221 the client to make a connection, assuming your server is not a downlevel
222 server that is running a protocol level that uses passwords on shares,
223 not on usernames.
224
225 Some servers are fussy about the case of this name, and some insist
226 that it must be a valid NetBIOS name.
227
228 If no username is supplied, it will default to an uppercase version of
229 the environment variable tt(USER) or tt(LOGNAME) in that order.  If no
230 username is supplied and neither environment variable exists the
231 username "GUEST" will be used.
232
233 If the tt(USER) environment variable containts a '%' character,
234 everything after that will be treated as a password. This allows you
235 to set the environment variable to be tt(USER=username%password) so
236 that a password is not passed on the command line (where it may be
237 seen by the ps command).
238
239 If the service you are connecting to requires a password, it can be
240 supplied using the bf(-U) option, by appending a percent symbol ("%")
241 then the password to username.  For example, to attach to a service as
242 user tt("fred") with password tt("secret"), you would specify. nl()
243
244 tt(-U fred%secret) nl()
245
246 on the command line. Note that there are no spaces around the percent
247 symbol.
248
249 If you specify the password as part of username then the bf(-N) option
250 (suppress password prompt) is assumed.
251
252 If you specify the password as a parameter em(AND) as part of username
253 then the password as part of username will take precedence. Putting
254 nothing before or nothing after the percent symbol will cause an empty
255 username or an empty password to be used, respectively.
256
257 The password may also be specified by setting up an environment
258 variable called tt(PASSWORD) that contains the users password. Note
259 that this may be very insecure on some systems but on others allows
260 users to script smbclient commands without having a password appear in
261 the command line of a process listing.
262
263 Note: Some servers (including OS/2 and Windows for Workgroups) insist
264 on an uppercase password. Lowercase or mixed case passwords may be
265 rejected by these servers.
266
267 Be cautious about including passwords in scripts or in the
268 tt(PASSWORD) environment variable. Also, on many systems the command
269 line of a running process may be seen via the tt(ps) command to be
270 safe always allow smbclient to prompt for a password and type it in
271 directly.
272
273 dit(bf(-L)) This option allows you to look at what services are
274 available on a server. You use it as tt("smbclient -L host") and a
275 list should appear.  The bf(-I) option may be useful if your NetBIOS
276 names don't match your tcp/ip dns host names or if you are trying to
277 reach a host on another network.
278
279 dit(bf(-t terminal code)) This option tells smbclient how to interpret
280 filenames coming from the remote server. Usually Asian language
281 multibyte UNIX implementations use different character sets than
282 SMB/CIFS servers (em(EUC) instead of em(SJIS) for example). Setting
283 this parameter will let smbclient convert between the UNIX filenames
284 and the SMB filenames correctly. This option has not been seriously
285 tested and may have some problems.
286
287 The terminal codes include tt(sjis), tt(euc), tt(jis7), tt(jis8),
288 tt(junet), tt(hex), tt(cap). This is not a complete list, check the
289 Samba source code for the complete list.
290
291 dit(bf(-m max protocol level)) Normally, smbclient will negotiate with
292 the server to use the most advanced version of the SMB/CIFS protocol
293 that the server supports. Occasionaly it may be desirable to tell
294 smbclient to negotiate a lower level of the protocol, hence this
295 parameter. Valid options for the em(max protocol level) are :
296
297 startit()
298
299 it() CORE
300
301 it() COREPLUS
302
303 it() LANMAN1
304
305 it() LANMAN2
306
307 it() NT1
308
309 endit()
310
311 dit(bf(-W WORKGROUP)) Override the default workgroup specified in
312 smb.conf for this connection. This may be needed to connect to some
313 servers.
314
315 label(minus_T) dit(bf(-T tar options)) smbclient may be used to create
316 bf(tar (1)) compatible backups of all the files on an SMB/CIFS
317 share. The secondary tar flags that can be given to this option are :
318
319         startdit()
320
321         dit(bf(c)) Create a tar file on UNIX. Must be followed by the
322         name of a tar file, tape device or tt("-") for standard output. If
323         using standard output you must turn the log level to its lowest value
324     tt(-d0) to avoid corrupting your tar file. This flag is
325         mutually exclusive with the bf(x) flag.
326
327         dit(bf(x)) Extract (restore) a local tar file back to a
328         share. Unless the bf(-D) option is given, the tar files will be
329         restored from the top level of the share. Must be followed by the name
330         of the tar file, device or tt("-") for standard input. Mutually exclusive
331         with the bf(c) flag. Restored files have theuir creation times (mtime)
332         set to the date saved in the tar file. Directories currently do not
333         get their creation dates restored properly.
334
335         dit(bf(I)) Include files and directories. Is the default
336         behaviour when filenames are specified above. Causes tar files to
337         be included in an extract or create (and therefore everything else to
338         be excluded). See example below.  Filename globbing does not work for
339         included files for extractions (yet).
340
341         dit(bf(X)) Exclude files and directories. Causes tar files to
342         be excluded from an extract or create. See example below.  Filename
343         globbing does not work for excluded files (yet).
344
345         dit(bf(b)) Blocksize. Must be followed by a valid (greater than
346         zero) blocksize.  Causes tar file to be written out in
347         blocksize*TBLOCK (usually 512 byte) blocks.
348
349         dit(bf(g)) Incremental. Only back up files that have the
350         archive bit set. Useful only with the bf(c) flag.
351
352         dit(bf(q)) Quiet. Keeps tar from printing diagnostics as it
353         works.  This is the same as tarmode quiet.
354
355         dit(bf(N)) Newer than. Must be followed by the name of a file
356         whose date is compared against files found on the share during a
357         create. Only files newer than the file specified are backed up to the
358         tar file. Useful only with the bf(c) flag.
359
360         dit(bf(a)) Set archive bit. Causes the archive bit to be reset
361         when a file is backed up. Useful with the bf(g) and bf(c) flags.
362
363         enddit()
364
365 em(Tar Long File Names)
366
367 smbclient's tar option now supports long file names both on backup and
368 restore. However, the full path name of the file must be less than
369 1024 bytes.  Also, when a tar archive is created, smbclient's tar
370 option places all files in the archive with relative names, not
371 absolute names.
372
373 em(Tar Filenames)
374
375 All file names can be given as DOS path names (with tt(\) as the
376 component separator) or as UNIX path names (with tt(/) as the
377 component separator).
378
379 em(Examples)
380
381 startit()
382
383 it() Restore from tar file backup.tar into myshare on mypc (no password on share).
384
385         tt(smbclient //mypc/myshare "" -N -Tx backup.tar)
386
387 it() Restore everything except users/docs
388
389         tt(smbclient //mypc/myshare "" -N -TXx backup.tar users/docs)
390
391 it() Create a tar file of the files beneath users/docs.
392
393         tt(smbclient //mypc/myshare "" -N -Tc backup.tar users/docs)
394
395 it() Create the same tar file as above, but now use a DOS path name.
396
397         tt(smbclient //mypc/myshare "" -N -tc backup.tar users\edocs)
398
399 it() Create a tar file of all the files and directories in the share.
400
401         tt(smbclient //mypc/myshare "" -N -Tc backup.tar *)
402
403 endit()
404
405 dit(bf(-D initial directory)) Change to initial directory before
406 starting. Probably only of any use with the tar bf(-T) option.
407
408 dit(bf(-c command string)) command string is a semicolon separated
409 list of commands to be executed instead of prompting from stdin.
410 bf(-N) is implied by bf(-c).
411
412 This is particularly useful in scripts and for printing stdin to the
413 server, e.g. tt(-c 'print -').
414
415 enddit()
416
417 label(OPERATIONS)
418 manpagesection(OPERATIONS)
419
420 Once the client is running, the user is presented with a prompt :
421
422 tt(smb:\>)
423
424 The backslash ("\") indicates the current working directory on the
425 server, and will change if the current working directory is changed.
426
427 The prompt indicates that the client is ready and waiting to carry out
428 a user command. Each command is a single word, optionally followed by
429 parameters specific to that command. Command and parameters are
430 space-delimited unless these notes specifically state otherwise. All
431 commands are case-insensitive.  Parameters to commands may or may not
432 be case sensitive, depending on the command.
433
434 You can specify file names which have spaces in them by quoting the
435 name with double quotes, for example "a long file name".
436
437 Parameters shown in square brackets (eg., "[parameter]") are
438 optional. If not given, the command will use suitable
439 defaults. Parameters shown in angle brackets (eg., "<parameter>") are
440 required.
441
442 Note that all commands operating on the server are actually performed
443 by issuing a request to the server. Thus the behaviour may vary from
444 server to server, depending on how the server was implemented.
445
446 The commands available are given here in alphabetical order.
447
448 startdit()
449
450 label(questionmark) dit(bf(? [command])) If "command" is specified,
451 the bf(?) command will display a brief informative message about the
452 specified command.  If no command is specified, a list of available
453 commands will be displayed.
454
455 label(exclaimationmark) dit(bf(! [shell command])) If "shell command"
456 is specified, the bf(!)  command will execute a shell locally and run
457 the specified shell command. If no command is specified, a local shell
458 will be run.
459
460 label(cd) dit(bf(cd [directory name])) If "directory name" is
461 specified, the current working directory on the server will be changed
462 to the directory specified. This operation will fail if for any reason
463 the specified directory is inaccessible.
464
465 If no directory name is specified, the current working directory on
466 the server will be reported.
467
468 label(del) dit(bf(del <mask>)) The client will request that the server
469 attempt to delete all files matching "mask" from the current working
470 directory on the server.
471
472 label(dir) dit(bf(dir <mask>)) A list of the files matching "mask" in
473 the current working directory on the server will be retrieved from the
474 server and displayed.
475
476 label(exit) dit(bf(exit)) Terminate the connection with the server and
477 exit from the program.
478
479 label(get) dit(bf(get <remote file name> [local file name])) Copy the
480 file called "remote file name" from the server to the machine running
481 the client. If specified, name the local copy "local file name".  Note
482 that all transfers in smbclient are binary. See also the
483 link(bf(lowercase))(lowercase) command.
484
485 label(help) dit(bf(help [command])) See the link(bf(?))(questionmark)
486 command above.
487
488 label(lcd) dit(bf(lcd [directory name])) If "directory name" is
489 specified, the current working directory on the local machine will
490 be changed to the directory specified. This operation will fail if for
491 any reason the specified directory is inaccessible.
492
493 If no directory name is specified, the name of the current working
494 directory on the local machine will be reported.
495
496 label(lowercase) dit(bf(lowercase)) Toggle lowercasing of filenames
497 for the link(bf(get))(get) and link(bf(mget))(mget) commands.
498
499 When lowercasing is toggled ON, local filenames are converted to
500 lowercase when using the link(bf(get))(get) and link(bf(mget))(mget)
501 commands. This is often useful when copying (say) MSDOS files from a
502 server, because lowercase filenames are the norm on UNIX systems.
503
504 label(ls) dit(bf(ls <mask>)) See the link(bf(dir))(dir) command above.
505
506 label(mask) dit(bf(mask <mask>)) This command allows the user to set
507 up a mask which will be used during recursive operation of the
508 link(bf(mget))(mget) and link(bf(mput))(mput) commands.
509
510 The masks specified to the link(bf(mget))(mget) and
511 link(bf(mput))(mput) commands act as filters for directories rather
512 than files when recursion is toggled ON.
513
514 The mask specified with the .B mask command is necessary to filter
515 files within those directories. For example, if the mask specified in
516 an link(bf(mget))(mget) command is "source*" and the mask specified
517 with the mask command is "*.c" and recursion is toggled ON, the
518 link(bf(mget))(mget) command will retrieve all files matching "*.c" in
519 all directories below and including all directories matching "source*"
520 in the current working directory.
521
522 Note that the value for mask defaults to blank (equivalent to "*") and
523 remains so until the mask command is used to change it. It retains the
524 most recently specified value indefinitely. To avoid unexpected
525 results it would be wise to change the value of .I mask back to "*"
526 after using the link(bf(mget))(mget) or link(bf(mput))(mput) commands.
527
528 label(md) dit(bf(md <directory name>)) See the link(bf(mkdir))(mkdir)
529 command.
530
531 label(mget) dit(bf(mget <mask>)) Copy all files matching mask from the
532 server to the machine running the client.
533
534 Note that mask is interpreted differently during recursive operation
535 and non-recursive operation - refer to the link(bf(recurse))(recurse)
536 and link(bf(mask))(mask) commands for more information. Note that all
537 transfers in .B smbclient are binary. See also the
538 link(bf(lowercase))(lowercase) command.
539
540 label(mkdir) dit(bf(mkdir <directory name>)) Create a new directory on
541 the server (user access privileges permitting) with the specified
542 name.
543
544 label(mput) dit(bf(mput <mask>)) Copy all files matching mask in
545 the current working directory on the local machine to the current
546 working directory on the server.
547
548 Note that mask is interpreted differently during recursive operation
549 and non-recursive operation - refer to the link(bf(recurse))(recurse)
550 and link(bf(mask))(mask) commands for more information. Note that all
551 transfers in .B smbclient are binary.
552
553 label(print) dit(bf(print <file name>)) Print the specified file
554 from the local machine through a printable service on the server.
555
556 See also the link(bf(printmode))(printmode) command.
557
558 label(printmode) dit(bf(printmode <graphics or text>)) Set the print
559 mode to suit either binary data (such as graphical information) or
560 text. Subsequent print commands will use the currently set print
561 mode.
562
563 label(prompt) dir(bf(prompt)) Toggle prompting for filenames during
564 operation of the link(bf(mget))(mget) and link(bf(mput))(mput)
565 commands.
566
567 When toggled ON, the user will be prompted to confirm the transfer of
568 each file during these commands. When toggled OFF, all specified files
569 will be transferred without prompting.
570
571 label(put) dit(bf(put <local file name> [remote file name])) Copy the
572 file called "local file name" from the machine running the client to
573 the server. If specified, name the remote copy "remote file name".
574 Note that all transfers in smbclient are binary. See also the
575 link(bf(lowercase))(lowercase) command.
576
577 label(queue) dir(bf(queue)) Displays the print queue, showing the job
578 id, name, size and current status.
579
580 label(quit) dit(bf(quit)) See the link(bf(exit))(exit) command.
581
582 label(rd) dir(bf(rd <directory name>)) See the link(bf(rmdir))(rmdir)
583 command.
584
585 label(recurse) dir(bf(recurse)) Toggle directory recursion for the
586 commands link(bf(mget))(mget) and link(bf(mput))(mput).
587
588 When toggled ON, these commands will process all directories in the
589 source directory (i.e., the directory they are copying .IR from ) and
590 will recurse into any that match the mask specified to the
591 command. Only files that match the mask specified using the
592 link(bf(mask))(mask) command will be retrieved. See also the
593 link(bf(mask))(mask) command.
594
595 When recursion is toggled OFF, only files from the current working
596 directory on the source machine that match the mask specified to the
597 link(bf(mget))(mget) or link(bf(mput))(mput) commands will be copied,
598 and any mask specified using the link(bf(mask))(mask) command will be
599 ignored.
600
601 label(rm) dir(bf(rm <mask>)) Remove all files matching mask from
602 the current working directory on the server.
603
604 label(rmdir) dit(bf(rmdir <directory name>)) Remove the specified
605 directory (user access privileges permitting) from the server.
606
607 label(tar) dit(bf(tar <c|x>[IXbgNa])) Performs a tar operation - see
608 the url(bf(-T))(smbclient.1.html#minus_T) command line option
609 above. Behaviour may be affected by the link(bf(tarmode))(tarmode)
610 command (see below). Using g (incremental) and N (newer) will affect
611 tarmode settings. Note that using the "-" option with tar x may not
612 work - use the command line option instead.
613
614 label(blocksize) dit(bf(blocksize <blocksize>)) Blocksize. Must be
615 followed by a valid (greater than zero) blocksize. Causes tar file to
616 be written out in blocksize*TBLOCK (usually 512 byte) blocks.
617
618 label(tarmode) dir(bf(tarmode <full|inc|reset|noreset>)) Changes tar's
619 behaviour with regard to archive bits. In full mode, tar will back up
620 everything regardless of the archive bit setting (this is the default
621 mode). In incremental mode, tar will only back up files with the
622 archive bit set. In reset mode, tar will reset the archive bit on all
623 files it backs up (implies read/write share).
624
625 label(setmode) dit(bf(setmode <filename> <perm=[+|\-]rsha>)) A version
626 of the DOS attrib command to set file permissions. For example:
627
628 tt(setmode myfile +r)
629
630 would make myfile read only.
631
632 enddit()
633
634 label(NOTES)
635 manpagesection(NOTES)
636
637 Some servers are fussy about the case of supplied usernames,
638 passwords, share names (aka service names) and machine names. If you
639 fail to connect try giving all parameters in uppercase.
640
641 It is often necessary to use the -n option when connecting to some
642 types of servers. For example OS/2 LanManager insists on a valid
643 NetBIOS name being used, so you need to supply a valid name that would
644 be known to the server.
645
646 smbclient supports long file names where the server supports the
647 LANMAN2 protocol or above.
648
649 label(ENVIRONMENT VARIABLES)
650 manpagesection(ENVIRONMENT VARIABLES)
651
652 The variable bf(USER) may contain the username of the person using the
653 client.  This information is used only if the protocol level is high
654 enough to support session-level passwords.
655
656 The variable bf(PASSWORD) may contain the password of the person using
657 the client.  This information is used only if the protocol level is
658 high enough to support session-level passwords.
659
660 label(INSTALLATION)
661 manpagesection(INSTALLATION)
662
663 The location of the client program is a matter for individual system
664 administrators. The following are thus suggestions only.
665
666 It is recommended that the smbclient software be installed in the
667 /usr/local/samba/bin or /usr/samba/bin directory, this directory
668 readable by all, writeable only by root. The client program itself
669 should be executable by all. The client should em(NOT) be setuid or
670 setgid!
671
672 The client log files should be put in a directory readable and
673 writable only by the user.
674
675 To test the client, you will need to know the name of a running
676 SMB/CIFS server. It is possible to run url(bf(smbd (8)))(smbd.8.html)
677 an ordinary user - running that server as a daemon on a
678 user-accessible port (typically any port number over 1024) would
679 provide a suitable test server.
680
681 label(DIAGNOSTICS)
682 manpagesection(DIAGNOSTICS)
683
684 Most diagnostics issued by the client are logged in a specified log
685 file. The log file name is specified at compile time, but may be
686 overridden on the command line.
687
688 The number and nature of diagnostics available depends on the debug
689 level used by the client. If you have problems, set the debug level to
690 3 and peruse the log files.
691
692 label(VERSION)
693 manpagesection(VERSION)
694
695 This man page is correct for version 2.0 of the Samba suite.
696
697 label(AUTHOR)
698 manpageauthor()
699
700 The original Samba software and related utilities were created by
701 Andrew Tridgell email(samba-bugs@samba.anu.edu.au). Samba is now developed
702 by the Samba Team as an Open Source project similar to the way the
703 Linux kernel is developed.
704
705 The original Samba man pages were written by Karl Auer. The man page
706 sources were converted to YODL format (another excellent piece of Open
707 Source software) and updated for the Samba2.0 release by Jeremy
708 Allison, email(samba-bugs@samba.anu.edu.au).
709
710 See url(bf(samba (8)))(samba.7.html) to find out how to get a full
711 list of contributors and details on how to submit bug reports,
712 comments etc.