preparing for release of 1.9.18p4
[Samba.git] / docs / manpages / smbclient.1
blob0656de80ea376ea9a3a5debd756e85b03eae0864
1 .TH SMBCLIENT 1 "28 Mar 1998" "smbclient 1.9.18p4"
2 .SH NAME
3 smbclient \- ftp-like Lan Manager client program
4 .SH SYNOPSIS
5 .B smbclient
6 .B servicename
8 .B password
9 ] [
10 .B \-A
11 ] [
12 .B \-E
13 ] [
14 .B \-L
15 .I host
16 ] [
17 .B \-M
18 .I host
19 ] [
20 .B \-I
21 .I IP number
22 ] [
23 .B \-R
24 .I name resolve order
25 ] [
26 .B \-N
27 ] [
28 .B \-P
29 ] [
30 .B \-U
31 .I username
32 ] [
33 .B \-d
34 .I debuglevel
35 ] [
36 .B \-l
37 .I log basename
38 ] [
39 .B \-n
40 .I netbios name
41 ] [
42 .B \-W
43 .I workgroup
44 ] [
45 .B \-O
46 .I socket options
47 ] [
48 .B \-p
49 .I port number
50 ] [
51 .B \-c
52 .I command string
53 ] [
54 .B \-T
55 .I tar options
56 ] [
57 .B \-D
58 .I initial directory
60 .SH DESCRIPTION
61 This program is part of the Samba suite.
63 .B smbclient
64 is a client that can 'talk' to a Lan Manager server. It offers
65 an interface similar to that of the 
66 .B ftp
67 program (see
68 .BR ftp (1)).
69 Operations include things like getting files from the
70 server to the local machine, putting files from the local machine to
71 the server, retrieving directory information from the server and so on.
72 .SH OPTIONS
73 .B servicename
74 .RS 3
75 .B servicename
76 is the name of the service you want to use on the server. A service
77 name takes the form
78 .B "\e\eserver\eservice"
79 where
80 .B server
81 is the netbios name of the Lan Manager server offering the desired service and
82 .B service
83 is the name of the service offered. Thus to connect to the service "printer" 
84 on the Lan Manager server "lanman", you would use the servicename
86 .RS 10
87 .B "\e\elanman\eprinter"
88 .RE
90 Note that the server name required is NOT necessarily the host name of the
91 server! The name required is a Lan Manager server name, which may or may not
92 be the same as the hostname of the machine running the server.
94 With Samba 1.9.18p4 the server name is looked up according to the
95 "name resolve order=" parameter in the smb.conf file, allowing an
96 administrator to change the order and methods by which server names
97 are looked up.
98 .RE
100 .B password
101 .RS 3
103 password
104 is the password required to access the specified service on the
105 specified server. If supplied, the
106 .B \-N
107 option (suppress password prompt) is assumed.
109 There is no default password. If no password is supplied on the command line
110 (either here or using the 
111 .B \-U
112 option (see below)) and 
113 .B \-N
114 is not specified, the client will prompt for a password, even if the desired 
115 service does not require one. (If no password is 
116 required, simply press ENTER to provide a null password.)
118 Note: Some servers (including OS/2 and Windows for Workgroups) insist
119 on an uppercase password. Lowercase or mixed case passwords may be
120 rejected by these servers.
122 Be cautious about including passwords in scripts.
125 .B \-R name resolve order
127 .RS 3
128 This parameter will override the default name resolution order of the
129 server listed in the "name resolve order" parameter in smb.conf. This
130 is useful to force name resolution to take place by a particular method.
131 This command line parameter only exists in Samba 1.9.18p4 and above.
134 .B \-A
136 .RS 3
137 This parameter, if specified, causes the maximum debug level to be selected.
138 Be warned that this generates prodigious amounts of debug data. There is also
139 a security issue involved, as at the maximum debug level cleartext passwords
140 may be written to some log files.
143 .B \-L
145 .RS 3
146 This option allows you to look at what services are available on a
147 server. You use it as "smbclient -L host" and a list should appear.
149 .B \-I
150 option may be useful if your netbios names don't match your 
151 tcp/ip host names or if you are trying to reach a host on another
152 network. For example:
154 smbclient -L ftp -I ftp.microsoft.com
156 will list the shares available on Microsoft's public server.
159 .B \-M
161 .RS 3
162 This options allows you to send messages, using the "WinPopup"
163 protocol, to another computer. Once a connection is established you
164 then type your message, pressing ^D (control-D) to end.
166 If the receiving computer is running WinPopup the user will receive
167 the message and probably a beep. If they are not running WinPopup the
168 message will be lost, and no error message will occur.
170 The message is also automatically truncated if the message is over
171 1600 bytes, as this is the limit of the protocol.
173 One useful trick is to cat the message through
174 .BR smbclient .
175 For example:
177 cat mymessage.txt | smbclient -M FRED
179 will send the message in the file "mymessage.txt" to the machine FRED.
181 You may also find the
182 .B \-U
184 .B \-I
185 options useful, as they allow you to
186 control the FROM and TO parts of the message. 
188 See the message command section of
189 .BR smb.conf (5)
190 for a description of how to handle incoming WinPopup messages in Samba.
192 Note: Copy WinPopup into the startup group on your WfWg PCs if you
193 want them to always be able to receive messages.
196 .B \-E
198 .RS 3
199 This parameter, if specified, causes the client to write messages to the
200 standard error stream (stderr) rather than to the standard output stream.
202 By default, the client writes messages to standard output - typically the
203 user's tty.
206 .B \-I
207 .I IP number
209 .RS 3
210 .I IP number
211 represents the IP number of the server to connect to. It should
212 be specified in standard "a.b.c.d" notation.
214 Normally the client will attempt to locate the specified Lan Manager server
215 by looking it up - that is, broadcasting a request for the given server to
216 identify itself. Using this parameter will force the client to assume that
217 the server is on the machine with the specified IP number.
219 There is no default for this parameter. If not supplied, it will be determined
220 automatically by the client as described above.
223 .B \-N
225 .RS 3
226 If specified, this parameter suppresses the normal password prompt from the
227 client to the user. This is useful when accessing a service that does not
228 require a password.
230 Unless a password is specified on the command line or this parameter is
231 specified, the client will request a password.
234 .B \-O
235 .I socket options
237 .RS 3
238 See the socket options section of
239 .BR smb.conf (5)
240 for details.
243 .B \-P
245 .RS 3
246 If specified, the service requested will be connected to as a printer service
247 rather than as a normal filespace service. Operations such as put and get
248 will not be applicable for such a connection.
250 By default, services will be connected to as NON-printer services.
253 .B \-U
254 .I username
256 .RS 3
257 .I username
258 is the user name that will be used by the client to make a connection,
259 assuming your server is running a protocol that allows for usernames.
261 Some servers are fussy about the case of this name, and some insist
262 that it must be a valid netbios name.
264 If no 
265 .I username
266 is supplied, it will default to an uppercase version of the 
267 environment variable 
268 .B USER
270 .B LOGNAME
271 in that order.
272 If no 
273 .I username
274 is supplied and neither environment variable exists the user name will
275 be empty.
277 If the USER environment variable containts a '%' character, everything
278 after that will be treated as a password. This allows you to set the
279 environment variable to be
280 .B USER=username%password
281 so that a password is not passed on the command line (where it may
282 be seen by the ps command).
284 If the service you are connecting to requires a password, it can be supplied
285 using the
286 .B \-U
287 option, by appending a percent symbol ("%") then the password to 
288 .I username.
289 For example, to attach to a service as user "fred" with password "secret", you
290 would specify
291 .B \-U
292 .I fred%secret
293 on the command line. Note that there are no spaces around the percent symbol.
295 If you specify the password as part of
296 .I username
297 then the 
298 .B \-N
299 option (suppress password prompt) is assumed.
301 If you specify the password as a parameter AND as part of
302 .I username
303 then the password as part of
304 .I username
305 will take precedence. Putting nothing before or nothing after the percent 
306 symbol will cause an empty username or an empty password to be used,
307 respectively.
309 Note: Some servers (including OS/2 and Windows for Workgroups) insist
310 on an uppercase password. Lowercase or mixed case passwords may be
311 rejected by these servers.
313 Be cautious about including passwords in scripts.
316 .B \-d
317 .I debuglevel
319 .RS 3
320 debuglevel is an integer from 0 to 5.
322 The default value if this parameter is not specified is zero.
324 The higher this value, the more detail will be logged to the log files about
325 the activities of the client. At level 0, only critical errors and serious 
326 warnings will be logged. Level 1 is a reasonable level for day to day running
327 - it generates a small amount of information about operations carried out.
329 Levels above 1 will generate considerable amounts of log data, and should 
330 only be used when investigating a problem. Levels above 3 are designed for 
331 use only by developers and generate HUGE amounts of log data, most of which 
332 is extremely cryptic.
335 .B \-l
336 .I log basename
338 .RS 3
339 If specified,
340 .I log basename
341 specifies a base filename into which operational data from the running client
342 will be logged.
344 The default base name is specified at compile time.
346 The base name is used to generate actual log file names. For example, if the
347 name specified was "log", the following files would be used for log data:
349 .RS 3
350 log.client.debug (containing debugging information)
352 log.client.in (containing inbound transaction data)
354 log.client.out (containing outbound transaction data)
357 The log files generated are never removed by the client.
360 .B \-n
361 .I netbios name
363 .RS 3
364 By default, the client will use the local machine's hostname (in
365 uppercase) as its netbios name. This parameter allows you to override
366 the host name and use whatever netbios name you wish.
369 .B \-W
370 .I workgroup
372 .RS 3
373 Override what workgroup is used for the connection. This may be needed
374 to connect to some servers.
377 .B \-p
378 .I port number
380 .RS 3
381 port number is a positive integer value.
383 The default value if this parameter is not specified is 139.
385 This number is the port number that will be used when making connections to
386 the server. The standard (well-known) port number for the server is 139, 
387 hence the default.
389 This parameter is not normally specified.
392 .B \-T
393 .I tar options
395 .RS 3 
396 where
397 .I tar options
398 consists of one or more of
399 .BR c ,
400 .BR x ,
401 .BR I ,
402 .BR X ,
403 .BR b ,
404 .BR g ,
405 .BR N
407 .BR a ;
408 used as:
410 smbclient 
411 .B "\e\eserver\eshare"
412 \-TcxIXbgNa
414 .IR blocksize
417 .IR newer-file
419 .IR tarfile
421 .IR filenames....
424 .RS 3
425 .B c
426 Create a tar file on UNIX. Must be followed by the name of a tar file,
427 tape device or "\-" for standard output. (May be useful to set debugging
429 .RB ( -d0 ))
430 to avoid corrupting your tar file if using "\-"). Mutually
431 exclusive with the
432 .B x
433 flag.
435 .B x
436 Extract (restore) a local tar file back to a share. Unless the
437 .B \-D
438 option is given, the tar files will be restored from the top level of
439 the share. Must be followed by the name of the tar file, device or "\-"
440 for standard input. Mutually exclusive with the
441 .B c
442 flag.
444 .B I
445 Include files and directories. Is the default behaviour when
446 .IR filenames
447 are specified above. Causes tar files to be included in an extract or create
448 (and therefore everything else to be excluded). See example below.
449 Filename globbing does not work for included files for extractions (yet).
451 .B X
452 Exclude files and directories. Causes tar files to be excluded from
453 an extract or create. See example below.
454 Filename globbing does not work for excluded files (yet).
456 .B b
457 Blocksize. Must be followed by a valid (greater than zero) blocksize.
458 Causes tar file to be written out in blocksize*TBLOCK (usually 512 byte)
459 blocks.
461 .B g
462 Incremental. Only back up files that have the archive bit set. Useful
463 only with the
464 .B c
465 flag.
467 .B N
468 Newer than. Must be followed by the name of a file whose date is
469 compared against files found on the share during a create. Only files
470 newer than the file specified are backed up to the tar file. Useful
471 only with the
472 .B c
473 flag.
475 .B a
476 Set archive bit. Causes the archive bit to be reset when a file is backed
477 up. Useful with the
478 .B g
479 (and
480 .BR c )
481 flags.
484 .B Examples
486 smbclient \e\emypc\emyshare "" -N -Tx backup.tar
488 Restore from tar file backup.tar into myshare on mypc (no password on share).
490 smbclient \e\emypc\emyshare "" -N -TXx backup.tar users/docs
492 Restore everything except users/docs
494 smbclient \e\emypc\emyshare "" -N -Tc backup.tar users/docs
496 Create a tar file of the files beneath users/docs.
500 .B \-D
501 .I initial directory
503 .RS 3 
504 Change to initial directory before starting. Probably only of any use
505 with the tar
506 .RB ( \-T )
507 option.
510 .B \-c
511 .I command string
513 .RS 3
514 command string is a semicolon separated list of commands to be
515 executed instead of prompting from stdin.
516 .B \-N
517 is implied by
518 .BR \-c .
520 This is particularly useful in scripts and for printing stdin to
521 the server, e.g. \-c 'print \-'.
523 .SH OPERATIONS
524 Once the client is running, the user is presented with a prompt, "smb: \e>".
525 The backslash ("\e") indicates the current working directory on the server,
526 and will change if the current working directory is changed.
528 The prompt indicates that the client is ready and waiting to carry out a user
529 command. Each command is a single word, optionally followed by parameters
530 specific to that command. Command and parameters are space-delimited unless
531 these notes specifically state otherwise. All commands are case-insensitive.
532 Parameters to commands may or may not be case sensitive, depending on the
533 command.
535 You can specify file names which have spaces in them by quoting the
536 name with double quotes, for example "a long file name".
538 Parameters shown in square brackets (eg., "[parameter]") are optional. If not
539 given, the command will use suitable defaults. Parameters shown in angle
540 brackets (eg., "<parameter>") are required.
542 Note that all commands operating on the server are actually performed by
543 issuing a request to the server. Thus the behaviour may vary from server to
544 server, depending on how the server was implemented.
546 The commands available are given here in alphabetical order.
548 .B ?
549 .RS 3
550 .B Parameters:
551 .RS 3
552 .I [command]
555 .B Description:
556 .RS 3
558 .I command
559 is specified, the
560 .B ?
561 command will display a brief informative message about the specified command.
563 If no command is specified, a list of available commands will be displayed.
567 .B !
568 .RS 3
569 .B Parameters:
570 .RS 3
571 .I [shell command]
574 .B Description:
575 .RS 3
577 .I shell command
578 is specified, the
579 .B !
580 command will execute a shell locally and run the specified shell command. If
581 no command is specified, a shell will be run.
585 .B cd
586 .RS 3
587 .B Parameters:
588 .RS 3
589 .I [directory name]
592 .B Description:
593 .RS 3
595 .I directory name
596 is specified, the current working directory
597 .B on the server
598 will be changed to the directory specified. This operation will fail if for
599 any reason the specified directory is inaccessible.
601 If no directory name is specified, the current working directory
602 .B on the server
603 will be reported.
607 .B del
608 .RS 3
609 .B Parameters:
610 .RS 3
611 .I <mask>
614 .B Description:
615 .RS 3
616 The client will request that the server attempt to delete all files matching
617 .I mask
618 from the current working directory
619 .B on the server.
623 .B dir
624 .RS 3
625 .B Parameters:
626 .RS 3
627 .I <mask>
630 .B Description:
631 .RS 3
632 A list of the files matching
633 .I mask
634 in the current working directory
635 .B on the server
636 will be retrieved from the server and displayed.
640 .B exit
641 .RS 3
642 .B Parameters:
643 .RS 3
644 None.
647 .B Description:
648 .RS 3
649 Terminate the connection with the server and exit from the program.
653 .B get
654 .RS 3
655 .B Parameters:
656 .RS 3
657 .I <remote file name> [local file name]
660 .B Description:
661 .RS 3
662 Copy the file called
663 .I remote file name
664 from the server to the machine running the client. If specified, name the
665 local copy
666 .I local file name.
667 Note that all transfers in
668 .B smbclient
669 are binary. See also the
670 .B lowercase
671 command.
675 .B help
676 .RS 3
677 .B Parameters:
678 .RS 3
679 .I [command]
682 .B Description:
683 .RS 3
684 See the
685 .B ?
686 command above.
690 .B lcd
691 .RS 3
692 .B Parameters:
693 .RS 3
694 .I [directory name]
697 .B Description:
698 .RS 3
700 .I directory name
701 is specified, the current working directory
702 .B on the local machine
703 will be changed to the directory specified. This operation will fail if for
704 any reason the specified directory is inaccessible.
706 If no directory name is specified, the name of the current working directory
707 .B on the local machine
708 will be reported.
712 .B lowercase
713 .RS 3
714 .B Parameters:
715 .RS 3
716 None.
719 .B Description:
720 .RS 3
721 Toggle lowercasing of filenames for the
722 .B get
724 .B mget
725 commands.
727 When lowercasing is toggled ON, local filenames are converted to lowercase
728 when using the
729 .B get
731 .B mget
732 commands. This is often useful when copying (say) MSDOS files from a server,
733 because lowercase filenames are the norm on UNIX systems.
737 .B ls
738 .RS 3
739 .B Parameters:
740 .RS 3
741 .I <mask>
744 .B Description:
745 .RS 3
746 See the
747 .B dir
748 command above.
752 .B mask
753 .RS 3
754 .B Parameters:
755 .RS 3
756 .I <mask>
759 .B Description:
760 .RS 3
761 This command allows the user to set up a mask which will be used during
762 recursive operation of the
763 .B mget
765 .B mput
766 commands.
768 The masks specified to the
769 .B mget
771 .B mput
772 commands act as filters for directories
773 rather than files when recursion is toggled ON.
775 The mask specified with the
776 .B mask
777 command is necessary to filter files within those directories. For example,
778 if the mask specified in an
779 .B mget
780 command is "source*"
781 .I and
782 the mask specified with the
783 .B mask
784 command is "*.c"
785 .I and
786 recursion is toggled ON, the
787 .B mget
788 command will retrieve all files matching "*.c" in all directories below
789 and including all directories matching "source*" in the current working 
790 directory.
792 Note that the value for
793 .I mask
794 defaults to blank (equivalent to "*") and remains so until the
795 .B mask
796 command is used to change it. It retains the most recently specified value
797 indefinitely. To avoid unexpected results it would be wise to change the
798 value of
799 .I mask
800 back to "*" after using the
801 .B mget
803 .B mput
804 commands.
808 .B md
809 .RS 3
810 .B Parameters:
811 .RS 3
812 .I <directory name>
815 .B Description:
816 .RS 3
817 See the
818 .B mkdir
819 command.
823 .B mget
824 .RS 3
825 .B Parameters:
826 .RS 3
827 .I <mask>
830 .B Description:
831 .RS 3
832 Copy all files matching
833 .I mask
834 from the server to the machine running the client.
836 Note that
837 .I mask
838 is interpreted differently during recursive operation and non-recursive
839 operation - refer to the
840 .B recurse
842 .B mask
843 commands for more information. Note that all transfers in
844 .B smbclient
845 are binary. See also the
846 .B lowercase
847 command.
851 .B mkdir
852 .RS 3
853 .B Parameters:
854 .RS 3
855 .I <directory name>
858 .B Description:
859 .RS 3
860 Create a new directory 
861 .B on the server
862 (user access privileges permitting) with the specified name.
866 .B mput
867 .RS 3
868 .B Parameters:
869 .RS 3
870 .I <mask>
873 .B Description:
874 .RS 3
875 Copy all files matching
876 .I mask
877 in the current working directory
878 .B on the local machine
879 to the current working directory on the server.
881 Note that
882 .I mask
883 is interpreted differently during recursive operation and non-recursive
884 operation - refer to the
885 .B recurse
887 .B mask
888 commands for more information. Note that all transfers in
889 .B smbclient
890 are binary.
894 .B print
895 .RS 3
896 .B Parameters:
897 .RS 3
898 .I <file name>
901 .B Description:
902 .RS 3
903 Print the specified file
904 .B from the local machine
905 through a printable service on the server.
907 See also the
908 .B printmode
909 command.
913 .B printmode
914 .RS 3
915 .B Parameters:
916 .RS 3
917 .I <graphics or text>
920 .B Description:
921 .RS 3
922 Set the print mode to suit either binary data (such as graphical information)
923 or text. Subsequent
924 .B print
925 commands will use the currently set print mode.
929 .B prompt
930 .RS 3
931 .B Parameters:
932 .RS 3
933 None.
936 .B Description:
937 .RS 3
938 Toggle prompting for filenames during operation of the
939 .B mget
941 .B mput
942 commands.
944 When toggled ON, the user will be prompted to confirm the transfer of each
945 file during these commands. When toggled OFF, all specified files will be
946 transferred without prompting.
950 .B put
951 .RS 3
952 .B Parameters:
953 .RS 3
954 .I <local file name> [remote file name]
957 .B Description:
958 .RS 3
959 Copy the file called
960 .I local file name
961 from the machine running the client to the server. If specified, name the
962 remote copy
963 .I remote file name.
964 Note that all transfers in
965 .B smbclient
966 are binary. See also the
967 .B lowercase
968 command.
972 .B queue
973 .RS 3
974 .B Parameters:
975 .RS 3
976 None.
979 .B Description:
980 .RS 3
981 Displays the print queue, showing the job id, name, size and current status.
985 .B quit
986 .RS 3
987 .B Parameters:
988 .RS 3
989 None.
992 .B Description:
993 .RS 3
994 See the
995 .B exit
996 command.
1000 .B rd
1001 .RS 3
1002 .B Parameters:
1003 .RS 3
1004 .I <directory name>
1007 .B Description:
1008 .RS 3
1009 See the
1010 .B rmdir
1011 command.
1015 .B recurse
1016 .RS 3
1017 .B Parameters:
1018 .RS 3
1019 None.
1022 .B Description:
1023 .RS 3
1024 Toggle directory recursion for the commands
1025 .B mget
1027 .BR mput .
1029 When toggled ON, these commands will process all directories in the source
1030 directory (i.e., the directory they are copying
1031 .IR from )
1032 and will recurse into any that match the mask specified to the command. Only
1033 files that match the mask specified using the
1034 .B mask
1035 command will be retrieved. See also the
1036 .B mask
1037 command.
1039 When recursion is toggled OFF, only files from the current working
1040 directory on the source machine that match the mask specified to the
1041 .B mget
1043 .B mput
1044 commands will be copied, and any mask specified using the
1045 .B mask
1046 command will be ignored.
1050 .B rm
1051 .RS 3
1052 .B Parameters:
1053 .RS 3
1054 .I <mask>
1057 .B Description:
1058 .RS 3
1059 Remove all files matching
1060 .I mask
1061 from the current working directory
1062 .B on the server.
1066 .B rmdir
1067 .RS 3
1068 .B Parameters:
1069 .RS 3
1070 .I <directory name>
1073 .B Description:
1074 .RS 3
1075 Remove the specified directory (user access privileges permitting)
1076 .B from the server.
1080 .B tar
1081 .RS 3
1082 .B Parameters:
1083 .RS 3
1084 .I <c|x>[IXbgNa]
1087 .B Description:
1088 .RS 3
1089 Performs a tar operation - see the
1090 .B \-T
1091 command line option above. Behaviour
1092 may be affected by the
1093 .B tarmode
1094 command (see below). Using g (incremental) and N (newer) will affect
1095 tarmode settings. Note that using the "\-" option with tar x may not
1096 work - use the command line option instead.
1100 .B blocksize
1101 .RS 3
1102 .B Parameters
1103 .RS 3
1104 .I <blocksize>
1107 .B Description
1108 .RS 3
1109 Blocksize. Must be followed by a valid (greater than zero) blocksize.
1110 Causes tar file to be written out in blocksize*TBLOCK (usually 512 byte)
1111 blocks.
1115 .B tarmode
1116 .RS 3
1117 .B Parameters
1118 .RS 3
1119 .I <full|inc|reset|noreset>
1122 .B Description
1123 .RS 3
1124 Changes tar's behaviour with regard to archive bits. In full mode,
1125 tar will back up everything regardless of the archive bit setting (this
1126 is the default mode). In incremental mode, tar will only back up files
1127 with the archive bit set. In reset mode, tar will reset the archive bit
1128 on all files it backs up (implies read/write share).
1132 .B setmode
1133 .RS 3
1134 .B Parameters
1135 .RS 3
1136 .I <filename> <perm=[+|\-]rsha>
1139 .B Description
1140 .RS 3
1141 A version of the DOS attrib command to set file permissions. For example,
1143 setmode myfile +r
1145 would make myfile read only.
1148 .SH NOTES
1149 Some servers are fussy about the case of supplied usernames, passwords, share
1150 names (aka service names) and machine names. If you fail to connect try
1151 giving all parameters in uppercase.
1153 It is often necessary to use the
1154 .B \-n
1155 option when connecting to some types
1156 of servers. For example OS/2 LanManager insists on a valid netbios name
1157 being used, so you need to supply a valid name that would be known to
1158 the server.
1160 .B smbclient
1161 supports long file names where the server supports the LANMAN2
1162 protocol.
1163 .SH FILES
1164 Not applicable.
1165 .SH ENVIRONMENT VARIABLES
1166 .B USER
1167 .RS 3
1168 The variable USER may contain the username of the person using the client.
1169 This information is used only if the protocol level is high enough to support
1170 session-level passwords.
1172 .SH INSTALLATION
1173 The location of the client program is a matter for individual system 
1174 administrators. The following are thus suggestions only.
1176 It is recommended that the client software be installed under the
1177 /usr/local/samba
1178 hierarchy, in a directory readable by all, writeable only by root. The client
1179 program itself should be executable by all. The client should NOT be setuid 
1180 or setgid!
1182 The client log files should be put in a directory readable and writable only
1183 by the user.
1185 To test the client, you will need to know the name of a running Lan manager
1186 server. It is possible to run
1187 .B smbd
1188 (see
1189 .BR smbd (8))
1190 as an ordinary user - running that server as a daemon on a
1191 user-accessible port (typically any port number over 1024) would
1192 provide a suitable test server.
1193 .SH VERSION
1194 This man page is (mostly) correct for version 1.9.00 of the Samba suite, plus some
1195 of the recent patches to it. These notes will necessarily lag behind 
1196 development of the client software, so it is possible that your version of 
1197 the client has extensions or parameter semantics that differ from or are not 
1198 covered by this man page. Please notify these to the address below for 
1199 rectification.
1200 .SH SEE ALSO
1201 .BR smbd (8)
1202 .SH DIAGNOSTICS
1203 [This section under construction]
1205 Most diagnostics issued by the client are logged in a specified log file. The
1206 log file name is specified at compile time, but may be overridden on the
1207 command line.
1209 The number and nature of diagnostics available depends on the debug level used
1210 by the client. If you have problems, set the debug level to 3 and peruse the
1211 log files.
1213 Most messages are reasonably self-explanatory. Unfortunately, at time of
1214 creation of this man page the source code is still too fluid to warrant
1215 describing each and every diagnostic. At this stage your best bet is still
1216 to grep the source code and inspect the conditions that gave rise to the 
1217 diagnostics you are seeing.
1218 .SH BUGS
1219 None known.
1220 .SH CREDITS
1221 The original Samba software and related utilities were created by 
1222 Andrew Tridgell (samba-bugs@samba.anu.edu.au). Andrew is also the Keeper
1223 of the Source for this project.
1226 .BR smb.conf (5)
1227 for a full list of contributors and details on how to 
1228 submit bug reports, comments etc.