samba.faq: Updated with info on 'Dave'.
[kai/samba.git] / docs / manpages / smb.conf.5
1 .TH SMB.CONF 5 smb.conf smb.conf
2 .SH NAME
3 smb.conf \- configuration file for smbd
4 .SH SYNOPSIS
5 .B smb.conf
6 .SH DESCRIPTION
7 The
8 .B smb.conf
9 file is a configuration file for the Samba suite.
10
11 .B smb.conf
12 contains runtime configuration information for the
13 .B smbd
14 program. The
15 .B smbd
16 program provides LanManager-like services to clients
17 using the SMB protocol.
18 .SH FILE FORMAT
19 The file consists of sections and parameters. A section begins with the 
20 name of the section in square brackets and continues until the next
21 section begins. Sections contain parameters of the form 'name = value'.
22
23 The file is line-based - that is, each newline-terminated line represents
24 either a comment, a section name or a parameter.
25
26 Section and parameter names are not case sensitive.
27
28 Only the first equals sign in a parameter is significant. Whitespace before 
29 or after the first equals sign is discarded. Leading, trailing and internal
30 whitespace in section and parameter names is irrelevant. Leading and
31 trailing whitespace in a parameter value is discarded. Internal whitespace
32 within a parameter value is retained verbatim.
33
34 Any line beginning with a semicolon is ignored, as are lines containing 
35 only whitespace.
36
37 Any line ending in a \e is "continued" on the next line in the
38 customary UNIX fashion.
39
40 The values following the equals sign in parameters are all either a string
41 (no quotes needed) or a boolean, which may be given as yes/no, 0/1 or
42 true/false. Case is not significant in boolean values, but is preserved
43 in string values. Some items such as create modes are numeric.
44 .SH SERVICE DESCRIPTIONS
45 Each section in the configuration file describes a service. The section name
46 is the service name and the parameters within the section define the service's
47 attributes.
48
49 There are three special sections, [global], [homes] and [printers], which are
50 described under 'special sections'. The following notes apply to ordinary 
51 service descriptions.
52
53 A service consists of a directory to which access is being given plus a 
54 description of the access rights which are granted to the user of the 
55 service. Some housekeeping options are also specifiable.
56
57 Services are either filespace services (used by the client as an extension of
58 their native file systems) or printable services (used by the client to access
59 print services on the host running the server).
60
61 Services may be guest services, in which case no password is required to
62 access them. A specified guest account is used to define access privileges
63 in this case.
64
65 Services other than guest services will require a password to access
66 them. The client provides the username. As many clients only provide
67 passwords and not usernames, you may specify a list of usernames to
68 check against the password using the "user=" option in the service
69 definition. 
70
71 Note that the access rights granted by the server are masked by the access
72 rights granted to the specified or guest user by the host system. The 
73 server does not grant more access than the host system grants.
74
75 The following sample section defines a file space service. The user has write
76 access to the path /home/bar. The service is accessed via the service name 
77 "foo":
78
79         [foo]
80                 path = /home/bar
81                 writable = true
82
83 The following sample section defines a printable service. The service is 
84 readonly, but printable. That is, the only write access permitted is via 
85 calls to open, write to and close a spool file. The 'guest ok' parameter 
86 means access will be permitted as the default guest user (specified elsewhere):
87
88         [aprinter]
89                 path = /usr/spool/public
90                 read only = true
91                 printable = true
92                 public = true
93 .SH SPECIAL SECTIONS
94
95 .SS The [global] section
96 .RS 3
97 Parameters in this section apply to the server as a whole, or are defaults
98 for services which do not specifically define certain items. See the notes
99 under 'Parameters' for more information.
100 .RE
101
102 .SS The [homes] section
103 .RS 3
104 If a section called 'homes' is included in the configuration file, services
105 connecting clients to their home directories can be created on the fly by the
106 server.
107
108 When the connection request is made, the existing services are scanned. If a
109 match is found, it is used. If no match is found, the requested service name is
110 treated as a user name and looked up in the local passwords file. If the
111 name exists and the correct password has been given, a service is created
112 by cloning the [homes] section.
113
114 Some modifications are then made to the newly created section:
115
116 .RS 3
117 The service name is changed from 'homes' to the located username
118
119 If no path was given, the path is set to the user's home directory.
120 .RE
121
122 If you decide to use a path= line in your [homes] section then you may
123 find it useful to use the %S macro. For example path=/data/pchome/%S
124 would be useful if you have different home directories for your PCs
125 than for UNIX access.
126
127 This is a fast and simple way to give a large number of clients access to
128 their home directories with a minimum of fuss.
129
130 A similar process occurs if the requested service name is "homes", except that
131 the service name is not changed to that of the requesting user. This method
132 of using the [homes] section works well if different users share a client PC.
133
134 The [homes] section can specify all the parameters a normal service section
135 can specify, though some make more sense than others. The following is a 
136 typical and suitable [homes] section:
137
138         [homes]
139                 writable = yes
140
141 An important point:
142
143 .RS 3
144 If guest access is specified in the [homes] section, all home directories will
145 be accessible to all clients
146 .B without a password.
147 In the very unlikely event
148 that this is actually desirable, it would be wise to also specify read only
149 access.
150 .RE
151 .RE
152
153 Note that the browseable flag for auto home directories will be
154 inherited from the global browseable flag, not the [homes] browseable
155 flag. This is useful as it means setting browseable=no in the [homes]
156 section will hide the [homes] service but make any auto home
157 directories visible.
158
159 .SS The [printers] section
160 .RS 3
161 This section works like [homes], but for printers.
162
163 If a [printers] section occurs in the configuration file, users are able 
164 to connect to any printer specified in the local host's printcap file.
165
166 When a connection request is made, the existing services are scanned. If a
167 match is found, it is used. If no match is found, but a [homes] section
168 exists, it is used as described above. Otherwise, the requested service name is
169 treated as a printer name and the appropriate printcap file is scanned to
170 see if the requested service name is a valid printer name. If a match is
171 found, a new service is created by cloning the [printers] section.
172
173 A few modifications are then made to the newly created section:
174
175 .RS 3
176 The service name is set to the located printer name
177
178 If no printer name was given, the printer name is set to the located printer
179 name
180
181 If the service does not permit guest access and no username was given, the 
182 username is set to the located printer name.
183 .RE
184
185 Note that the [printers] service MUST be printable - if you specify otherwise,
186 the server will refuse to load the configuration file.
187
188 Typically the path specified would be that of a world-writable spool directory
189 with the sticky bit set on it. A typical [printers] entry would look like this:
190
191         [printers]
192                 path = /usr/spool/public
193                 writable = no
194                 public = yes
195                 printable = yes 
196
197 All aliases given for a printer in the printcap file are legitimate printer
198 names as far as the server is concerned. If your printing subsystem doesn't
199 work like that, you will have to set up a pseudo-printcap. This is a file
200 consisting of one or more lines like this:
201
202         alias|alias|alias|alias...
203
204 Each alias should be an acceptable printer name for your printing 
205 subsystem. In the [global] section, specify the new file as your printcap.
206 The server will then only recognise names found in your pseudo-printcap,
207 which of course can contain whatever aliases you like. The same technique
208 could be used simply to limit access to a subset of your local printers.
209
210 An alias, by the way, is defined as any component of the first entry of a 
211 printcap record. Records are separated by newlines, components (if there are 
212 more than one) are separated by vertical bar symbols ("|").
213 .RE
214 .SH PARAMETERS
215 Parameters define the specific attributes of services.
216
217 Some parameters are specific to the [global] section (eg., security).
218 Some parameters are usable in all sections (eg., create mode). All others are
219 permissible only in normal sections. For the purposes of the following
220 descriptions the [homes] and [printers] sections will be considered normal.
221 The letter 'G' in parentheses indicates that a parameter is specific to the
222 [global] section. The letter 'S' indicates that a parameter can be
223 specified in a service specific section. Note that all S parameters
224 can also be specified in the [global] section - in which case they
225 will define the default behaviour for all services.
226
227 Parameters are arranged here in alphabetical order - this may not create
228 best bedfellows, but at least you can find them! Where there are synonyms,
229 the preferred synonym is described, others refer to the preferred synonym.
230
231 .SS VARIABLE SUBSTITUTIONS
232
233 Many of the strings that are settable in the config file can take
234 substitutions. For example the option "path = /tmp/%u" would be
235 interpreted as "path = /tmp/john" if the user connected with the
236 username john.
237
238 These substitutions are mostly noted in the descriptions below, but
239 there are some general substitutions which apply whenever they might be
240 relevant. These are:
241
242 %S = the name of the current service, if any
243
244 %P = the root directory of the current service, if any
245
246 %u = user name of the current service, if any
247
248 %g = primary group name of %u
249
250 %U = session user name (the user name that the client wanted, not
251 necessarily the same as the one they got)
252
253 %G = primary group name of %U
254
255 %H = the home directory of the user given by %u
256
257 %v = the Samba version
258
259 %h = the hostname that Samba is running on
260
261 %m = the netbios name of the client machine (very useful)
262
263 %L = the netbios name of the server. This allows you to change your
264 config based on what the client calls you. Your server can have a "dual
265 personality".
266
267 %M = the internet name of the client machine
268
269 %d = The process id of the current server process
270
271 %a = the architecture of the remote machine. Only some are recognised,
272 and those may not be 100% reliable. It currently recognises Samba,
273 WfWg, WinNT and Win95. Anything else will be known as "UNKNOWN". If it
274 gets it wrong then sending me a level 3 log should allow me to fix it.
275
276 %I = The IP address of the client machine
277
278 %T = the current date and time
279
280 There are some quite creative things that can be done with these
281 substitutions and other smb.conf options.
282
283 .SS NAME MANGLING
284
285 Samba supports "name mangling" so that DOS and Windows clients can use
286 files that don't conform to the 8.3 format. It can also be set to adjust
287 the case of 8.3 format filenames.
288
289 There are several options that control the way mangling is performed,
290 and they are grouped here rather than listed separately. For the
291 defaults look at the output of the testparm program.
292
293 All of these options can be set separately for each service (or
294 globally, of course).
295
296 The options are:
297
298 "mangle case = yes/no" controls if names that have characters that
299 aren't of the "default" case are mangled. For example, if this is yes
300 then a name like "Mail" would be mangled. Default no.
301
302 "case sensitive = yes/no" controls whether filenames are case
303 sensitive. If they aren't then Samba must do a filename search and
304 match on passed names. Default no.
305
306 "default case = upper/lower" controls what the default case is for new
307 filenames. Default lower.
308
309 "preserve case = yes/no" controls if new files are created with the
310 case that the client passes, or if they are forced to be the "default"
311 case. Default no.
312
313 "short preserve case = yes/no" controls if new files which conform to 8.3
314 syntax, that is all in upper case and of suitable length, are created
315 upper case, or if they are forced to be the "default" case. This option can
316 be use with "preserve case = yes" to permit long filenames to retain their
317 case, while short names are lowered. Default no.
318
319 .SS COMPLETE LIST OF GLOBAL PARAMETERS
320
321 Here is a list of all global parameters. See the section of each
322 parameter for details.  Note that some are synonyms.
323
324 auto services
325
326 browse list
327
328 character set
329
330 config file
331
332 deadtime
333
334 debuglevel
335
336 default
337
338 default service
339
340 dfree command
341
342 domain controller
343
344 domain master
345
346 encrypt passwords
347
348 getwd cache
349
350 homedir map
351
352 hosts equiv
353
354 include
355
356 keepalive
357
358 lock dir
359
360 load printers
361
362 local master
363
364 lock directory
365
366 log file
367
368 log level
369
370 logon path
371
372 logon script
373
374 lpq cache time
375
376 mangled stack
377
378 max log size
379
380 max mux
381
382 max packet
383
384 max ttl
385
386 max xmit
387
388 message command
389
390 netbios name
391
392 nis homedir
393
394 null passwords
395
396 os level
397
398 packet size
399
400 passwd chat
401
402 passwd program
403
404 password level
405
406 password server
407
408 preferred master
409
410 preload
411
412 printing
413
414 printcap name
415
416 protocol
417
418 read bmpx
419
420 read prediction
421
422 read raw
423
424 read size
425
426 remote announce
427
428 root
429
430 root dir
431
432 root directory
433
434 security
435
436 server string
437
438 shared file entries
439
440 shared mem size
441
442 smb passwd file
443
444 smbrun
445
446 socket address
447
448 socket options
449
450 status
451
452 strip dot
453
454 syslog
455
456 syslog only
457
458 time offset
459
460 unix realname
461
462 username map
463
464 use rhosts
465
466 valid chars
467
468 workgroup
469
470 write raw
471
472 .SS COMPLETE LIST OF SERVICE PARAMETERS
473
474 Here is a list of all service parameters. See the section of each
475 parameter for details. Note that some are synonyms.
476
477 admin users
478
479 allow hosts
480
481 alternate permissions
482
483 available
484
485 browseable
486
487 case sensitive
488
489 case sig names
490
491 copy
492
493 create mask
494
495 create mode
496
497 comment
498
499 default case
500
501 delete readonly
502
503 deny hosts
504
505 directory
506
507 directory mask
508
509 directory mode
510
511 dont descend
512
513 exec
514
515 fake oplocks
516
517 force group
518
519 force user
520
521 guest account
522
523 guest ok
524
525 guest only
526
527 hide dot files
528
529 hosts allow
530
531 hosts deny
532
533 invalid users
534
535 locking
536
537 lppause command
538
539 lpq command
540
541 lpresume command
542
543 lprm command
544
545 magic output
546
547 magic script
548
549 mangle case
550
551 mangled names
552
553 mangling char
554
555 map archive
556
557 map hidden
558
559 map system
560
561 max connections
562
563 min print space
564
565 only guest
566
567 only user
568
569 path
570
571 postexec
572
573 postscript
574
575 preserve case
576
577 print command
578
579 printer driver
580
581 print ok
582
583 printable
584
585 printer
586
587 printer name
588
589 public
590
591 read only
592
593 read list
594
595 revalidate
596
597 root postexec
598
599 root preexec
600
601 set directory
602
603 share modes
604
605 short preserve case
606
607 strict locking
608
609 sync always
610
611 user
612
613 username
614
615 users
616
617 valid users
618
619 volume
620
621 wide links
622
623 writable
624
625 write ok
626
627 writeable
628
629 write list
630
631 .SS EXPLANATION OF EACH PARAMETER
632 .RS 3
633
634 .SS admin users (G)
635
636 This is a list of users who will be granted administrative privileges
637 on the share. This means that they will do all file operations as the
638 super-user (root).
639
640 You should use this option very carefully, as any user in this list
641 will be able to do anything they like on the share, irrespective of
642 file permissions.
643
644 .B Default:
645         no admin users
646
647 .B Example:
648         admin users = jason
649
650 .SS auto services (G)
651 This is a list of services that you want to be automatically added to
652 the browse lists. This is most useful for homes and printers services
653 that would otherwise not be visible.
654
655 Note that if you just want all printers in your printcap file loaded
656 then the "load printers" option is easier.
657
658 .B Default:
659         no auto services
660
661 .B Example:
662         auto services = fred lp colorlp
663
664 .SS allow hosts (S)
665 A synonym for this parameter is 'hosts allow'.
666
667 This parameter is a comma delimited set of hosts which are permitted to access
668 a services. If specified in the [global] section, matching hosts will be
669 allowed access to any service that does not specifically exclude them from
670 access. Specific services my have their own list, which override those
671 specified in the [global] section.
672
673 You can specify the hosts by name or IP number. For example, you could
674 restrict access to only the hosts on a Class C subnet with something like
675 "allow hosts = 150.203.5.". The full syntax of the list is described in
676 the man page
677 .BR hosts_access (5).
678
679 You can also specify hosts by network/netmask pairs and by netgroup
680 names if your system supports netgroups. The EXCEPT keyword can also
681 be used to limit a wildcard list. The following examples may provide
682 some help:
683
684 Example 1: allow all IPs in 150.203.*.* except one
685
686         hosts allow = 150.203. EXCEPT 150.203.6.66
687
688 Example 2: allow hosts that match the given network/netmask
689
690         hosts allow = 150.203.15.0/255.255.255.0
691
692 Example 3: allow a couple of hosts
693
694         hosts allow = lapland, arvidsjaur
695
696 Example 4: allow only hosts in netgroup "foonet" or localhost, but 
697 deny access from one particular host
698
699         hosts allow = @foonet, localhost
700         hosts deny = pirate
701
702 Note that access still requires suitable user-level passwords.
703
704 See
705 .BR testparm (1)
706 for a way of testing your host access to see if it
707 does what you expect.
708
709 .B Default:
710         none (i.e., all hosts permitted access)
711
712 .B Example:
713         allow hosts = 150.203.5. myhost.mynet.edu.au
714
715 .SS alternate permissions (S)
716
717 This option affects the way the "read only" DOS attribute is produced
718 for UNIX files. If this is false then the read only bit is set for
719 files on writeable shares which the user cannot write to.
720
721 If this is true then it is set for files whos user write bit is not set.
722
723 The latter behaviour is useful for when users copy files from each
724 others directories, and use a file manager that preserves
725 permissions. Without this option they may get annoyed as all copied
726 files will have the "read only" bit set.
727
728 .B Default:
729         alternate permissions = no
730
731 .B Example:
732         alternate permissions = yes
733
734 .SS available (S)
735 This parameter lets you 'turn off' a service. If 'available = no', then
736 ALL attempts to connect to the service will fail. Such failures are logged.
737
738 .B Default:
739         available = yes
740
741 .B Example:
742         available = no
743 .SS browseable (S)
744 This controls whether this share is seen in the list of available
745 shares in a net view and in the browse list.
746
747 .B Default:
748         browseable = Yes
749
750 .B Example: 
751         browseable = No
752 .SS browse list(G)
753 This controls whether the smbd will serve a browse list to a client
754 doing a NetServerEnum call. Normally set to true. You should never
755 need to change this.
756
757 .B Default:
758         browse list = Yes
759
760 .SS case sensitive (G)
761 See the discussion on NAME MANGLING.
762
763 .SS case sig names (G)
764 See "case sensitive"
765
766 .SS character set (G)
767 This allows a smbd to map incoming characters from a DOS 850 Code page
768 to either a Western European (ISO8859-1) or Easter European (ISO8859-2)
769 code page. Normally not set, meaning no filename translation is done.
770
771 .B Default
772
773         character set =
774
775 .B Example
776
777         character set = iso8859-1
778
779 .SS comment (S)
780 This is a text field that is seen when a client does a net view to
781 list what shares are available. It will also be used when browsing is
782 fully supported.
783
784 .B Default:
785         No comment string
786
787 .B Example:
788         comment = Fred's Files
789
790 .SS config file (G)
791
792 This allows you to override the config file to use, instead of the
793 default (usually smb.conf). There is a chicken and egg problem here as
794 this option is set in the config file! 
795
796 For this reason, if the name of the config file has changed when the
797 parameters are loaded then it will reload them from the new config
798 file.
799
800 This option takes the usual substitutions, which can be very useful.
801
802 If the config file doesn't exist then it won't be loaded (allowing
803 you to special case the config files of just a few clients).
804
805 .B Example:
806         config file = /usr/local/samba/lib/smb.conf.%m
807
808 .SS copy (S)
809 This parameter allows you to 'clone' service entries. The specified
810 service is simply duplicated under the current service's name. Any 
811 parameters specified in the current section will override those in the
812 section being copied.
813
814 This feature lets you set up a 'template' service and create similar 
815 services easily. Note that the service being copied must occur earlier 
816 in the configuration file than the service doing the copying.
817
818 .B Default:
819         none
820
821 .B Example:
822         copy = otherservice
823 .SS create mask (S)
824 A synonym for this parameter is 'create mode'.
825
826 This parameter is the octal modes which are used when converting DOS modes 
827 to UNIX modes.
828
829 Note that Samba will or this value with 0700 as you must have at least
830 user read, write and execute for Samba to work properly.
831
832 .B Default:
833         create mask = 0644
834
835 .B Example:
836         create mask = 0775
837 .SS create mode (S)
838 See
839 .B create mask.
840 .SS dead time (G)
841 The value of the parameter (a decimal integer) represents the number of
842 minutes of inactivity before a connection is considered dead, and it
843 is disconnected. The deadtime only takes effect if the number of open files
844 is zero.
845
846 This is useful to stop a server's resources being exhausted by a large
847 number of inactive connections.
848
849 Most clients have an auto-reconnect feature when a connection is broken so
850 in most cases this parameter should be transparent to users.
851
852 Using this parameter with a timeout of a few minutes is recommended
853 for most systems.
854
855 A deadtime of zero indicates that no auto-disconnection should be performed.
856
857 .B Default:
858         dead time = 0
859
860 .B Example:
861         dead time = 15
862 .SS debug level (G)
863 The value of the parameter (an integer) allows the debug level
864 (logging level) to be specified in the
865 .B smb.conf
866 file. This is to give
867 greater flexibility in the configuration of the system.
868
869 The default will be the debug level specified on the command line.
870
871 .B Example:
872         debug level = 3
873 .SS default (G)
874 See
875 .B default service.
876 .SS default case (S)
877
878 See the section on "NAME MANGLING" Also note the addition of "short
879 preserve case"
880
881 .SS default service (G)
882 A synonym for this parameter is 'default'.
883
884 This parameter specifies the name of a service which will be connected to
885 if the service actually requested cannot be found. Note that the square
886 brackets are NOT given in the parameter value (see example below).
887
888 There is no default value for this parameter. If this parameter is not given,
889 attempting to connect to a nonexistent service results in an error.
890
891 Typically the default service would be a public, read-only service.
892
893 Also note that as of 1.9.14 the apparent service name will be changed to
894 equal that of the requested service, this is very useful as it allows
895 you to use macros like %S to make a wildcard service.
896
897 Note also that any _ characters in the name of the service used in the
898 default service will get mapped to a /. This allows for interesting
899 things.
900
901
902 .B Example:
903         default service = pub
904         
905         [pub]
906              path = /%S
907           
908
909 .SS delete readonly (S)
910 This parameter allows readonly files to be deleted.  This is not normal DOS
911 semantics, but is allowed by UNIX.
912
913 This option may be useful for running applications such as rcs, where UNIX
914 file ownership prevents changing file permissions, and DOS semantics prevent
915 deletion of a read only file.
916
917 .B Default:
918         delete readonly = No
919
920 .B Example:
921         delete readonly = Yes
922 .SS deny hosts (S)
923 A synonym for this parameter is 'hosts deny'.
924
925 The opposite of 'allow hosts' - hosts listed here are NOT permitted
926 access to services unless the specific services have their own lists to
927 override this one. Where the lists conflict, the 'allow' list takes precedence.
928
929 .B Default:
930         none (i.e., no hosts specifically excluded)
931
932 .B Example:
933         deny hosts = 150.203.4. badhost.mynet.edu.au
934 .SS dfree command (G)
935 The dfree command setting should only be used on systems where a
936 problem occurs with the internal disk space calculations. This has
937 been known to happen with Ultrix, but may occur with other operating
938 systems. The symptom that was seen was an error of "Abort Retry
939 Ignore" at the end of each directory listing.
940
941 This setting allows the replacement of the internal routines to
942 calculate the total disk space and amount available with an external
943 routine. The example below gives a possible script that might fulfill
944 this function. 
945
946 The external program will be passed a single parameter indicating a
947 directory in the filesystem being queried. This will typically consist
948 of the string "./". The script should return two integers in ascii. The
949 first should be the total disk space in blocks, and the second should
950 be the number of available blocks. An optional third return value
951 can give the block size in bytes. The default blocksize is 1024 bytes.
952
953 Note: Your script should NOT be setuid or setgid and should be owned by
954 (and writable only by) root!
955
956 .B Default:
957         By default internal routines for determining the disk capacity
958 and remaining space will be used.
959
960 .B Example:
961         dfree command = /usr/local/samba/bin/dfree
962
963         Where the script dfree (which must be made executable) could be
964
965 .nf
966         #!/bin/sh
967         df $1 | tail -1 | awk '{print $2" "$4}'
968 .fi
969
970         or perhaps (on Sys V)
971
972 .nf
973         #!/bin/sh
974         /usr/bin/df -k $1 | tail -1 | awk '{print $3" "$5}'
975 .fi
976
977         Note that you may have to replace the command names with full
978 path names on some systems.
979 .SS directory (S)
980 See
981 .B path.
982
983 .SS directory mask (S)
984 A synonym for this parameter is 'directory mode'.
985
986 This parameter is the octal modes which are used when converting DOS modes 
987 to UNIX modes when creating UNIX directories.
988
989 Note that Samba will bit-wise 'OR' this value with 0700 as you must have at
990 least user read, write and execute for Samba to work properly.
991
992 .B Default:
993         directory mask = 0755
994
995 .B Example:
996         directory mask = 0775
997 .SS directory mode (S)
998 See
999 .B directory mask.
1000 .SS domain controller (G)
1001
1002 Specifies the DNS name or IP address of the machine to refer domain 
1003 logons from Win95 machines to. You should never need to set this parameter.
1004
1005 .B Default:
1006         domain controller =
1007
1008 .SS domain master (G)
1009
1010 Enable WAN-wide browse list collation.  Local master browsers on 
1011 broadcast-isolated subnets will give samba their local browse lists, and 
1012 ask for a complete copy of the browse list for the whole wide area network.
1013 Browser clients will then contact their local master browser, and will
1014 receive the domain-wide browse list, instead of just the list for their
1015 broadcast-isolated subnet.
1016
1017 .B Default:
1018         domain master = no
1019
1020 .SS dont descend (S)
1021 There are certain directories on some systems (eg., the /proc tree under
1022 Linux) that are either not of interest to clients or are infinitely deep
1023 (recursive). This parameter allows you to specify a comma-delimited list
1024 of directories that the server should always show as empty.
1025
1026 Note that Samba can be very fussy about the exact format of the "dont
1027 descend" entries. For example you may need "./proc" instead of just
1028 "/proc". Experimentation is the best policy :-)
1029
1030 .B Default:
1031         none (i.e., all directories are OK to descend)
1032
1033 .B Example:
1034         dont descend = /proc,/dev
1035
1036 .SS encrypt passwords (G)
1037
1038 This boolean controls whether encrypted passwords will be negotiated
1039 with the client. Note that this option has no effect if you haven't
1040 compiled in the necessary des libraries and encryption code. It
1041 defaults to no.
1042
1043 .SS exec (S)
1044
1045 This is an alias for preexec
1046
1047 .SS fake oplocks (S)
1048
1049 Oplocks are the way that SMB clients get permission from a server to
1050 locally cache file operations. If a server grants an oplock
1051 (opportunistic lock) then the client is free to assume that it is the
1052 only one accessing the file and it will aggressively cache file
1053 data. With some oplock types the client may even cache file open/close
1054 operations. This can give enormous performance benefits.
1055
1056 Samba does not support opportunistic locks because they are very
1057 difficult to do under Unix. Samba can fake them, however, by granting
1058 a oplock whenever a client asks for one. This is controlled using the
1059 smb.conf option "fake oplocks". If you set "fake oplocks = yes" then
1060 you are telling the client that it may aggressively cache the file
1061 data.
1062
1063 By enabling this option on all read-only shares or shares that you know
1064 will only be accessed from one client at a time you will see a big
1065 performance improvement on many operations. If you enable this option
1066 on shares where multiple clients may be accessing the files read-write
1067 at the same time you can get data corruption. Use this option
1068 carefully! 
1069
1070 This option is disabled by default.
1071
1072
1073 .SS force group (S)
1074 This specifies a group name that all connections to this service
1075 should be made as. This may be useful for sharing files.
1076
1077 .B Default:
1078        no forced group
1079
1080 .B Example:
1081        force group = agroup
1082
1083 .SS force user (S)
1084 This specifies a user name that all connections to this service
1085 should be made as. This may be useful for sharing files. You should
1086 also use it carefully as using it incorrectly can cause security
1087 problems.
1088
1089 This user name only gets used once a connection is established. Thus
1090 clients still need to connect as a valid user and supply a valid
1091 password. Once connected, all file operations will be performed as the
1092 "forced user", not matter what username the client connected as.
1093
1094 .B Default:
1095        no forced user
1096
1097 .B Example:
1098        force user = auser
1099
1100 .SS getwd cache (G)
1101 This is a tuning option. When this is enabled a cacheing algorithm will
1102 be used to reduce the time taken for getwd() calls. This can have a
1103 significant impact on performance, especially when widelinks is False.
1104
1105 .B Default:
1106         getwd cache = No
1107
1108 .B Example:
1109         getwd cache = Yes
1110
1111 .SS group (S)
1112 This is an alias for "force group" and is only kept for compatibility
1113 with old versions of Samba. It may be removed in future versions.
1114
1115 .SS guest account (S)
1116 This is a username which will be used for access to services which are
1117 specified as 'guest ok' (see below). Whatever privileges this user has
1118 will be available to any client connecting to the guest
1119 service. Typically this user will exist in the password file, but will
1120 not have a valid login. If a username is specified in a given service,
1121 the specified username overrides this one.
1122
1123 One some systems the account "nobody" may not be able to print. Use
1124 another account in this case. You should test this by trying to log in
1125 as your guest user (perhaps by using the "su \-" command) and trying to
1126 print using
1127 .BR lpr .
1128
1129 Note that as of version 1.9 of Samba this option may be set
1130 differently for each service.
1131
1132 .B Default:
1133         specified at compile time
1134
1135 .B Example:
1136         guest account = nobody
1137 .SS guest ok (S)
1138 See
1139 .B public.
1140 .SS guest only (S)
1141 If this parameter is 'yes' for a service, then only guest connections to the
1142 service are permitted. This parameter will have no affect if "guest ok" or
1143 "public" is not set for the service.
1144
1145 See the section below on user/password validation for more information about
1146 this option.
1147
1148 .B Default:
1149         guest only = no
1150
1151 .B Example:
1152         guest only = yes
1153 .SS hide dot files (S)
1154 This is a boolean parameter that controls whether files starting with
1155 a dot appear as hidden files.
1156
1157 .B Default:
1158         hide dot files = yes
1159
1160 .B Example:
1161         hide dot files = no
1162 .SS homedir map (G)
1163 If "nis homedir" is true, this parameter specifies the NIS (or YP) map
1164 from which the server for the user's home directory should be extracted.
1165 At present, only the Sun auto.home map format is understood. The form of
1166 the map is:
1167
1168 username        server:/some/file/system
1169
1170 and the program will extract the servername from before the first ':'.
1171 There should probably be a better parsing system that copes with different
1172 map formats and also Amd (another automounter) maps.
1173
1174 NB: The -DNETGROUP option is required in the Makefile for option to work
1175 and on some architectures the line -lrpcsvc needs to be added to the
1176 LIBSM variable. This is required for Solaris 2, FreeBSD and HPUX.
1177
1178 See also "nis homedir"
1179
1180 .B Default:
1181         homedir map = auto.home
1182
1183 .B Example:
1184         homedir map = amd.homedir
1185 .SS hosts allow (S)
1186 See
1187 .B allow hosts.
1188 .SS hosts deny (S)
1189 See
1190 .B deny hosts.
1191
1192 .SS hosts equiv (G)
1193 If this global parameter is a non-null string, it specifies the name of
1194 a file to read for the names of hosts and users who will be allowed access
1195 without specifying a password.
1196
1197 This is not be confused with 
1198 .B allow hosts
1199 which is about hosts access to services and is more useful for guest services.
1200 .B hosts equiv
1201 may be useful for NT clients which will not supply passwords to samba.
1202
1203 NOTE: The use of hosts.equiv can be a major security hole. This is
1204 because you are trusting the PC to supply the correct username. It is
1205 very easy to get a PC to supply a false username. I recommend that the
1206 hosts.equiv option be only used if you really know what you are doing,
1207 or perhaps on a home network where you trust your wife and kids :-)
1208
1209 .B Default
1210         No host equivalences
1211
1212 .B Example
1213         hosts equiv = /etc/hosts.equiv
1214
1215 .SS include (G)
1216
1217 This allows you to include one config file inside another.  The file is
1218 included literally, as though typed in place.
1219
1220 It takes the standard substitutions, except %u, %P and %S
1221
1222 .SS interfaces (G)
1223
1224 This option allows you to setup multiple network interfaces, so that
1225 Samba can properly handle browsing on all interfaces.
1226
1227 The option takes a list of ip/netmask pairs. The netmask may either be
1228 a bitmask, or a bitlength. 
1229
1230 For example, the following line:
1231
1232 interfaces = 192.168.2.10/24 192.168.3.10/24
1233
1234 would configure two network interfaces with IP addresses 192.168.2.10
1235 and 192.168.3.10. The netmasks of both interfaces would be set to
1236 255.255.255.0. 
1237
1238 You could produce an equivalent result by using:
1239
1240 interfaces = 192.168.2.10/255.255.255.0 192.168.3.10/255.255.255.0
1241
1242 if you prefer that format.
1243
1244 If this option is not set then Samba will attempt to find a primary
1245 interface, but won't attempt to configure more than one interface.
1246
1247 .SS invalid users (S)
1248 This is a list of users that should not be allowed to login to this
1249 service. This is really a "paranoid" check to absolutely ensure an
1250 improper setting does not breach your security.
1251
1252 A name starting with @ is interpreted as a UNIX group.
1253
1254 The current servicename is substituted for %S. This is useful in the
1255 [homes] section.
1256
1257 See also "valid users"
1258
1259 .B Default
1260         No invalid users
1261
1262 .B Example
1263         invalid users = root fred admin @wheel
1264
1265 .SS keep alive (G)
1266 The value of the parameter (an integer) represents the number of seconds 
1267 between 'keepalive' packets. If this parameter is zero, no keepalive packets
1268 will be sent. Keepalive packets, if sent, allow the server to tell whether a
1269 client is still present and responding.
1270
1271 Keepalives should, in general, not be needed if the socket being used
1272 has the SO_KEEPALIVE attribute set on it (see "socket
1273 options"). Basically you should only use this option if you strike
1274 difficulties.
1275
1276 .B Default:
1277         keep alive = 0
1278
1279 .B Example:
1280         keep alive = 60
1281 .SS load printers (G)
1282 A boolean variable that controls whether all printers in the printcap
1283 will be loaded for browsing by default. 
1284
1285 .B Default:
1286         load printers = no
1287
1288 .B Example:
1289         load printers = yes
1290
1291 .SS local master (G)
1292 This option allows the nmbd to become a local master browser on a
1293 subnet. If set to False then nmbd will not attempt to become a local
1294 master browser on a subnet and will also lose in all browsing elections. 
1295 By default this value is set to true. Setting this value to true doesn't 
1296 mean that Samba will become the local master browser on a subnet, just 
1297 that the nmbd will participate in elections for local master browser.
1298
1299 .B Default:
1300         local master = yes
1301
1302 .SS lock directory (G)
1303 This option specifies the directory where lock files will be placed.
1304 The lock files are used to implement the "max connections" option.
1305
1306 .B Default:
1307         lock directory = /tmp/samba
1308
1309 .B Example: 
1310         lock directory = /usr/local/samba/var/locks
1311 .SS locking (S)
1312 This controls whether or not locking will be performed by the server in 
1313 response to lock requests from the client.
1314
1315 If "locking = no", all lock and unlock requests will appear to succeed and 
1316 all lock queries will indicate that the queried lock is clear.
1317
1318 If "locking = yes", real locking will be performed by the server.
1319
1320 This option may be particularly useful for read-only filesystems which
1321 do not need locking (such as cdrom drives).
1322
1323 Be careful about disabling locking either globally or in a specific
1324 service, as lack of locking may result in data corruption.
1325
1326 .B Default:
1327         locking = yes
1328
1329 .B Example:
1330         locking = no
1331
1332 .SS log file (G)
1333
1334 This options allows you to override the name of the Samba log file
1335 (also known as the debug file).
1336
1337 This option takes the standard substitutions, allowing you to have
1338 separate log files for each user or machine.
1339
1340 .B Example:
1341         log file = /usr/local/samba/var/log.%m
1342
1343 .SS log level (G)
1344 see "debug level"
1345
1346 .SS logon path (G)
1347
1348 This parameter specifies the home directory where roaming profiles 
1349 (USER.DAT / USER.MAN files) are stored.
1350
1351 This option takes the standard substitutions, allowing you to have
1352 separate logon scripts for each user or machine.  It also specifies
1353 the directory from which the "desktop", "start menu", "nethood" and
1354 "programs" folders, and their contents, are loaded and displayed
1355 on your Windows 95 client.
1356
1357 The share and the path must be readable by the user for the preferences
1358 and directories to be loaded onto the Windows 95 client.  The share
1359 must be writeable when the logs in for the first time, in order that
1360 the Windows 95 client can create the user.dat and other directories.
1361
1362 Thereafter, the directories and any of contents can, if required,
1363 be made read-only.  It is not adviseable that the USER.DAT file be made
1364 read-only - rename it to USER.MAN to achieve the desired effect
1365 (a MANdatory profile).
1366
1367 .B Default:
1368         logon path = \\\\%L\\%U 
1369
1370 .B Example:
1371         logon path = \\\\PROFILESERVER\\HOME_DIR\\%U
1372
1373 .SS logon script (G)
1374
1375 This parameter specifies the batch file (.bat) or NT command file (.cmd)
1376 to be downloaded and run on a machine when a user successfully logs in.
1377 The file must contain the DOS style cr/lf line endings.  Using a DOS-style
1378 editor to create the file is recommended.
1379
1380 The script must be a relative path to the [netlogon] service.  If the
1381 [netlogon] service specifies a path of /usr/local/samba/netlogon, and
1382 logon script = STARTUP.BAT, then file that will be downloaded is:
1383
1384 .B /usr/local/samba/netlogon/STARTUP.BAT
1385
1386 The contents of the batch file is entirely your choice.  A suggested
1387 command would be to add NET TIME \\\\SERVER /SET /YES, to force every
1388 machine to synchronise clocks with the same time server.  Another use
1389 would be to add NET USE U: \\\\SERVER\\UTILS for commonly used utilities,
1390 or NET USE Q: \\\\SERVER\\ISO9001_QA.
1391
1392 Note that it is particularly important not to allow write access to
1393 the [netlogon] share, or to grant users write permission on the
1394 batch files in a secure environment, as this would allow the batch
1395 files to be arbitrarily modified.
1396
1397 .B
1398 This option takes the standard substitutions, allowing you to have
1399 separate logon scripts for each user or machine.
1400
1401 .B Example:
1402         logon script = scripts/%U.bat
1403
1404 .SS lppause command (S)
1405 This parameter specifies the command to be executed on the server host in
1406 order to stop printing or spooling a specific print job.
1407
1408 This command should be a program or script which takes a printer name and
1409 job number to pause the print job. Currently I don't know of any print
1410 spooler system that can do this with a simple option, except for the PPR
1411 system from Trinity College (ppr\-dist.trincoll.edu/pub/ppr). One way
1412 of implementing this is by using job priorities, where jobs having a too
1413 low priority won't be sent to the printer. See also the
1414 .B lppause
1415 command.
1416
1417 If a %p is given then the printername is put in its place. A %j is
1418 replaced with the job number (an integer).
1419 On HPUX (see printing=hpux), if the -p%p option is added to the lpq
1420 command, the job will show up with the correct status, i.e. if the job
1421 priority is lower than the set fence priority it will have the PAUSED
1422 status, whereas if the priority is equal or higher it will have the
1423 SPOOLED or PRINTING status.
1424
1425 Note that it is good practice to include the absolute path in the lppause
1426 command as the PATH may not be available to the server.
1427
1428 .B Default:
1429         Currently no default value is given to this string
1430
1431 .B Example for HPUX:
1432         lppause command = /usr/bin/lpalt %p-%j -p0
1433
1434 .SS lpq cache time (G)
1435
1436 This controls how long lpq info will be cached for to prevent the lpq
1437 command being called too often. A separate cache is kept for each
1438 variation of the lpq command used by the system, so if you use
1439 different lpq commands for different users then they won't share cache
1440 information.
1441
1442 The cache files are stored in /tmp/lpq.xxxx where xxxx is a hash
1443 of the lpq command in use.
1444
1445 The default is 10 seconds, meaning that the cached results of a
1446 previous identical lpq command will be used if the cached data is less
1447 than 10 seconds old. A large value may be advisable if your lpq
1448 command is very slow.
1449
1450 A value of 0 will disable cacheing completely.
1451
1452 .B Default:
1453         lpq cache time = 10
1454
1455 .B Example:
1456         lpq cache time = 30
1457
1458 .SS lpq command (S)
1459 This parameter specifies the command to be executed on the server host in
1460 order to obtain "lpq"-style printer status information. 
1461
1462 This command should be a program or script which takes a printer name
1463 as its only parameter and outputs printer status information. 
1464
1465 Currently six styles of printer status information are supported; BSD,
1466 SYSV, AIX, HPUX, QNX, LPRNG and PLP. This covers most UNIX systems. You
1467 control which type is expected using the "printing =" option.
1468
1469 Some clients (notably Windows for Workgroups) may not correctly send the
1470 connection number for the printer they are requesting status information
1471 about. To get around this, the server reports on the first printer service
1472 connected to by the client. This only happens if the connection number sent
1473 is invalid.
1474
1475 If a %p is given then the printername is put in its place. Otherwise
1476 it is placed at the end of the command.
1477
1478 Note that it is good practice to include the absolute path in the lpq
1479 command as the PATH may not be available to the server.
1480
1481 .B Default:
1482         depends on the setting of "printing ="
1483
1484 .B Example:
1485         lpq command = /usr/bin/lpq %p
1486
1487 .SS lpresume command (S)
1488 This parameter specifies the command to be executed on the server host in
1489 order to restart or continue printing or spooling a specific print job.
1490
1491 This command should be a program or script which takes a printer name and
1492 job number to resume the print job. See also the lppause command.
1493
1494 If a %p is given then the printername is put in its place. A %j is
1495 replaced with the job number (an integer).
1496
1497 Note that it is good practice to include the absolute path in the lpresume
1498 command as the PATH may not be available to the server.
1499
1500 .B Default:
1501         Currently no default value is given to this string
1502
1503 .B Example for HPUX:
1504         lpresume command = /usr/bin/lpalt %p-%j -p2
1505
1506 .SS lprm command (S)
1507 This parameter specifies the command to be executed on the server host in
1508 order to delete a print job.
1509
1510 This command should be a program or script which takes a printer name
1511 and job number, and deletes the print job.
1512
1513 Currently seven styles of printer control are supported; BSD, SYSV, AIX
1514 HPUX, QNX, LPRNG and PLP. This covers most UNIX systems. You control
1515 which type is expected using the "printing =" option.
1516
1517 If a %p is given then the printername is put in its place. A %j is
1518 replaced with the job number (an integer).
1519
1520 Note that it is good practice to include the absolute path in the lprm
1521 command as the PATH may not be available to the server.
1522
1523 .B Default:
1524         depends on the setting of "printing ="
1525
1526 .B Example 1:
1527         lprm command = /usr/bin/lprm -P%p %j
1528
1529 .B Example 2:
1530         lprm command = /usr/bin/cancel %p-%j
1531
1532 .SS magic output (S)
1533 This parameter specifies the name of a file which will contain output
1534 created by a magic script (see
1535 .I magic script
1536 below).
1537
1538 Warning: If two clients use the same magic script in the same directory the
1539 output file content is undefined.
1540 .B Default:
1541         magic output = <magic script name>.out
1542
1543 .B Example:
1544         magic output = myfile.txt
1545 .SS magic script (S)
1546 This parameter specifies the name of a file which, if opened, will be
1547 executed by the server when the file is closed. This allows a UNIX script
1548 to be sent to the Samba host and executed on behalf of the connected user.
1549
1550 Scripts executed in this way will be deleted upon completion, permissions
1551 permitting.
1552
1553 If the script generates output, output will be sent to the file specified by
1554 the
1555 .I magic output
1556 parameter (see above).
1557
1558 Note that some shells are unable to interpret scripts containing
1559 carriage-return-linefeed instead of linefeed as the end-of-line
1560 marker. Magic scripts must be executable "as is" on the host, which
1561 for some hosts and some shells will require filtering at the DOS end.
1562
1563 Magic scripts are EXPERIMENTAL and should NOT be relied upon.
1564
1565 .B Default:
1566         None. Magic scripts disabled.
1567
1568 .B Example:
1569         magic script = user.csh
1570
1571 .SS mangle case (S)
1572
1573 See the section on "NAME MANGLING"
1574
1575 .SS mangled map (S)
1576 This is for those who want to directly map UNIX file names which are
1577 not representable on DOS.  The mangling of names is not always what is
1578 needed.  In particular you may have documents with file extensions
1579 that differ between DOS and UNIX. For example, under UNIX it is common
1580 to use .html for HTML files, whereas under DOS .htm is more commonly
1581 used.
1582
1583 So to map 'html' to 'htm' you put:
1584
1585   mangled map = (*.html *.htm)
1586
1587 One very useful case is to remove the annoying ;1 off the ends of
1588 filenames on some CDROMS (only visible under some UNIXes). To do this
1589 use a map of (*;1 *)
1590
1591 .B default:
1592         no mangled map
1593
1594 .B Example:
1595         mangled map = (*;1 *)
1596
1597 .SS mangled names (S)
1598 This controls whether non-DOS names under UNIX should be mapped to
1599 DOS-compatible names ("mangled") and made visible, or whether non-DOS names
1600 should simply be ignored.
1601
1602 See the section on "NAME MANGLING" for details on how to control the
1603 mangling process.
1604
1605 If mangling is used then the mangling algorithm is as follows:
1606 .RS
1607 - the first (up to) five alphanumeric characters before the rightmost dot of
1608 the filename are preserved, forced to upper case, and appear as the first (up
1609 to) five characters of the mangled name.
1610
1611 - a tilde ("~") is appended to the first part of the mangled name, followed
1612 by a two-character unique sequence, based on the original root name 
1613 (i.e., the original filename minus its final extension). The final
1614 extension is included in the hash calculation only if it contains any upper
1615 case characters or is longer than three characters.
1616
1617 Note that the character to use may be specified using the "mangling
1618 char" option, if you don't like ~.
1619
1620 - the first three alphanumeric characters of the final extension are preserved,
1621 forced to upper case and appear as the extension of the mangled name. The 
1622 final extension is defined as that part of the original filename after the
1623 rightmost dot. If there are no dots in the filename, the mangled name will
1624 have no extension (except in the case of hidden files - see below).
1625
1626 - files whose UNIX name begins with a dot will be presented as DOS hidden
1627 files. The mangled name will be created as for other filenames, but with the
1628 leading dot removed and "___" as its extension regardless of actual original
1629 extension (that's three underscores).
1630 .RE
1631
1632 The two-digit hash value consists of upper case alphanumeric characters.
1633
1634 This algorithm can cause name collisions only if files in a directory share
1635 the same first five alphanumeric characters. The probability of such a clash 
1636 is 1/1300.
1637
1638 The name mangling (if enabled) allows a file to be copied between UNIX
1639 directories from DOS while retaining the long UNIX filename. UNIX files can
1640 be renamed to a new extension from DOS and will retain the same basename. 
1641 Mangled names do not change between sessions.
1642
1643 .B Default:
1644         mangled names = yes
1645
1646 .B Example:
1647         mangled names = no
1648 .SS mangling char (S)
1649 This controls what character is used as the "magic" character in name
1650 mangling. The default is a ~ but this may interfere with some
1651 software. Use this option to set it to whatever you prefer.
1652
1653 .B Default:
1654         mangling char = ~
1655
1656 .B Example:
1657         mangling char = ^
1658
1659 .SS mangled stack (G)
1660 This parameter controls the number of mangled names that should be cached in
1661 the Samba server.
1662
1663 This stack is a list of recently mangled base names (extensions are only
1664 maintained if they are longer than 3 characters or contains upper case
1665 characters).
1666
1667 The larger this value, the more likely it is that mangled names can be
1668 successfully converted to correct long UNIX names. However, large stack
1669 sizes will slow most directory access. Smaller stacks save memory in the
1670 server (each stack element costs 256 bytes).
1671
1672 It is not possible to absolutely guarantee correct long file names, so
1673 be prepared for some surprises!
1674
1675 .B Default:
1676         mangled stack = 50
1677
1678 .B Example:
1679         mangled stack = 100
1680
1681 .SS map archive (S)
1682 This controls whether the DOS archive attribute should be mapped to UNIX
1683 execute bits.  The DOS archive bit is set when a file has been modified
1684 since its last backup.  One motivation for this option it to keep Samba/your
1685 PC from making any file it touches from becoming executable under UNIX.
1686 This can be quite annoying for shared source code, documents,  etc...
1687
1688 .B Default:
1689       map archive = yes
1690
1691 .B Example:
1692       map archive = no
1693
1694 .SS map hidden (S)
1695 This controls whether DOS style hidden files should be mapped to UNIX
1696 execute bits.
1697
1698 .B Default:
1699         map hidden = no
1700
1701 .B Example:
1702         map hidden = yes
1703 .SS map system (S)
1704 This controls whether DOS style system files should be mapped to UNIX
1705 execute bits.
1706
1707 .B Default:
1708         map system = no
1709
1710 .B Example:
1711         map system = yes
1712 .SS max connections (S)
1713 This option allows the number of simultaneous connections to a
1714 service to be limited. If "max connections" is greater than 0 then
1715 connections will be refused if this number of connections to the
1716 service are already open. A value of zero mean an unlimited number of
1717 connections may be made.
1718
1719 Record lock files are used to implement this feature. The lock files
1720 will be stored in the directory specified by the "lock directory" option.
1721
1722 .B Default:
1723         max connections = 0
1724
1725 .B Example:
1726         max connections = 10
1727
1728 .SS max disk size (G)
1729 This option allows you to put an upper limit on the apparent size of
1730 disks. If you set this option to 100 then all shares will appear to be
1731 not larger than 100 MB in size.
1732
1733 Note that this option does not limit the amount of data you can put on
1734 the disk. In the above case you could still store much more than 100
1735 MB on the disk, but if a client ever asks for the amount of free disk
1736 space or the total disk size then the result will be bounded by the
1737 amount specified in "max disk size".
1738
1739 This option is primarily useful to work around bugs in some pieces of
1740 software that can't handle very large disks, particularly disks over
1741 1GB in size.
1742
1743 A "max disk size" of 0 means no limit.
1744
1745 .B Default:
1746         max disk size = 0
1747
1748 .B Example:
1749         max disk size = 1000
1750
1751 .SS max log size (G)
1752
1753 This option (an integer in kilobytes) specifies the max size the log
1754 file should grow to. Samba periodically checks the size and if it is
1755 exceeded it will rename the file, adding a .old extension.
1756
1757 A size of 0 means no limit.
1758
1759 .B Default:
1760         max log size = 5000
1761
1762 .B Example:
1763         max log size = 1000
1764
1765 .SS max mux (G)
1766
1767 This option controls the maximum number of simultaneous reads that
1768 samba tells the client it will allow. You should never need to set this
1769 parameter.
1770
1771 .B Default:
1772         max mux = 2
1773
1774 .SS max packet (G)
1775
1776 A synonym for this parameter is 'packet size'.
1777
1778 .SS max ttl (G)
1779
1780 This option tells nmbd what the default 'time to live' of NetBIOS
1781 names should be (in seconds). You should never need to change this parameter.
1782
1783 .B Default:
1784         max ttl = 14400
1785 .SS max xmit (G)
1786
1787 This option controls the maximum packet size that will be negotiated
1788 by Samba. The default is 65535, which is the maximum. In some cases
1789 you may find you get better performance with a smaller value. A value
1790 below 2048 is likely to cause problems.
1791
1792 .B Default:
1793         max xmit = 65535
1794
1795 .B Example:
1796         max xmit = 8192
1797
1798 .SS message command (G)
1799
1800 This specifies what command to run when the server receives a WinPopup
1801 style message.
1802
1803 This would normally be a command that would deliver the message
1804 somehow. How this is to be done is up to your imagination.
1805
1806 What I use is:
1807
1808    message command = csh -c 'xedit %s;rm %s' &
1809
1810 This delivers the message using xedit, then removes it
1811 afterwards. NOTE THAT IT IS VERY IMPORTANT THAT THIS COMMAND RETURN
1812 IMMEDIATELY. That's why I have the & on the end. If it doesn't return
1813 immediately then your PCs may freeze when sending messages (they
1814 should recover after 30secs, hopefully).
1815
1816 All messages are delivered as the global guest user. The command takes
1817 the standard substitutions, although %u won't work (%U may be better
1818 in this case).
1819
1820 Apart from the standard substitutions, some additional ones apply. In
1821 particular:
1822
1823 %s = the filename containing the message
1824
1825 %t = the destination that the message was sent to (probably the server
1826 name)
1827
1828 %f = who the message is from
1829
1830 You could make this command send mail, or whatever else takes your
1831 fancy. Please let me know of any really interesting ideas you have.
1832
1833 Here's a way of sending the messages as mail to root:
1834
1835 message command = /bin/mail -s 'message from %f on %m' root < %s; rm %s
1836
1837 If you don't have a message command then the message won't be
1838 delivered and Samba will tell the sender there was an
1839 error. Unfortunately WfWg totally ignores the error code and carries
1840 on regardless, saying that the message was delivered.
1841
1842 If you want to silently delete it then try "message command = rm %s".
1843
1844 For the really adventurous, try something like this:
1845
1846 message command = csh -c 'csh < %s |& /usr/local/samba/bin/smbclient \e
1847                   -M %m; rm %s' &
1848
1849 this would execute the command as a script on the server, then give
1850 them the result in a WinPopup message. Note that this could cause a
1851 loop if you send a message from the server using smbclient! You better
1852 wrap the above in a script that checks for this :-)
1853
1854 .B Default:
1855         no message command
1856
1857 .B Example:
1858         message command = csh -c 'xedit %s;rm %s' &
1859
1860 .SS min print space (S)
1861
1862 This sets the minimum amount of free disk space that must be available
1863 before a user will be able to spool a print job. It is specified in
1864 kilobytes. The default is 0, which means no limit.
1865
1866 .B Default:
1867         min print space = 0
1868
1869 .B Example:
1870         min print space = 2000
1871
1872 .SS netbios name (G)
1873
1874 This sets the NetBIOS name by which a Samba server is known. By
1875 default it is the same as the first component of the host's DNS name.
1876
1877 .SS nis homedir (G)
1878 Get the home share server from a NIS (or YP) map. For unix systems that
1879 use an automounter, the user's home directory will often be mounted on
1880 a workstation on demand from a remote server. When the Samba logon server
1881 is not the actual home directory server, two network hops are required
1882 to access the home directory and this can be very slow especially with 
1883 writing via Samba to an NFS mounted directory. This option allows samba
1884 to return the home share as being on a different server to the logon
1885 server and as long as a samba daemon is running on the home directory 
1886 server, it will be mounted on the Samba client directly from the directory
1887 server. When Samba is returning the home share to the client, it will
1888 consult the NIS (or YP) map specified in "homedir map" and return the
1889 server listed there.
1890
1891 .B Default:
1892         nis homedir = false
1893
1894 .B Example:
1895         nis homedir = true
1896
1897 .SS null passwords (G)
1898 Allow or disallow access to accounts that have null passwords. 
1899
1900 .B Default:
1901         null passwords = no
1902
1903 .B Example:
1904         null passwords = yes
1905
1906 .SS only guest (S)
1907 A synonym for this command is 'guest only'.
1908
1909 .SS only user (S)
1910 This is a boolean option that controls whether connections with
1911 usernames not in the user= list will be allowed. By default this
1912 option is disabled so a client can supply a username to be used by
1913 the server.
1914
1915 Note that this also means Samba won't try to deduce usernames from the
1916 service name. This can be annoying for the [homes] section. To get
1917 around this you could use "user = %S" which means your "user" list
1918 will be just the service name, which for home directories is the name
1919 of the user.
1920
1921 .B Default: 
1922         only user = False
1923
1924 .B Example: 
1925         only user = True
1926
1927 .SS os level (G)
1928 This integer value controls what level Samba advertises itself as for
1929 browse elections. See BROWSING.txt for details.
1930
1931 .SS packet size (G)
1932 The maximum transmit packet size during a raw read. This option is no
1933 longer implemented as of version 1.7.00, and is kept only so old
1934 configuration files do not become invalid.
1935
1936 .SS passwd chat (G)
1937 This string controls the "chat" conversation that takes places
1938 between smbd and the local password changing program to change the
1939 users password. The string describes a sequence of response-receive
1940 pairs that smbd uses to determine what to send to the passwd program
1941 and what to expect back. If the expected output is not received then
1942 the password is not changed.
1943
1944 This chat sequence is often quite site specific, depending on what
1945 local methods are used for password control (such as NIS+ etc).
1946
1947 The string can contain the macros %o and %n which are substituted for
1948 the old and new passwords respectively. It can also contain the
1949 standard macros \en \er \et and \es to give line-feed, carriage-return,
1950 tab and space.
1951
1952 The string can also contain a * which matches any sequence of
1953 characters.
1954
1955 Double quotes can be used to collect strings with spaces in them into
1956 a single string.
1957
1958 If the send string in any part of the chat sequence is a fullstop "."
1959 then no string is sent. Similarly, is the expect string is a fullstop
1960 then no string is expected.
1961
1962 .B Example:
1963         passwd chat = "*Enter OLD password*" %o\en "*Enter NEW password*" %n\en \e
1964                        "*Reenter NEW password*" %n\en "*Password changed*"
1965
1966
1967 .B Default:
1968        passwd chat = *old*password* %o\en *new*password* %n\en *new*password* %n\en *changed*
1969
1970 .SS passwd program (G)
1971 The name of a program that can be used to set user passwords.
1972
1973 This is only necessary if you have enabled remote password changing at
1974 compile time. Any occurrences of %u will be replaced with the user
1975 name.
1976
1977 Also note that many passwd programs insist in "reasonable" passwords,
1978 such as a minimum length, or the inclusion of mixed case chars and
1979 digits. This can pose a problem as some clients (such as Windows for
1980 Workgroups) uppercase the password before sending it. 
1981
1982 .B Default:
1983         passwd program = /bin/passwd
1984
1985 .B Example:
1986         passwd program = /sbin/passwd %u
1987
1988 .SS password level (G)
1989 Some client/server combinations have difficulty with mixed-case passwords.
1990 One offending client is Windows for Workgroups, which for some reason forces
1991 passwords to upper case when using the LANMAN1 protocol, but leaves them alone
1992 when using COREPLUS!
1993
1994 This parameter defines the maximum number of characters that may be upper case
1995 in passwords.
1996
1997 For example, say the password given was "FRED". If
1998 .B password level
1999 is set to 1 (one), the following combinations would be tried if "FRED" failed:
2000 "Fred", "fred", "fRed", "frEd", "freD". If
2001 .B password level was set to 2 (two), the following combinations would also be
2002 tried: "FRed", "FrEd", "FreD", "fREd", "fReD", "frED". And so on.
2003
2004 The higher value this parameter is set to the more likely it is that a mixed
2005 case password will be matched against a single case password. However, you
2006 should be aware that use of this parameter reduces security and increases the
2007 time taken to process a new connection.
2008
2009 A value of zero will cause only two attempts to be made - the password as is
2010 and the password in all-lower case.
2011
2012 If you find the connections are taking too long with this option then
2013 you probably have a slow crypt() routine. Samba now comes with a fast
2014 "ufc crypt" that you can select in the Makefile. You should also make
2015 sure the PASSWORD_LENGTH option is correct for your system in local.h
2016 and includes.h. On most systems only the first 8 chars of a password
2017 are significant so PASSWORD_LENGTH should be 8, but on some longer
2018 passwords are significant. The includes.h file tries to select the
2019 right length for your system.
2020
2021 .B Default:
2022         password level = 0
2023
2024 .B Example:
2025         password level = 4
2026
2027 .SS password server (G)
2028
2029 By specifying the name of another SMB server (such as a WinNT box)
2030 with this option, and using "security = server" you can get Samba to
2031 do all its username/password validation via a remote server.
2032
2033 This options sets the name of the password server to use. It must be a
2034 netbios name, so if the machine's netbios name is different from its
2035 internet name then you may have to add its netbios name to
2036 /etc/hosts.
2037
2038 The password server much be a machine capable of using the "LM1.2X002"
2039 or the "LM NT 0.12" protocol, and it must be in user level security
2040 mode. 
2041
2042 NOTE: Using a password server means your UNIX box (running Samba) is
2043 only as secure as your password server. DO NOT CHOOSE A PASSWORD
2044 SERVER THAT YOU DON'T COMPLETELY TRUST.
2045
2046 Never point a Samba server at itself for password serving. This will
2047 cause a loop and could lock up your Samba server!
2048
2049 The name of the password server takes the standard substitutions, but
2050 probably the only useful one is %m, which means the Samba server will
2051 use the incoming client as the password server. If you use this then
2052 you better trust your clients, and you better restrict them with hosts
2053 allow!
2054
2055 If you list several hosts in the "password server" option then smbd
2056 will try each in turn till it finds one that responds. This is useful
2057 in case your primary server goes down.
2058
2059 .SS path (S)
2060 A synonym for this parameter is 'directory'.
2061
2062 This parameter specifies a directory to which the user of the service is to
2063 be given access. In the case of printable services, this is where print data 
2064 will spool prior to being submitted to the host for printing.
2065
2066 For a printable service offering guest access, the service should be readonly
2067 and the path should be world-writable and have the sticky bit set. This is not
2068 mandatory of course, but you probably won't get the results you expect if you
2069 do otherwise.
2070
2071 Any occurrences of %u in the path will be replaced with the username
2072 that the client is connecting as. Any occurrences of %m will be
2073 replaced by the name of the machine they are connecting from. These
2074 replacements are very useful for setting up pseudo home directories
2075 for users.
2076
2077 Note that this path will be based on 'root dir' if one was specified.
2078 .B Default:
2079         none
2080
2081 .B Example:
2082         path = /home/fred+ 
2083
2084 .SS postexec (S)
2085
2086 This option specifies a command to be run whenever the service is
2087 disconnected. It takes the usual substitutions. The command may be run
2088 as the root on some systems.
2089
2090 An interesting example may be do unmount server resources:
2091
2092 postexec = /etc/umount /cdrom
2093
2094 See also preexec
2095
2096 .B Default:
2097       none (no command executed)
2098
2099 .B Example:
2100       postexec = echo \e"%u disconnected from %S from %m (%I)\e" >> /tmp/log
2101
2102 .SS postscript (S)
2103 This parameter forces a printer to interpret the print files as
2104 postscript. This is done by adding a %! to the start of print output. 
2105
2106 This is most useful when you have lots of PCs that persist in putting
2107 a control-D at the start of print jobs, which then confuses your
2108 printer.
2109
2110 .B Default: 
2111         postscript = False
2112
2113 .B Example: 
2114         postscript = True
2115
2116 .SS preexec (S)
2117
2118 This option specifies a command to be run whenever the service is
2119 connected to. It takes the usual substitutions.
2120
2121 An interesting example is to send the users a welcome message every
2122 time they log in. Maybe a message of the day? Here is an example:
2123
2124 preexec = csh -c 'echo \e"Welcome to %S!\e" | \e
2125        /usr/local/samba/bin/smbclient -M %m -I %I' &
2126
2127 Of course, this could get annoying after a while :-)
2128
2129 See also postexec
2130
2131 .B Default:
2132         none (no command executed)
2133
2134 .B Example:
2135         preexec = echo \e"%u connected to %S from %m (%I)\e" >> /tmp/log
2136
2137 .SS preferred master (G)
2138 This boolean parameter controls if Samba is a preferred master browser
2139 for its workgroup.
2140 If this is set to true, on startup, samba will force an election, 
2141 and it will have a slight advantage in winning the election.  
2142 It is recommended that this parameter is used in conjunction 
2143 with domain master = yes, so that samba can guarantee becoming 
2144 a domain master.  
2145
2146 Use this option with caution, because if there are several hosts
2147 (whether samba servers, Windows 95 or NT) that are preferred master
2148 browsers on the same subnet, they will each periodically and continuously
2149 attempt to become the local master browser.  This will result in
2150 unnecessary broadcast traffic and reduced browsing capabilities.
2151
2152 See
2153 .B os level = nn
2154
2155 .B Default:
2156         preferred master = no
2157
2158 .SS preload
2159 This is an alias for "auto services"
2160
2161 .SS preserve case (S)
2162
2163 This controls if new filenames are created with the case that the
2164 client passes, or if they are forced to be the "default" case.
2165
2166 .B Default:
2167        preserve case = no
2168
2169 See the section on "NAME MANGLING" for a fuller discussion.
2170
2171 .SS print command (S)
2172 After a print job has finished spooling to a service, this command will be
2173 used via a system() call to process the spool file. Typically the command 
2174 specified will submit the spool file to the host's printing subsystem, but
2175 there is no requirement that this be the case. The server will not remove the
2176 spool file, so whatever command you specify should remove the spool file when
2177 it has been processed, otherwise you will need to manually remove old spool
2178 files.
2179
2180 The print command is simply a text string. It will be used verbatim,
2181 with two exceptions: All occurrences of "%s" will be replaced by the
2182 appropriate spool file name, and all occurrences of "%p" will be
2183 replaced by the appropriate printer name. The spool file name is
2184 generated automatically by the server, the printer name is discussed
2185 below.
2186
2187 The full path name will be used for the filename if %s is not preceded
2188 by a /. If you don't like this (it can stuff up some lpq output) then
2189 use %f instead. Any occurrences of %f get replaced by the spool
2190 filename without the full path at the front.
2191
2192 The print command MUST contain at least one occurrence of "%s" or %f -
2193 the "%p" is optional. At the time a job is submitted, if no printer
2194 name is supplied the "%p" will be silently removed from the printer
2195 command.
2196
2197 If specified in the [global] section, the print command given will be used
2198 for any printable service that does not have its own print command specified.
2199
2200 If there is neither a specified print command for a printable service nor a 
2201 global print command, spool files will be created but not processed and (most
2202 importantly) not removed.
2203
2204 Note that printing may fail on some UNIXes from the "nobody"
2205 account. If this happens then create an alternative guest account that
2206 can print and set the "guest account" in the [global] section.
2207
2208 You can form quite complex print commands by realising that they are
2209 just passed to a shell. For example the following will log a print
2210 job, print the file, then remove it. Note that ; is the usual
2211 separator for command in shell scripts.
2212
2213 print command = echo Printing %s >> /tmp/print.log; lpr -P %p %s; rm %s
2214
2215 You may have to vary this command considerably depending on how you
2216 normally print files on your system.
2217
2218 .B Default:
2219         print command = lpr -r -P %p %s
2220
2221 .B Example:
2222         print command = /usr/local/samba/bin/myprintscript %p %s
2223 .SS print ok (S)
2224 See
2225 .B printable.
2226 .SS printable (S)
2227 A synonym for this parameter is 'print ok'.
2228
2229 If this parameter is 'yes', then clients may open, write to and submit spool 
2230 files on the directory specified for the service.
2231
2232 Note that a printable service will ALWAYS allow writing to the service path
2233 (user privileges permitting) via the spooling of print data. The 'read only'
2234 parameter controls only non-printing access to the resource.
2235
2236 .B Default:
2237         printable = no
2238
2239 .B Example:
2240         printable = yes
2241
2242 .SS printcap name (G)
2243 This parameter may be used to override the compiled-in default printcap
2244 name used by the server (usually /etc/printcap). See the discussion of the
2245 [printers] section above for reasons why you might want to do this.
2246
2247 For those of you without a printcap (say on SysV) you can just create a
2248 minimal file that looks like a printcap and set "printcap name =" in
2249 [global] to point at it.
2250
2251 A minimal printcap file would look something like this:
2252
2253 print1|My Printer 1
2254 .br
2255 print2|My Printer 2
2256 .br
2257 print3|My Printer 3
2258 .br
2259 print4|My Printer 4
2260 .br
2261 print5|My Printer 5
2262
2263 where the | separates aliases of a printer. The fact that the second
2264 alias has a space in it gives a hint to Samba that it's a comment.
2265
2266 NOTE: Under AIX the default printcap name is "/etc/qconfig". Samba
2267 will assume the file is in AIX "qconfig" format if the string
2268 "/qconfig" appears in the printcap filename.
2269
2270 .B Default:
2271         printcap name = /etc/printcap
2272
2273 .B Example:
2274         printcap name = /etc/myprintcap
2275 .SS printer (S)
2276 A synonym for this parameter is 'printer name'.
2277
2278 This parameter specifies the name of the printer to which print jobs spooled
2279 through a printable service will be sent.
2280
2281 If specified in the [global] section, the printer name given will be used
2282 for any printable service that does not have its own printer name specified.
2283
2284 .B Default:
2285         none (but may be 'lp' on many systems)
2286
2287 .B Example:
2288         printer name = laserwriter
2289
2290 .SS printer driver (S)
2291 This option allows you to control the string that clients receive when
2292 they ask the server for the printer driver associated with a
2293 printer. If you are using Windows95 or WindowsNT then you can use this
2294 to automate the setup of printers on your system.
2295
2296 You need to set this parameter to the exact string (case sensitive)
2297 that describes the appropriate printer driver for your system. 
2298 If you don't know the exact string to use then you should first try
2299 with no "printer driver" option set and the client will give you a
2300 list of printer drivers. The appropriate strings are shown in a
2301 scrollbox after you have chosen the printer manufacturer.
2302
2303 .B Example:
2304         printer driver = HP LaserJet 4L
2305
2306 .SS printer name (S)
2307 See
2308 .B printer.
2309
2310 .SS printing (G)
2311 This parameters controls how printer status information is interpreted
2312 on your system, and also affects the default values for the "print
2313 command", "lpq command" and "lprm command".
2314
2315 Currently six printing styles are supported. They are "printing =
2316 bsd", "printing = sysv", "printing = hpux", "printing = aix",
2317 "printing = qnx" and "printing = plp".
2318
2319 To see what the defaults are for the other print commands when using
2320 these three options use the "testparm" program.
2321
2322
2323 .SS protocol (G)
2324 The value of the parameter (a string) is the highest protocol level that will
2325 be supported by the server. 
2326
2327 Possible values are CORE, COREPLUS, LANMAN1, LANMAN2 and NT1. The relative
2328 merits of each are discussed in the README file.
2329
2330 Normally this option should not be set as the automatic negotiation
2331 phase in the SMB protocol takes care of choosing the appropriate protocol.
2332
2333 .B Default:
2334         protocol = NT1
2335
2336 .B Example:
2337         protocol = LANMAN1
2338 .SS public (S)
2339 A synonym for this parameter is 'guest ok'.
2340
2341 If this parameter is 'yes' for a service, then no password is required
2342 to connect to the service. Privileges will be those of the guest
2343 account.
2344
2345 See the section below on user/password validation for more information about
2346 this option.
2347
2348 .B Default:
2349         public = no
2350
2351 .B Example:
2352         public = yes
2353 .SS read list (S)
2354 This is a list of users that are given read-only access to a
2355 service. If the connecting user is in this list then they will
2356 not be given write access, no matter what the "read only" option
2357 is set to. The list can include group names using the @group syntax.
2358
2359 See also the "write list" option
2360
2361 .B Default:
2362      read list =
2363
2364 .B Example:
2365      read list = mary, @students
2366
2367 .SS read only (S)
2368 See
2369 .B writable
2370 and
2371 .B write ok.
2372 Note that this is an inverted synonym for writable and write ok.
2373 .SS read prediction (G)
2374 This options enables or disables the read prediction code used to
2375 speed up reads from the server. When enabled the server will try to
2376 pre-read data from the last accessed file that was opened read-only
2377 while waiting for packets.
2378
2379 .SS Default:
2380         read prediction = False
2381
2382 .SS Example:
2383         read prediction = True
2384 .SS read raw (G)
2385 This parameter controls whether or not the server will support raw reads when
2386 transferring data to clients.
2387
2388 If enabled, raw reads allow reads of 65535 bytes in one packet. This
2389 typically provides a major performance benefit.
2390
2391 However, some clients either negotiate the allowable block size incorrectly
2392 or are incapable of supporting larger block sizes, and for these clients you
2393 may need to disable raw reads.
2394
2395 In general this parameter should be viewed as a system tuning tool and left
2396 severely alone. See also
2397 .B write raw.
2398
2399 .B Default:
2400         read raw = yes
2401
2402 .B Example:
2403         read raw = no
2404 .SS read size (G)
2405
2406 The option "read size" affects the overlap of disk reads/writes with
2407 network reads/writes. If the amount of data being transferred in
2408 several of the SMB commands (currently SMBwrite, SMBwriteX and
2409 SMBreadbraw) is larger than this value then the server begins writing
2410 the data before it has received the whole packet from the network, or
2411 in the case of SMBreadbraw, it begins writing to the network before
2412 all the data has been read from disk.
2413
2414 This overlapping works best when the speeds of disk and network access
2415 are similar, having very little effect when the speed of one is much
2416 greater than the other.
2417
2418 The default value is 2048, but very little experimentation has been
2419 done yet to determine the optimal value, and it is likely that the best
2420 value will vary greatly between systems anyway. A value over 65536 is
2421 pointless and will cause you to allocate memory unnecessarily.
2422
2423 .B Default:
2424         read size = 2048
2425
2426 .B Example:
2427         read size = 8192
2428
2429 .SS remote announce (G)
2430
2431 This option allows you to setup nmbd to periodically announce itself
2432 to arbitrary IP addresses with an arbitrary workgroup name. 
2433
2434 This is useful if you want your Samba server to appear in a remote
2435 workgroup for which the normal browse propagation rules don't
2436 work. The remote workgroup can be anywhere that you can send IP
2437 packets to.
2438
2439 For example:
2440
2441        remote announce = 192.168.2.255/SERVERS 192.168.4.255/STAFF
2442
2443 the above line would cause nmbd to announce itself to the two given IP
2444 addresses using the given workgroup names. If you leave out the
2445 workgroup name then the one given in the "workgroup" option is used
2446 instead. 
2447
2448 The IP addresses you choose would normally be the broadcast addresses
2449 of the remote networks, but can also be the IP addresses of known
2450 browse masters if your network config is that stable.
2451
2452 This option replaces similar functionality from the nmbd lmhosts file.
2453
2454 .SS revalidate (S)
2455
2456 This options controls whether Samba will allow a previously validated
2457 username/password pair to be used to attach to a share. Thus if you
2458 connect to \e\eserver\eshare1 then to \e\eserver\eshare2 it won't
2459 automatically allow the client to request connection to the second
2460 share as the same username as the first without a password.
2461
2462 If "revalidate" is True then the client will be denied automatic
2463 access as the same username.
2464
2465 .B Default:
2466         revalidate = False
2467
2468 .B Example:
2469         revalidate = True
2470
2471 .SS root (G)
2472 See
2473 .B root directory.
2474 .SS root dir (G)
2475 See
2476 .B root directory.
2477 .SS root directory (G)
2478 Synonyms for this parameter are 'root dir' and 'root'.
2479
2480 The server will chroot() to this directory on startup. This is not 
2481 strictly necessary for secure operation. Even without it the server
2482 will deny access to files not in one of the service entries. It may 
2483 also check for, and deny access to, soft links to other parts of the 
2484 filesystem, or attempts to use .. in file names to access other 
2485 directories (depending on the setting of the "wide links" parameter).
2486
2487 Adding a "root dir" entry other than "/" adds an extra level of security, 
2488 but at a price. It absolutely ensures that no access is given to files not
2489 in the sub-tree specified in the "root dir" option, *including* some files 
2490 needed for complete operation of the server. To maintain full operability
2491 of the server you will need to mirror some system files into the "root dir"
2492 tree. In particular you will need to mirror /etc/passwd (or a subset of it),
2493 and any binaries or configuration files needed for printing (if required). 
2494 The set of files that must be mirrored is operating system dependent.
2495
2496 .B Default:
2497         root directory = /
2498
2499 .B Example:
2500         root directory = /homes/smb
2501 .SS root postexec (S)
2502
2503 This is the same as postexec except that the command is run as
2504 root. This is useful for unmounting filesystems (such as cdroms) after
2505 a connection is closed.
2506
2507 .SS root preexec (S)
2508
2509 This is the same as preexec except that the command is run as
2510 root. This is useful for mounting filesystems (such as cdroms) before
2511 a connection is finalised.
2512
2513 .SS security (G)
2514 This option affects how clients respond to Samba.
2515
2516 The option sets the "security mode bit" in replies to protocol negotiations
2517 to turn share level security on or off. Clients decide based on this bit 
2518 whether (and how) to transfer user and password information to the server.
2519
2520 The default is "security=SHARE", mainly because that was the only
2521 option at one stage.
2522
2523 The alternatives are "security = user" or "security = server". 
2524
2525 If your PCs use usernames that are the same as their usernames on the
2526 UNIX machine then you will want to use "security = user". If you
2527 mostly use usernames that don't exist on the UNIX box then use
2528 "security = share".
2529
2530 There is a bug in WfWg that may affect your decision. When in user
2531 level security a WfWg client will totally ignore the password you type
2532 in the "connect drive" dialog box. This makes it very difficult (if
2533 not impossible) to connect to a Samba service as anyone except the
2534 user that you are logged into WfWg as.
2535
2536 If you use "security = server" then Samba will try to validate the
2537 username/password by passing it to another SMB server, such as an NT
2538 box. If this fails it will revert to "security = USER".
2539
2540 See the "password server" option for more details.
2541
2542 .B Default:
2543         security = SHARE
2544
2545 .B Example:
2546         security = USER
2547 .SS server string (G)
2548 This controls what string will show up in the printer comment box in
2549 print manager and next to the IPC connection in "net view". It can be
2550 any string that you wish to show to your users.
2551
2552 It also sets what will appear in browse lists next to the machine name.
2553
2554 A %v will be replaced with the Samba version number.
2555
2556 A %h will be replaced with the hostname.
2557
2558 .B Default:
2559         server string = Samba %v
2560
2561 .B Example:
2562         server string = University of GNUs Samba Server
2563
2564 .SS set directory (S)
2565 If 'set directory = no', then users of the service may not use the setdir
2566 command to change directory.
2567
2568 The setdir command is only implemented in the Digital Pathworks client. See the
2569 Pathworks documentation for details.
2570
2571 .B Default:
2572         set directory = no
2573
2574 .B Example:
2575         set directory = yes
2576
2577 .SS shared file entries (G)
2578 This parameter is only useful when Samba has been compiled with FAST_SHARE_MODES.
2579 It specifies the number of hash bucket entries used for share file locking.
2580 You should never change this parameter unless you have studied the source 
2581 and know what you are doing.
2582
2583 .B Default
2584         shared file entries = 113
2585
2586 .SS shared mem size (G)
2587 This parameter is only useful when Samba has been compiled with FAST_SHARE_MODES.
2588 It specifies the size of the shared memory (in bytes) to use between smbd 
2589 processes. You should never change this parameter unless you have studied 
2590 the source and know what you are doing.
2591
2592 .B Default
2593         shared mem size = 102400
2594
2595 .SS smb passwd file (G)
2596 This option sets the path to the encrypted smbpasswd file. This is a *VERY
2597 DANGEROUS OPTION* if the smb.conf is user writable. By default the path
2598 to the smbpasswd file is compiled into Samba.
2599
2600 .SS smbrun (G)
2601 This sets the full path to the smbrun binary. This defaults to the
2602 value in the Makefile.
2603
2604 You must get this path right for many services to work correctly.
2605
2606 .B Default:
2607 taken from Makefile
2608
2609 .B Example:
2610         smbrun = /usr/local/samba/bin/smbrun
2611
2612 .SS share modes (S)
2613
2614 This enables or disables the honouring of the "share modes" during a
2615 file open. These modes are used by clients to gain exclusive read or
2616 write access to a file. 
2617
2618 These open modes are not directly supported by UNIX, so they are
2619 simulated using lock files in the "lock directory". The "lock
2620 directory" specified in smb.conf must be readable by all users.
2621
2622 The share modes that are enabled by this option are DENY_DOS,
2623 DENY_ALL, DENY_READ, DENY_WRITE, DENY_NONE and DENY_FCB.
2624
2625 Enabling this option gives full share compatibility but may cost a bit
2626 of processing time on the UNIX server. They are enabled by default.
2627
2628 .B Default:
2629         share modes = yes
2630
2631 .B Example:
2632         share modes = no
2633
2634 .SS short preserve case (S)
2635
2636 This controls if new short filenames are created with the case that
2637 the client passes, or if they are forced to be the "default" case.
2638
2639 .B Default:
2640        short preserve case = no
2641
2642 See the section on "NAME MANGLING" for a fuller discussion.
2643
2644 .SS socket address (G)
2645
2646 This option allows you to control what address Samba will listen for
2647 connections on. This is used to support multiple virtual interfaces on
2648 the one server, each with a different configuration.
2649
2650 By default samba will accept connections on any address.
2651
2652 .B Example:
2653         socket address = 192.168.2.20
2654
2655 .SS socket options (G)
2656 This option (which can also be invoked with the -O command line
2657 option) allows you to set socket options to be used when talking with
2658 the client.
2659
2660 Socket options are controls on the networking layer of the operating
2661 systems which allow the connection to be tuned.
2662
2663 This option will typically be used to tune your Samba server for
2664 optimal performance for your local network. There is no way that Samba
2665 can know what the optimal parameters are for your net, so you must
2666 experiment and choose them yourself. I strongly suggest you read the
2667 appropriate documentation for your operating system first (perhaps
2668 "man setsockopt" will help).
2669
2670 You may find that on some systems Samba will say "Unknown socket
2671 option" when you supply an option. This means you either mis-typed it
2672 or you need to add an include file to includes.h for your OS. If the
2673 latter is the case please send the patch to me
2674 (samba-bugs@samba.anu.edu.au).
2675
2676 Any of the supported socket options may be combined in any way you
2677 like, as long as your OS allows it.
2678
2679 This is the list of socket options currently settable using this
2680 option:
2681
2682   SO_KEEPALIVE
2683
2684   SO_REUSEADDR
2685
2686   SO_BROADCAST
2687
2688   TCP_NODELAY
2689
2690   IPTOS_LOWDELAY
2691
2692   IPTOS_THROUGHPUT
2693
2694   SO_SNDBUF *
2695
2696   SO_RCVBUF *
2697
2698   SO_SNDLOWAT *
2699
2700   SO_RCVLOWAT *
2701
2702 Those marked with a * take an integer argument. The others can
2703 optionally take a 1 or 0 argument to enable or disable the option, by
2704 default they will be enabled if you don't specify 1 or 0.
2705
2706 To specify an argument use the syntax SOME_OPTION=VALUE for example
2707 SO_SNDBUF=8192. Note that you must not have any spaces before or after
2708 the = sign.
2709
2710 If you are on a local network then a sensible option might be
2711
2712 socket options = IPTOS_LOWDELAY
2713
2714 If you have an almost unloaded local network and you don't mind a lot
2715 of extra CPU usage in the server then you could try
2716
2717 socket options = IPTOS_LOWDELAY TCP_NODELAY
2718
2719 If you are on a wide area network then perhaps try setting
2720 IPTOS_THROUGHPUT. 
2721
2722 Note that several of the options may cause your Samba server to fail
2723 completely. Use these options with caution!
2724
2725 .B Default:
2726         no socket options
2727
2728 .B Example:
2729         socket options = IPTOS_LOWDELAY 
2730
2731
2732
2733
2734 .SS status (G)
2735 This enables or disables logging of connections to a status file that
2736 .B smbstatus
2737 can read.
2738
2739 With this disabled
2740 .B smbstatus
2741 won't be able to tell you what
2742 connections are active.
2743
2744 .B Default:
2745         status = yes
2746
2747 .B Example:
2748         status = no
2749
2750 .SS strict locking (S)
2751 This is a boolean that controls the handling of file locking in the
2752 server. When this is set to yes the server will check every read and
2753 write access for file locks, and deny access if locks exist. This can
2754 be slow on some systems.
2755
2756 When strict locking is "no" the server does file lock checks only when
2757 the client explicitly asks for them. 
2758
2759 Well behaved clients always ask for lock checks when it is important,
2760 so in the vast majority of cases "strict locking = no" is preferable.
2761
2762 .B Default:
2763         strict locking = no
2764
2765 .B Example:
2766         strict locking = yes
2767
2768 .SS strip dot (G)
2769 This is a boolean that controls whether to strip trailing dots off
2770 filenames. This helps with some CDROMs that have filenames ending in a
2771 single dot.
2772
2773 NOTE: This option is now obsolete, and may be removed in future. You
2774 should use the "mangled map" option instead as it is much more
2775 general. 
2776
2777 .SS syslog (G)
2778 This parameter maps how Samba debug messages are logged onto the
2779 system syslog logging levels. Samba debug level zero maps onto
2780 syslog LOG_ERR, debug level one maps onto LOG_WARNING, debug
2781 level two maps to LOG_NOTICE, debug level three maps onto LOG_INFO.
2782 The paramter sets the threshold for doing the mapping, all Samba
2783 debug messages above this threashold are mapped to syslog LOG_DEBUG
2784 messages.
2785
2786 .B Default:
2787
2788         syslog = 1
2789
2790 .SS syslog only (G)
2791 If this parameter is set then Samba debug messages are logged into
2792 the system syslog only, and not to the debug log files.
2793
2794 .B Default:
2795         syslog only = no
2796
2797 .SS sync always (S)
2798
2799 This is a boolean parameter that controls whether writes will always
2800 be written to stable storage before the write call returns. If this is
2801 false then the server will be guided by the client's request in each
2802 write call (clients can set a bit indicating that a particular write
2803 should be synchronous). If this is true then every write will be
2804 followed by a fsync() call to ensure the data is written to disk.
2805
2806 .B Default:
2807         sync always = no
2808
2809 .B Example:
2810         sync always = yes
2811
2812 .SS time offset (G)
2813 This parameter is a setting in minutes to add to the normal GMT to
2814 local time conversion. This is useful if you are serving a lot of PCs
2815 that have incorrect daylight saving time handling.
2816
2817 .B Default:
2818         time offset = 0
2819
2820 .B Example:
2821         time offset = 60
2822
2823 .SS unix realname (G)
2824 This boolean parameter when set causes samba to supply the real name field
2825 from the unix password file to the client. This is useful for setting up
2826 mail clients and WWW browsers on systems used by more than one person.
2827
2828 .B Default:
2829         unix realname = no
2830
2831 .B Example:
2832         unix realname = yes
2833
2834 .SS user (S)
2835 See
2836 .B username.
2837 .SS username (S)
2838 A synonym for this parameter is 'user'.
2839
2840 Multiple users may be specified in a comma-delimited list, in which case the
2841 supplied password will be tested against each username in turn (left to right).
2842
2843 The username= line is needed only when the PC is unable to supply its own
2844 username. This is the case for the coreplus protocol or where your
2845 users have different WfWg usernames to UNIX usernames. In both these
2846 cases you may also be better using the \e\eserver\eshare%user syntax
2847 instead. 
2848
2849 The username= line is not a great solution in many cases as it means Samba
2850 will try to validate the supplied password against each of the
2851 usernames in the username= line in turn. This is slow and a bad idea for
2852 lots of users in case of duplicate passwords. You may get timeouts or
2853 security breaches using this parameter unwisely.
2854
2855 Samba relies on the underlying UNIX security. This parameter does not
2856 restrict who can login, it just offers hints to the Samba server as to
2857 what usernames might correspond to the supplied password. Users can
2858 login as whoever they please and they will be able to do no more
2859 damage than if they started a telnet session. The daemon runs as the
2860 user that they log in as, so they cannot do anything that user cannot
2861 do.
2862
2863 To restrict a service to a particular set of users you can use the
2864 "valid users=" line.
2865
2866 If any of the usernames begin with a @ then the name will be looked up
2867 in the groups file and will expand to a list of all users in the group
2868 of that name. Note that searching though a groups file can take quite
2869 some time, and some clients may time out during the search.
2870
2871 See the section below on username/password validation for more information
2872 on how this parameter determines access to the services.
2873
2874 .B Default:
2875         The guest account if a guest service, else the name of the service.
2876
2877 .B Examples:
2878         username = fred
2879         username = fred, mary, jack, jane, @users, @pcgroup
2880
2881 .SS username map (G)
2882
2883 This option allows you to to specify a file containing a mapping of
2884 usernames from the clients to the server. This can be used for several
2885 purposes. The most common is to map usernames that users use on DOS or
2886 Windows machines to those that the UNIX box uses. The other is to map
2887 multiple users to a single username so that they can more easily share
2888 files.
2889
2890 The map file is parsed line by line. Each line should contain a single
2891 UNIX username on the left then a '=' followed by a list of usernames
2892 on the right. The list of usernames on the right may contain names of
2893 the form @group in which case they will match any UNIX username in
2894 that group. The special client name '*' is a wildcard and matches any
2895 name.
2896
2897 The file is processed on each line by taking the supplied username and
2898 comparing it with each username on the right hand side of the '='
2899 signs. If the supplied name matches any of the names on the right
2900 hand side then it is replaced with the name on the left. Processing
2901 then continues with the next line.
2902
2903 If any line begins with a '#' or a ';' then it is ignored
2904
2905 For example to map from the name "admin" or "administrator" to the UNIX
2906 name "root" you would use
2907
2908         root = admin administrator
2909
2910 Or to map anyone in the UNIX group "system" to the UNIX name "sys" you
2911 would use
2912
2913         sys = @system
2914
2915 You can have as many mappings as you like in a username map file.
2916
2917 Note that the remapping is applied to all occurrences of
2918 usernames. Thus if you connect to "\e\eserver\efred" and "fred" is
2919 remapped to "mary" then you will actually be connecting to
2920 "\e\eserver\emary" and will need to supply a password suitable for
2921 "mary" not "fred". The only exception to this is the username passed
2922 to the "password server" (if you have one). The password server will
2923 receive whatever username the client supplies without modification.
2924
2925 Also note that no reverse mapping is done. The main effect this has is
2926 with printing. Users who have been mapped may have trouble deleting
2927 print jobs as PrintManager under WfWg will think they don't own the
2928 print job.
2929
2930 .B Default
2931         no username map
2932
2933 .B Example
2934         username map = /usr/local/samba/lib/users.map
2935
2936 .SS valid chars (S)
2937
2938 The option allows you to specify additional characters that should be
2939 considered valid by the server in filenames. This is particularly
2940 useful for national character sets, such as adding u-umlaut or a-ring.
2941
2942 The option takes a list of characters in either integer or character
2943 form with spaces between them. If you give two characters with a colon
2944 between them then it will be taken as an lowercase:uppercase pair.
2945
2946 If you have an editor capable of entering the characters into the
2947 config file then it is probably easiest to use this method. Otherwise
2948 you can specify the characters in octal, decimal or hexadecimal form
2949 using the usual C notation.
2950
2951 For example to add the single character 'Z' to the charset (which is a
2952 pointless thing to do as it's already there) you could do one of the
2953 following
2954
2955 valid chars = Z
2956 valid chars = z:Z
2957 valid chars = 0132:0172
2958
2959 The last two examples above actually add two characters, and alter
2960 the uppercase and lowercase mappings appropriately.
2961
2962 .B Default
2963 .br
2964         Samba defaults to using a reasonable set of valid characters
2965 .br
2966         for english systems
2967
2968 .B Example
2969         valid chars = 0345:0305 0366:0326 0344:0304
2970
2971 The above example allows filenames to have the swedish characters in
2972 them. 
2973
2974 NOTE: It is actually quite difficult to correctly produce a "valid
2975 chars" line for a particular system. To automate the process
2976 tino@augsburg.net has written a package called "validchars" which will
2977 automatically produce a complete "valid chars" line for a given client
2978 system. Look in the examples subdirectory for this package.
2979
2980 .SS valid users (S)
2981 This is a list of users that should be allowed to login to this
2982 service. A name starting with @ is interpreted as a UNIX group.
2983
2984 If this is empty (the default) then any user can login. If a username
2985 is in both this list and the "invalid users" list then access is
2986 denied for that user.
2987
2988 The current servicename is substituted for %S. This is useful in the
2989 [homes] section.
2990
2991 See also "invalid users"
2992
2993 .B Default
2994         No valid users list. (anyone can login)
2995
2996 .B Example
2997         valid users = greg, @pcusers
2998
2999 .SS volume (S)
3000 This allows you to override the volume label returned for a
3001 share. Useful for CDROMs with installation programs that insist on a
3002 particular volume label.
3003
3004 The default is the name of the share
3005
3006 .SS wide links (S)
3007 This parameter controls whether or not links in the UNIX file system may be
3008 followed by the server. Links that point to areas within the directory tree
3009 exported by the server are always allowed; this parameter controls access 
3010 only to areas that are outside the directory tree being exported.
3011
3012 .B Default:
3013         wide links = yes
3014
3015 .B Example:
3016         wide links = no
3017
3018 .SS wins proxy (G)
3019
3020 This is a boolean that controls if nmbd will respond to broadcast name
3021 queries on behalf of other hosts. You may need to set this to no for
3022 some older clients.
3023
3024 .B Default:
3025         wins proxy = no
3026 .SS wins server (G)
3027
3028 This specifies the DNS name (or IP address) of the WINS server that Samba 
3029 should register with. If you have a WINS server on your network then you
3030 should set this to the WINS servers name.
3031
3032 You should point this at your WINS server if you have a multi-subnetted
3033 network.
3034 .B Default:
3035         wins server = 
3036
3037 .SS wins support (G)
3038
3039 This boolean controls if Samba will act as a WINS server. You should
3040 not set this to true unless you have a multi-subnetted network and
3041 you wish a particular nmbd to be your WINS server. Note that you
3042 should *NEVER* set this to true on more than one machine in your
3043 network.
3044
3045 .B Default:
3046         wins support = no
3047 .SS workgroup (G)
3048
3049 This controls what workgroup your server will appear to be in when
3050 queried by clients. 
3051
3052 .B Default:
3053         set in the Makefile
3054
3055 .B Example:
3056         workgroup = MYGROUP
3057
3058 .SS writable (S)
3059 A synonym for this parameter is 'write ok'. An inverted synonym is 'read only'.
3060
3061 If this parameter is 'no', then users of a service may not create or modify
3062 files in the service's directory.
3063
3064 Note that a printable service ('printable = yes') will ALWAYS allow 
3065 writing to the directory (user privileges permitting), but only via
3066 spooling operations.
3067
3068 .B Default:
3069         writable = no
3070
3071 .B Examples:
3072         read only = no
3073         writable = yes
3074         write ok = yes
3075 .SS write list (S)
3076 This is a list of users that are given read-write access to a
3077 service. If the connecting user is in this list then they will be
3078 given write access, no matter what the "read only" option is set
3079 to. The list can include group names using the @group syntax.
3080
3081 Note that if a user is in both the read list and the write list then
3082 they will be given write access.
3083
3084 See also the "read list" option
3085
3086 .B Default:
3087      write list =
3088
3089 .B Example:
3090      write list = admin, root, @staff
3091
3092 .SS write ok (S)
3093 See
3094 .B writable
3095 and
3096 .B read only.
3097 .SS write raw (G)
3098 This parameter controls whether or not the server will support raw writes when
3099 transferring data from clients.
3100
3101 .B Default:
3102         write raw = yes
3103
3104 .B Example:
3105         write raw = no
3106 .SH NOTE ABOUT USERNAME/PASSWORD VALIDATION
3107 There are a number of ways in which a user can connect to a
3108 service. The server follows the following steps in determining if it
3109 will allow a connection to a specified service. If all the steps fail
3110 then the connection request is rejected. If one of the steps pass then
3111 the following steps are not checked.
3112
3113 If the service is marked "guest only = yes" then steps 1 to 5 are skipped
3114
3115 Step 1: If the client has passed a username/password pair and that
3116 username/password pair is validated by the UNIX system's password
3117 programs then the connection is made as that username. Note that this
3118 includes the \e\eserver\eservice%username method of passing a username.
3119
3120 Step 2: If the client has previously registered a username with the
3121 system and now supplies a correct password for that username then the
3122 connection is allowed.
3123
3124 Step 3: The client's netbios name and any previously used user names
3125 are checked against the supplied password, if they match then the
3126 connection is allowed as the corresponding user.
3127
3128 Step 4: If the client has previously validated a username/password
3129 pair with the server and the client has passed the validation token
3130 then that username is used. This step is skipped if "revalidate = yes" 
3131 for this service.
3132
3133 Step 5: If a "user = " field is given in the smb.conf file for the
3134 service and the client has supplied a password, and that password
3135 matches (according to the UNIX system's password checking) with one of
3136 the usernames from the user= field then the connection is made as the
3137 username in the "user=" line. If one of the username in the user= list
3138 begins with a @ then that name expands to a list of names in the group
3139 of the same name.
3140
3141 Step 6: If the service is a guest service then a connection is made as
3142 the username given in the "guest account =" for the service,
3143 irrespective of the supplied password.
3144 .SH WARNINGS
3145 Although the configuration file permits service names to contain spaces, 
3146 your client software may not. Spaces will be ignored in comparisons anyway,
3147 so it shouldn't be a problem - but be aware of the possibility.
3148
3149 On a similar note, many clients - especially DOS clients - limit service
3150 names to eight characters. Smbd has no such limitation, but attempts
3151 to connect from such clients will fail if they truncate the service names.
3152 For this reason you should probably keep your service names down to eight 
3153 characters in length.
3154
3155 Use of the [homes] and [printers] special sections make life for an 
3156 administrator easy, but the various combinations of default attributes can be
3157 tricky. Take extreme care when designing these sections. In particular,
3158 ensure that the permissions on spool directories are correct.
3159 .SH VERSION
3160 This man page is (mostly) correct for version 1.9.16 of the Samba suite, plus some
3161 of the recent patches to it. These notes will necessarily lag behind 
3162 development of the software, so it is possible that your version of 
3163 the server has extensions or parameter semantics that differ from or are not 
3164 covered by this man page. Please notify these to the address below for 
3165 rectification.
3166
3167 Prior to version 1.5.21 of the Samba suite, the configuration file was
3168 radically different (more primitive). If you are using a version earlier than
3169 1.8.05, it is STRONGLY recommended that you upgrade.
3170 .SH OPTIONS
3171 Not applicable.
3172 .SH FILES
3173 Not applicable.
3174 .SH ENVIRONMENT VARIABLES
3175 Not applicable.
3176 .SH SEE ALSO
3177 .BR smbd (8),
3178 .BR smbclient (1),
3179 .BR nmbd (8),
3180 .BR testparm (1), 
3181 .BR testprns (1),
3182 .BR lpq (1),
3183 .BR hosts_access (5)
3184 .SH DIAGNOSTICS
3185 [This section under construction]
3186
3187 Most diagnostics issued by the server are logged in a specified log file. The
3188 log file name is specified at compile time, but may be overridden on the
3189 smbd command line (see
3190 .BR smbd (8)).
3191
3192 The number and nature of diagnostics available depends on the debug level used
3193 by the server. If you have problems, set the debug level to 3 and peruse the
3194 log files.
3195
3196 Most messages are reasonably self-explanatory. Unfortunately, at time of
3197 creation of this man page the source code is still too fluid to warrant
3198 describing each and every diagnostic. At this stage your best bet is still
3199 to grep the source code and inspect the conditions that gave rise to the 
3200 diagnostics you are seeing.
3201 .SH BUGS
3202 None known.
3203
3204 Please send bug reports, comments and so on to:
3205
3206 .RS 3
3207 .B samba-bugs@samba.anu.edu.au (Andrew Tridgell)
3208
3209 .RS 3
3210 or to the mailing list:
3211 .RE
3212
3213 .B samba@listproc.anu.edu.au
3214
3215 .RE
3216 You may also like to subscribe to the announcement channel:
3217
3218 .RS 3
3219 .B samba-announce@listproc.anu.edu.au
3220 .RE
3221
3222 To subscribe to these lists send a message to
3223 listproc@listproc.anu.edu.au with a body of "subscribe samba Your
3224 Name" or "subscribe samba-announce Your Name".
3225
3226 Errors or suggestions for improvements to the Samba man pages should be 
3227 mailed to:
3228
3229 .RS 3
3230 .B samba-bugs@samba.anu.edu.au (Andrew Tridgell)
3231 .RE
3232