Changeset 368 for branches/samba-3.3.x/docs/manpages/smb.conf.5
- Timestamp:
- Jan 15, 2010, 8:21:06 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/docs/manpages/smb.conf.5
r342 r368 1 '\" t 1 2 .\" Title: smb.conf 2 3 .\" Author: [see the "AUTHOR" section] 3 .\" Generator: DocBook XSL Stylesheets v1.7 4.0<http://docbook.sf.net/>4 .\" Date: 10/12/20094 .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/> 5 .\" Date: 01/14/2010 5 6 .\" Manual: File Formats and Conventions 6 7 .\" Source: Samba 3.3 7 8 .\" Language: English 8 9 .\" 9 .TH "SMB\&.CONF" "5" "10/12/2009" "Samba 3\&.3" "File Formats and Conventions" 10 .\" ----------------------------------------------------------------- 11 .\" * (re)Define some macros 12 .\" ----------------------------------------------------------------- 13 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 14 .\" toupper - uppercase a string (locale-aware) 15 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 16 .de toupper 17 .tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ 18 \\$* 19 .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz 20 .. 21 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 22 .\" SH-xref - format a cross-reference to an SH section 23 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 24 .de SH-xref 25 .ie n \{\ 26 .\} 27 .toupper \\$* 28 .el \{\ 29 \\$* 30 .\} 31 .. 32 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 33 .\" SH - level-one heading that works better for non-TTY output 34 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 35 .de1 SH 36 .\" put an extra blank line of space above the head in non-TTY output 37 .if t \{\ 38 .sp 1 39 .\} 40 .sp \\n[PD]u 41 .nr an-level 1 42 .set-an-margin 43 .nr an-prevailing-indent \\n[IN] 44 .fi 45 .in \\n[an-margin]u 46 .ti 0 47 .HTML-TAG ".NH \\n[an-level]" 48 .it 1 an-trap 49 .nr an-no-space-flag 1 50 .nr an-break-flag 1 51 \." make the size of the head bigger 52 .ps +3 53 .ft B 54 .ne (2v + 1u) 55 .ie n \{\ 56 .\" if n (TTY output), use uppercase 57 .toupper \\$* 58 .\} 59 .el \{\ 60 .nr an-break-flag 0 61 .\" if not n (not TTY), use normal case (not uppercase) 62 \\$1 63 .in \\n[an-margin]u 64 .ti 0 65 .\" if not n (not TTY), put a border/line under subheading 66 .sp -.6 67 \l'\n(.lu' 68 .\} 69 .. 70 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 .\" SS - level-two heading that works better for non-TTY output 72 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 .de1 SS 74 .sp \\n[PD]u 75 .nr an-level 1 76 .set-an-margin 77 .nr an-prevailing-indent \\n[IN] 78 .fi 79 .in \\n[IN]u 80 .ti \\n[SN]u 81 .it 1 an-trap 82 .nr an-no-space-flag 1 83 .nr an-break-flag 1 84 .ps \\n[PS-SS]u 85 \." make the size of the head bigger 86 .ps +2 87 .ft B 88 .ne (2v + 1u) 89 .if \\n[.$] \&\\$* 90 .. 91 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 92 .\" BB/BE - put background/screen (filled box) around block of text 93 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 94 .de BB 95 .if t \{\ 96 .sp -.5 97 .br 98 .in +2n 99 .ll -2n 100 .gcolor red 101 .di BX 102 .\} 103 .. 104 .de EB 105 .if t \{\ 106 .if "\\$2"adjust-for-leading-newline" \{\ 107 .sp -1 108 .\} 109 .br 110 .di 111 .in 112 .ll 113 .gcolor 114 .nr BW \\n(.lu-\\n(.i 115 .nr BH \\n(dn+.5v 116 .ne \\n(BHu+.5v 117 .ie "\\$2"adjust-for-leading-newline" \{\ 118 \M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] 119 .\} 120 .el \{\ 121 \M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] 122 .\} 123 .in 0 124 .sp -.5v 125 .nf 126 .BX 127 .in 128 .sp .5v 129 .fi 130 .\} 131 .. 132 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 133 .\" BM/EM - put colored marker in margin next to block of text 134 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 135 .de BM 136 .if t \{\ 137 .br 138 .ll -2n 139 .gcolor red 140 .di BX 141 .\} 142 .. 143 .de EM 144 .if t \{\ 145 .br 146 .di 147 .ll 148 .gcolor 149 .nr BH \\n(dn 150 .ne \\n(BHu 151 \M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] 152 .in 0 153 .nf 154 .BX 155 .in 156 .fi 157 .\} 158 .. 10 .TH "SMB\&.CONF" "5" "01/14/2010" "Samba 3\&.3" "File Formats and Conventions" 159 11 .\" ----------------------------------------------------------------- 160 12 .\" * set default formatting … … 167 19 .\" * MAIN CONTENT STARTS HERE * 168 20 .\" ----------------------------------------------------------------- 169 .SH "N ame"21 .SH "NAME" 170 22 smb.conf \- The configuration file for the Samba suite 171 23 .SH "SYNOPSIS" 172 24 .PP 173 25 The 174 \FCsmb\&.conf\F[] 26 smb\&.conf 175 27 file is a configuration file for the Samba suite\&. 176 \FCsmb\&.conf\F[] 28 smb\&.conf 177 29 contains runtime configuration information for the Samba programs\&. The 178 \FCsmb\&.conf\F[] 30 smb\&.conf 179 31 file is designed to be configured and administered by the 180 32 \fBswat\fR(8) … … 187 39 .RS 4 188 40 .\} 189 .fam C190 .ps -1191 41 .nf 192 .if t \{\193 .sp -1194 .\}195 .BB lightgray adjust-for-leading-newline196 .sp -1197 198 42 \fIname\fR = \fIvalue \fR 199 .EB lightgray adjust-for-leading-newline200 .if t \{\201 .sp 1202 .\}203 43 .fi 204 .fam205 .ps +1206 44 .if n \{\ 207 45 .RE … … 217 55 .PP 218 56 Any line ending in a 219 \(lq\ FC\e\F[]\(rq57 \(lq\e\(rq 220 58 is continued on the next line in the customary UNIX fashion\&. 221 59 .PP … … 240 78 .PP 241 79 Sections other than guest services will require a password to access them\&. The client provides the username\&. As older clients only provide passwords and not usernames, you may specify a list of usernames to check against the password using the 242 \FCuser =\F[] 80 user = 243 81 option in the share definition\&. For modern clients such as Windows 95/98/ME/NT/2000, this should not be necessary\&. 244 82 .PP … … 246 84 .PP 247 85 The following sample section defines a file space share\&. The user has write access to the path 248 \FC/home/bar\F[]\&. The share is accessed via the share name249 \FCfoo\F[]:86 /home/bar\&. The share is accessed via the share name 87 foo: 250 88 .sp 251 89 .if n \{\ 252 90 .RS 4 253 91 .\} 254 .fam C255 .ps -1256 92 .nf 257 .if t \{\258 .sp -1259 .\}260 .BB lightgray adjust-for-leading-newline261 .sp -1262 263 93 \fI[foo]\fR 264 94 \m[blue]\fBpath = /home/bar\fR\m[] 265 95 \m[blue]\fBread only = no\fR\m[] 266 .EB lightgray adjust-for-leading-newline267 .if t \{\268 .sp 1269 .\}270 96 .fi 271 .fam272 .ps +1273 97 .if n \{\ 274 98 .RE … … 282 106 .RS 4 283 107 .\} 284 .fam C285 .ps -1286 108 .nf 287 .if t \{\288 .sp -1289 .\}290 .BB lightgray adjust-for-leading-newline291 .sp -1292 293 109 \fI[aprinter]\fR 294 110 \m[blue]\fBpath = /usr/spool/public\fR\m[] … … 296 112 \m[blue]\fBprintable = yes\fR\m[] 297 113 \m[blue]\fBguest ok = yes\fR\m[] 298 .EB lightgray adjust-for-leading-newline299 .if t \{\300 .sp 1301 .\}302 114 .fi 303 .fam304 .ps +1305 115 .if n \{\ 306 116 .RE … … 349 159 .RS 4 350 160 .\} 351 .fam C352 .ps -1353 161 .nf 354 .if t \{\355 .sp -1356 .\}357 .BB lightgray adjust-for-leading-newline358 .sp -1359 360 162 \fBpath = /data/pchome/%S\fR 361 .EB lightgray adjust-for-leading-newline362 .if t \{\363 .sp 1364 .\}365 163 .fi 366 .fam367 .ps +1368 164 .if n \{\ 369 165 .RE … … 382 178 .RS 4 383 179 .\} 384 .fam C385 .ps -1386 180 .nf 387 .if t \{\388 .sp -1389 .\}390 .BB lightgray adjust-for-leading-newline391 .sp -1392 393 181 \fI[homes]\fR 394 182 \m[blue]\fBread only = no\fR\m[] 395 .EB lightgray adjust-for-leading-newline396 .if t \{\397 .sp 1398 .\}399 183 .fi 400 .fam401 .ps +1402 184 .if n \{\ 403 185 .RE … … 464 246 .RS 4 465 247 .\} 466 .fam C467 .ps -1468 248 .nf 469 .if t \{\470 .sp -1471 .\}472 .BB lightgray adjust-for-leading-newline473 .sp -1474 475 249 \fI[printers]\fR 476 250 \m[blue]\fBpath = /usr/spool/public\fR\m[] 477 251 \m[blue]\fBguest ok = yes\fR\m[] 478 252 \m[blue]\fBprintable = yes\fR\m[] 479 .EB lightgray adjust-for-leading-newline480 .if t \{\481 .sp 1482 .\}483 253 .fi 484 .fam485 .ps +1486 254 .if n \{\ 487 255 .RE … … 493 261 .RS 4 494 262 .\} 495 .fam C496 .ps -1497 263 .nf 498 .if t \{\499 .sp -1500 .\}501 .BB lightgray adjust-for-leading-newline502 .sp -1503 504 264 alias|alias|alias|alias\&.\&.\&. 505 .EB lightgray adjust-for-leading-newline506 .if t \{\507 .sp 1508 .\}509 265 .fi 510 .fam511 .ps +1512 266 .if n \{\ 513 267 .RE … … 516 270 Each alias should be an acceptable printer name for your printing subsystem\&. In the [global] section, specify the new file as your printcap\&. The server will only recognize names found in your pseudo\-printcap, which of course can contain whatever aliases you like\&. The same technique could be used simply to limit access to a subset of your local printers\&. 517 271 .PP 518 An alias, by the way, is defined as any component of the first entry of a printcap record\&. Records are separated by newlines, components (if there are more than one) are separated by vertical bar symbols ( \FC|\F[])\&.272 An alias, by the way, is defined as any component of the first entry of a printcap record\&. Records are separated by newlines, components (if there are more than one) are separated by vertical bar symbols (|)\&. 519 273 .if n \{\ 520 274 .sp 521 275 .\} 522 276 .RS 4 523 .BM yellow524 277 .it 1 an-trap 525 278 .nr an-no-space-flag 1 … … 532 285 .PP 533 286 On SYSV systems which use lpstat to determine what printers are defined on the system you may be able to use 534 \FCprintcap name = lpstat\F[] 287 printcap name = lpstat 535 288 to automatically obtain a list of printers\&. See the 536 \FCprintcap name\F[] 289 printcap name 537 290 option for more details\&. 538 291 .sp .5v 539 .EM yellow540 292 .RE 541 293 .SH "USERSHARES" … … 581 333 .PP 582 334 To allow members of the UNIX group 583 \FCfoo\F[] 335 foo 584 336 to create user defined shares, create the directory to contain the share definitions as follows: 585 337 .PP … … 589 341 .RS 4 590 342 .\} 591 .fam C592 .ps -1593 343 .nf 594 .if t \{\595 .sp -1596 .\}597 .BB lightgray adjust-for-leading-newline598 .sp -1599 600 344 mkdir /usr/local/samba/lib/usershares 601 345 chgrp foo /usr/local/samba/lib/usershares 602 346 chmod 1770 /usr/local/samba/lib/usershares 603 .EB lightgray adjust-for-leading-newline604 .if t \{\605 .sp 1606 .\}607 347 .fi 608 .fam609 .ps +1610 348 .if n \{\ 611 349 .RE … … 617 355 .RS 4 618 356 .\} 619 .fam C620 .ps -1621 357 .nf 622 .if t \{\623 .sp -1624 .\}625 .BB lightgray adjust-for-leading-newline626 .sp -1627 628 358 \m[blue]\fBusershare path = /usr/local/samba/lib/usershares\fR\m[] 629 359 \m[blue]\fBusershare max shares = 10\fR\m[] # (or the desired number of shares) 630 .EB lightgray adjust-for-leading-newline631 .if t \{\632 .sp 1633 .\}634 360 .fi 635 .fam636 .ps +1637 361 .if n \{\ 638 362 .RE … … 640 364 .sp 641 365 to the global section of your 642 \FCsmb\&.conf\F[]\&. Members of the group foo may then manipulate the user defined shares using the following commands\&.366 smb\&.conf\&. Members of the group foo may then manipulate the user defined shares using the following commands\&. 643 367 .PP 644 368 net usershare add sharename path [comment] [acl] [guest_ok=[y|n]] … … 804 528 .RS 4 805 529 the path of the service\'s home directory, obtained from your NIS auto\&.map entry\&. The NIS auto\&.map entry is split up as 806 \FC%N:%p\F[]\&.530 %N:%p\&. 807 531 .RE 808 532 .PP 809 533 There are some quite creative things that can be done with these substitutions and other 810 \FCsmb\&.conf\F[] 534 smb\&.conf 811 535 options\&. 812 536 .SH "NAME MANGLING" 813 537 .PP 814 538 Samba supports 815 \FCname mangling\F[] 539 name mangling 816 540 so that DOS and Windows clients can use files that don\'t conform to the 8\&.3 format\&. It can also be set to adjust the case of 8\&.3 format filenames\&. 817 541 .PP … … 843 567 .RS 4 844 568 controls whether new files (ie\&. files that don\'t currently exist in the filesystem) are created with the case that the client passes, or if they are forced to be the 845 \FCdefault\F[] 569 default 846 570 case\&. Default 847 571 \fIyes\fR\&. … … 851 575 .RS 4 852 576 controls if new files (ie\&. files that don\'t currently exist in the filesystem) which conform to 8\&.3 syntax, that is all in upper case and of suitable length, are created upper case, or if they are forced to be the 853 \FCdefault\F[] 577 default 854 578 case\&. This option can be used with 855 \FCpreserve case = yes\F[] 579 preserve case = yes 856 580 to permit long filenames to retain their case, while short names are lowercased\&. Default 857 581 \fIyes\fR\&. … … 876 600 .\} 877 601 If the client has passed a username/password pair and that username/password pair is validated by the UNIX system\'s password programs, the connection is made as that username\&. This includes the 878 \ FC\e\eserver\eservice\F[]%\fIusername\fR602 \e\eserver\eservice%\fIusername\fR 879 603 method of passing a username\&. 880 604 .RE … … 922 646 .\} 923 647 If a 924 \FCuser = \F[] 648 user = 925 649 field is given in the 926 \FCsmb\&.conf\F[] 650 smb\&.conf 927 651 file for the service and the client has supplied a password, and that password matches (according to the UNIX system\'s password checking) with one of the usernames from the 928 \FCuser =\F[] 652 user = 929 653 field, the connection is made as the username in the 930 \FCuser =\F[] 654 user = 931 655 line\&. If one of the usernames in the 932 \FCuser =\F[] 656 user = 933 657 list begins with a 934 \FC@\F[], that name expands to a list of names in the group of the same name\&.658 @, that name expands to a list of names in the group of the same name\&. 935 659 .RE 936 660 .sp … … 944 668 .\} 945 669 If the service is a guest service, a connection is made as the username given in the 946 \FCguest account =\F[] 670 guest account = 947 671 for the service, irrespective of the supplied password\&. 948 672 .RE … … 950 674 .PP 951 675 Starting with Samba version 3\&.2\&.0, the capability to store Samba configuration in the registry is available\&. The configuration is stored in the registry key 952 \fI \FCHKLM\eSoftware\eSamba\esmbconf\F[]\fR\&. There are two levels of registry configuration:676 \fIHKLM\eSoftware\eSamba\esmbconf\fR\&. There are two levels of registry configuration: 953 677 .sp 954 678 .RS 4 … … 1013 737 \fInet (rpc) registry\fR 1014 738 in the key 1015 \fI \FCHKLM\eSoftware\eSamba\esmbconf\F[]\fR\&. More conveniently, the739 \fIHKLM\eSoftware\eSamba\esmbconf\fR\&. More conveniently, the 1016 740 \fIconf\fR 1017 741 subcommand of the … … 1034 758 .sp 1035 759 Default: 1036 \fI\fIabort shutdown script\fR\fR\fI = \fR\fI \FC""\F[]\fR\fI \fR1037 .sp 1038 Example: 1039 \fI\fIabort shutdown script\fR\fR\fI = \fR\fI \FC/sbin/shutdown \-c\F[]\fR\fI \fR760 \fI\fIabort shutdown script\fR\fR\fI = \fR\fI""\fR\fI \fR 761 .sp 762 Example: 763 \fI\fIabort shutdown script\fR\fR\fI = \fR\fI/sbin/shutdown \-c\fR\fI \fR 1040 764 .RE 1041 765 … … 1050 774 .sp 1051 775 Default: 1052 \fI\fIacl check permissions\fR\fR\fI = \fR\fI \FCTrue\F[]\fR\fI \fR776 \fI\fIacl check permissions\fR\fR\fI = \fR\fITrue\fR\fI \fR 1053 777 .RE 1054 778 … … 1066 790 .sp 1067 791 Default: 1068 \fI\fIacl compatibility\fR\fR\fI = \fR\fI \FCAuto\F[]\fR\fI \fR1069 .sp 1070 Example: 1071 \fI\fIacl compatibility\fR\fR\fI = \fR\fI \FCwin2k\F[]\fR\fI \fR792 \fI\fIacl compatibility\fR\fR\fI = \fR\fIAuto\fR\fI \fR 793 .sp 794 Example: 795 \fI\fIacl compatibility\fR\fR\fI = \fR\fIwin2k\fR\fI \fR 1072 796 .RE 1073 797 … … 1095 819 .sp 1096 820 Default: 1097 \fI\fIacl group control\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR821 \fI\fIacl group control\fR\fR\fI = \fR\fIno\fR\fI \fR 1098 822 .RE 1099 823 … … 1106 830 .sp 1107 831 Default: 1108 \fI\fIacl map full control\fR\fR\fI = \fR\fI \FCTrue\F[]\fR\fI \fR832 \fI\fIacl map full control\fR\fR\fI = \fR\fITrue\fR\fI \fR 1109 833 .RE 1110 834 … … 1122 846 .sp 1123 847 Default: 1124 \fI\fIadd group script\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR1125 .sp 1126 Example: 1127 \fI\fIadd group script\fR\fR\fI = \fR\fI \FC/usr/sbin/groupadd %g\F[]\fR\fI \fR848 \fI\fIadd group script\fR\fR\fI = \fR\fI\fR\fI \fR 849 .sp 850 Example: 851 \fI\fIadd group script\fR\fR\fI = \fR\fI/usr/sbin/groupadd %g\fR\fI \fR 1128 852 .RE 1129 853 … … 1140 864 .sp 1141 865 Default: 1142 \fI\fIadd machine script\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR1143 .sp 1144 Example: 1145 \fI\fIadd machine script\fR\fR\fI = \fR\fI \FC/usr/sbin/adduser \-n \-g machines \-c Machine \-d /var/lib/nobody \-s /bin/false %u\F[]\fR\fI \fR866 \fI\fIadd machine script\fR\fR\fI = \fR\fI\fR\fI \fR 867 .sp 868 Example: 869 \fI\fIadd machine script\fR\fR\fI = \fR\fI/usr/sbin/adduser \-n \-g machines \-c Machine \-d /var/lib/nobody \-s /bin/false %u\fR\fI \fR 1146 870 .RE 1147 871 … … 1177 901 .sp 1178 902 Default: 1179 \fI\fIadd port command\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR1180 .sp 1181 Example: 1182 \fI\fIadd port command\fR\fR\fI = \fR\fI \FC/etc/samba/scripts/addport\&.sh\F[]\fR\fI \fR903 \fI\fIadd port command\fR\fR\fI = \fR\fI\fR\fI \fR 904 .sp 905 Example: 906 \fI\fIadd port command\fR\fR\fI = \fR\fI/etc/samba/scripts/addport\&.sh\fR\fI \fR 1183 907 .RE 1184 908 … … 1192 916 \fIaddprinter command\fR 1193 917 defines a script to be run which will perform the necessary operations for adding the printer to the print system and to add the appropriate service definition to the 1194 \FCsmb\&.conf\F[] 918 smb\&.conf 1195 919 file in order that it can be shared by 1196 920 \fBsmbd\fR(8)\&. … … 1271 995 \fIaddprinter command\fR 1272 996 has been executed, 1273 \FCsmbd\F[] 997 smbd 1274 998 will reparse the 1275 \FC smb\&.conf\F[] 999 smb\&.conf 1276 1000 to determine if the share defined by the APW exists\&. If the sharename is still invalid, then 1277 \FCsmbd \F[] 1001 smbd 1278 1002 will return an ACCESS_DENIED error to the client\&. 1279 1003 .sp … … 1283 1007 .sp 1284 1008 Default: 1285 \fI\fIaddprinter command\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR1286 .sp 1287 Example: 1288 \fI\fIaddprinter command\fR\fR\fI = \fR\fI \FC/usr/bin/addprinter\F[]\fR\fI \fR1009 \fI\fIaddprinter command\fR\fR\fI = \fR\fI\fR\fI \fR 1010 .sp 1011 Example: 1012 \fI\fIaddprinter command\fR\fR\fI = \fR\fI/usr/bin/addprinter\fR\fI \fR 1289 1013 .RE 1290 1014 … … 1296 1020 \fIadd share command\fR 1297 1021 is used to define an external program or script which will add a new service definition to 1298 \FCsmb\&.conf\F[]\&.1022 smb\&.conf\&. 1299 1023 .sp 1300 1024 In order to successfully execute the 1301 1025 \fIadd share command\fR, 1302 \FCsmbd\F[] 1026 smbd 1303 1027 requires that the administrator connects using a root account (i\&.e\&. uid == 0) or has the 1304 \FCSeDiskOperatorPrivilege\F[]\&. Scripts defined in the1028 SeDiskOperatorPrivilege\&. Scripts defined in the 1305 1029 \fIadd share command\fR 1306 1030 parameter are executed as root\&. 1307 1031 .sp 1308 1032 When executed, 1309 \FCsmbd\F[] 1033 smbd 1310 1034 will automatically invoke the 1311 1035 \fIadd share command\fR … … 1322 1046 \fIconfigFile\fR 1323 1047 \- the location of the global 1324 \FCsmb\&.conf\F[] 1048 smb\&.conf 1325 1049 file\&. 1326 1050 .RE … … 1378 1102 .sp 1379 1103 Default: 1380 \fI\fIadd share command\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR1381 .sp 1382 Example: 1383 \fI\fIadd share command\fR\fR\fI = \fR\fI \FC/usr/local/bin/addshare\F[]\fR\fI \fR1104 \fI\fIadd share command\fR\fR\fI = \fR\fI\fR\fI \fR 1105 .sp 1106 Example: 1107 \fI\fIadd share command\fR\fR\fI = \fR\fI/usr/local/bin/addshare\fR\fI \fR 1384 1108 .RE 1385 1109 … … 1414 1138 \m[blue]\fBpassword server\fR\m[] 1415 1139 and attempts to authenticate the given user with the given password\&. If the authentication succeeds then 1416 \FCsmbd\F[] 1140 smbd 1417 1141 attempts to find a UNIX user in the UNIX password database to map the Windows user into\&. If this lookup fails, and 1418 1142 \m[blue]\fBadd user script\fR\m[] 1419 1143 is set then 1420 \FCsmbd\F[] 1144 smbd 1421 1145 will call the specified script 1422 1146 \fIAS ROOT\fR, expanding any … … 1425 1149 .sp 1426 1150 If this script successfully creates the user then 1427 \FCsmbd\F[] 1151 smbd 1428 1152 will continue on as though the UNIX user already existed\&. In this way, UNIX users are dynamically created to match existing Windows NT accounts\&. 1429 1153 .sp … … 1434 1158 .sp 1435 1159 Default: 1436 \fI\fIadd user script\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR1437 .sp 1438 Example: 1439 \fI\fIadd user script\fR\fR\fI = \fR\fI \FC/usr/local/samba/bin/add_user %u\F[]\fR\fI \fR1160 \fI\fIadd user script\fR\fR\fI = \fR\fI\fR\fI \fR 1161 .sp 1162 Example: 1163 \fI\fIadd user script\fR\fR\fI = \fR\fI/usr/local/samba/bin/add_user %u\fR\fI \fR 1440 1164 .RE 1441 1165 … … 1453 1177 .sp 1454 1178 Note that the 1455 \FCadduser\F[] 1179 adduser 1456 1180 command used in the example below does not support the used syntax on all systems\&. 1457 1181 .sp 1458 1182 Default: 1459 \fI\fIadd user to group script\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR1460 .sp 1461 Example: 1462 \fI\fIadd user to group script\fR\fR\fI = \fR\fI \FC/usr/sbin/adduser %u %g\F[]\fR\fI \fR1183 \fI\fIadd user to group script\fR\fR\fI = \fR\fI\fR\fI \fR 1184 .sp 1185 Example: 1186 \fI\fIadd user to group script\fR\fR\fI = \fR\fI/usr/sbin/adduser %u %g\fR\fI \fR 1463 1187 .RE 1464 1188 … … 1476 1200 .sp 1477 1201 Default: 1478 \fI\fIadministrative share\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR1202 \fI\fIadministrative share\fR\fR\fI = \fR\fIno\fR\fI \fR 1479 1203 .RE 1480 1204 … … 1492 1216 .sp 1493 1217 Default: 1494 \fI\fIadmin users\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR1495 .sp 1496 Example: 1497 \fI\fIadmin users\fR\fR\fI = \fR\fI \FCjason\F[]\fR\fI \fR1218 \fI\fIadmin users\fR\fR\fI = \fR\fI\fR\fI \fR 1219 .sp 1220 Example: 1221 \fI\fIadmin users\fR\fR\fI = \fR\fIjason\fR\fI \fR 1498 1222 .RE 1499 1223 … … 1507 1231 .sp 1508 1232 Default: 1509 \fI\fIafs share\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR1233 \fI\fIafs share\fR\fR\fI = \fR\fIno\fR\fI \fR 1510 1234 .RE 1511 1235 … … 1519 1243 .sp 1520 1244 Default: 1521 \fI\fIafs username map\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR1522 .sp 1523 Example: 1524 \fI\fIafs username map\fR\fR\fI = \fR\fI \FC%u@afs\&.samba\&.org\F[]\fR\fI \fR1245 \fI\fIafs username map\fR\fR\fI = \fR\fI\fR\fI \fR 1246 .sp 1247 Example: 1248 \fI\fIafs username map\fR\fR\fI = \fR\fI%u@afs\&.samba\&.org\fR\fI \fR 1525 1249 .RE 1526 1250 … … 1540 1264 .sp 1541 1265 Default: 1542 \fI\fIaio read size\fR\fR\fI = \fR\fI\FC0\F[]\fR\fI \fR 1543 .sp 1544 Example: 1545 \fI\fIaio read size\fR\fR\fI = \fR\fI\FC16384 # Use asynchronous I/O for reads bigger than 16KB request size\F[]\fR\fI \fR 1266 \fI\fIaio read size\fR\fR\fI = \fR\fI0\fR\fI \fR 1267 .sp 1268 Example: 1269 \fI\fIaio read size\fR\fR\fI = \fR\fI16384 # Use asynchronous I/O for reads bigger than 16KB request size\fR\fI \fR 1270 .RE 1271 1272 aio write behind (S) 1273 .\" aio write behind 1274 .PP 1275 .RS 4 1276 If Samba has been built with asynchronous I/O support, Samba will not wait until write requests are finished before returning the result to the client for files listed in this parameter\&. Instead, Samba will immediately return that the write request has been finished successfully, no matter if the operation will succeed or not\&. This might speed up clients without aio support, but is really dangerous, because data could be lost and files could be damaged\&. 1277 .sp 1278 The syntax is identical to the 1279 \m[blue]\fBveto files\fR\m[] 1280 parameter\&. 1281 .sp 1282 Default: 1283 \fI\fIaio write behind\fR\fR\fI = \fR\fI\fR\fI \fR 1284 .sp 1285 Example: 1286 \fI\fIaio write behind\fR\fR\fI = \fR\fI/*\&.tmp/\fR\fI \fR 1546 1287 .RE 1547 1288 … … 1561 1302 .sp 1562 1303 Default: 1563 \fI\fIaio write size\fR\fR\fI = \fR\fI \FC0\F[]\fR\fI \fR1564 .sp 1565 Example: 1566 \fI\fIaio write size\fR\fR\fI = \fR\fI \FC16384 # Use asynchronous I/O for writes bigger than 16KB request size\F[]\fR\fI \fR1304 \fI\fIaio write size\fR\fR\fI = \fR\fI0\fR\fI \fR 1305 .sp 1306 Example: 1307 \fI\fIaio write size\fR\fR\fI = \fR\fI16384 # Use asynchronous I/O for writes bigger than 16KB request size\fR\fI \fR 1567 1308 .RE 1568 1309 … … 1578 1319 .sp 1579 1320 Default: 1580 \fI\fIalgorithmic rid base\fR\fR\fI = \fR\fI \FC1000\F[]\fR\fI \fR1581 .sp 1582 Example: 1583 \fI\fIalgorithmic rid base\fR\fR\fI = \fR\fI \FC100000\F[]\fR\fI \fR1321 \fI\fIalgorithmic rid base\fR\fR\fI = \fR\fI1000\fR\fI \fR 1322 .sp 1323 Example: 1324 \fI\fIalgorithmic rid base\fR\fR\fI = \fR\fI100000\fR\fI \fR 1584 1325 .RE 1585 1326 … … 1593 1334 .sp 1594 1335 Default: 1595 \fI\fIallocation roundup size\fR\fR\fI = \fR\fI \FC1048576\F[]\fR\fI \fR1596 .sp 1597 Example: 1598 \fI\fIallocation roundup size\fR\fR\fI = \fR\fI \FC0 # (to disable roundups)\F[]\fR\fI \fR1336 \fI\fIallocation roundup size\fR\fR\fI = \fR\fI1048576\fR\fI \fR 1337 .sp 1338 Example: 1339 \fI\fIallocation roundup size\fR\fR\fI = \fR\fI0 # (to disable roundups)\fR\fI \fR 1599 1340 .RE 1600 1341 … … 1614 1355 .sp 1615 1356 Default: 1616 \fI\fIallow trusted domains\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR1357 \fI\fIallow trusted domains\fR\fR\fI = \fR\fIyes\fR\fI \fR 1617 1358 .RE 1618 1359 … … 1626 1367 .sp 1627 1368 Default: 1628 \fI\fIannounce as\fR\fR\fI = \fR\fI \FCNT Server\F[]\fR\fI \fR1629 .sp 1630 Example: 1631 \fI\fIannounce as\fR\fR\fI = \fR\fI \FCWin95\F[]\fR\fI \fR1369 \fI\fIannounce as\fR\fR\fI = \fR\fINT Server\fR\fI \fR 1370 .sp 1371 Example: 1372 \fI\fIannounce as\fR\fR\fI = \fR\fIWin95\fR\fI \fR 1632 1373 .RE 1633 1374 … … 1639 1380 .sp 1640 1381 Default: 1641 \fI\fIannounce version\fR\fR\fI = \fR\fI \FC4\&.9\F[]\fR\fI \fR1642 .sp 1643 Example: 1644 \fI\fIannounce version\fR\fR\fI = \fR\fI \FC2\&.0\F[]\fR\fI \fR1382 \fI\fIannounce version\fR\fR\fI = \fR\fI4\&.9\fR\fI \fR 1383 .sp 1384 Example: 1385 \fI\fIannounce version\fR\fR\fI = \fR\fI2\&.0\fR\fI \fR 1645 1386 .RE 1646 1387 … … 1650 1391 .RS 4 1651 1392 This option allows the administrator to chose what authentication methods 1652 \FCsmbd\F[] 1393 smbd 1653 1394 will use when authenticating a user\&. This option defaults to sensible values based on 1654 1395 \m[blue]\fBsecurity\fR\m[]\&. This should be considered a developer option and used only in rare circumstances\&. In the majority (if not all) of production servers, the default setting should be adequate\&. … … 1669 1410 .sp 1670 1411 Default: 1671 \fI\fIauth methods\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR1672 .sp 1673 Example: 1674 \fI\fIauth methods\fR\fR\fI = \fR\fI \FCguest sam winbind\F[]\fR\fI \fR1412 \fI\fIauth methods\fR\fR\fI = \fR\fI\fR\fI \fR 1413 .sp 1414 Example: 1415 \fI\fIauth methods\fR\fR\fI = \fR\fIguest sam winbind\fR\fI \fR 1675 1416 .RE 1676 1417 … … 1685 1426 .sp 1686 1427 Default: 1687 \fI\fIavailable\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR1428 \fI\fIavailable\fR\fR\fI = \fR\fIyes\fR\fI \fR 1688 1429 .RE 1689 1430 … … 1699 1440 .sp 1700 1441 For name service it causes 1701 \FCnmbd\F[] 1442 nmbd 1702 1443 to bind to ports 137 and 138 on the interfaces listed in the 1703 1444 \m[blue]\fBinterfaces\fR\m[] 1704 1445 parameter\&. 1705 \FCnmbd\F[] 1446 nmbd 1706 1447 also binds to the "all addresses" interface (0\&.0\&.0\&.0) on ports 137 and 138 for the purposes of reading broadcast messages\&. If this option is not set then 1707 \FCnmbd\F[] 1448 nmbd 1708 1449 will service name requests on all of these sockets\&. If 1709 1450 \m[blue]\fBbind interfaces only\fR\m[] 1710 1451 is set then 1711 \FCnmbd\F[] 1452 nmbd 1712 1453 will check the source address of any packets coming in on the broadcast sockets and discard any that don\'t match the broadcast addresses of the interfaces in the 1713 1454 \m[blue]\fBinterfaces\fR\m[] 1714 1455 parameter list\&. As unicast packets are received on the other sockets it allows 1715 \FCnmbd\F[] 1456 nmbd 1716 1457 to refuse to serve names to machines that send packets that arrive through any interfaces not listed in the 1717 1458 \m[blue]\fBinterfaces\fR\m[] 1718 1459 list\&. IP Source address spoofing does defeat this simple check, however, so it must not be used seriously as a security feature for 1719 \FCnmbd\F[]\&.1460 nmbd\&. 1720 1461 .sp 1721 1462 For file service it causes … … 1724 1465 \m[blue]\fBinterfaces\fR\m[] 1725 1466 parameter\&. This restricts the networks that 1726 \FCsmbd\F[] 1467 smbd 1727 1468 will serve, to packets coming in on those interfaces\&. Note that you should not use this parameter for machines that are serving PPP or other intermittent or non\-broadcast network interfaces as it will not cope with non\-permanent interfaces\&. 1728 1469 .sp … … 1740 1481 .sp 1741 1482 To change a users SMB password, the 1742 \FCsmbpasswd\F[] 1483 smbpasswd 1743 1484 by default connects to the 1744 1485 \fIlocalhost \- 127\&.0\&.0\&.1\fR … … 1750 1491 \m[blue]\fBinterfaces\fR\m[] 1751 1492 parameter list then 1752 \FC smbpasswd\F[] 1493 smbpasswd 1753 1494 will fail to connect in it\'s default mode\&. 1754 \FCsmbpasswd\F[] 1495 smbpasswd 1755 1496 can be forced to use the primary IP interface of the local host by using its 1756 1497 \fBsmbpasswd\fR(8) … … 1761 1502 .sp 1762 1503 The 1763 \FCswat\F[] 1504 swat 1764 1505 status page tries to connect with 1765 \FCsmbd\F[] 1506 smbd 1766 1507 and 1767 \FCnmbd\F[] 1508 nmbd 1768 1509 at the address 1769 1510 \fI127\&.0\&.0\&.1\fR … … 1771 1512 \fI127\&.0\&.0\&.1\fR 1772 1513 will cause 1773 \FC smbd\F[] 1514 smbd 1774 1515 and 1775 \FCnmbd\F[] 1516 nmbd 1776 1517 to always show "not running" even if they really are\&. This can prevent 1777 \FC swat\F[] 1518 swat 1778 1519 from starting/stopping/restarting 1779 \FCsmbd\F[] 1520 smbd 1780 1521 and 1781 \FCnmbd\F[]\&.1782 .sp 1783 Default: 1784 \fI\fIbind interfaces only\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR1522 nmbd\&. 1523 .sp 1524 Default: 1525 \fI\fIbind interfaces only\fR\fR\fI = \fR\fIno\fR\fI \fR 1785 1526 .RE 1786 1527 … … 1799 1540 .sp 1800 1541 Default: 1801 \fI\fIblocking locks\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR1542 \fI\fIblocking locks\fR\fR\fI = \fR\fIyes\fR\fI \fR 1802 1543 .RE 1803 1544 … … 1815 1556 .sp 1816 1557 Default: 1817 \fI\fIblock size\fR\fR\fI = \fR\fI \FC1024\F[]\fR\fI \fR1818 .sp 1819 Example: 1820 \fI\fIblock size\fR\fR\fI = \fR\fI \FC4096\F[]\fR\fI \fR1558 \fI\fIblock size\fR\fR\fI = \fR\fI1024\fR\fI \fR 1559 .sp 1560 Example: 1561 \fI\fIblock size\fR\fR\fI = \fR\fI4096\fR\fI \fR 1821 1562 .RE 1822 1563 … … 1836 1577 .sp 1837 1578 Default: 1838 \fI\fIbrowseable\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR1579 \fI\fIbrowseable\fR\fR\fI = \fR\fIyes\fR\fI \fR 1839 1580 .RE 1840 1581 … … 1846 1587 \fBsmbd\fR(8) 1847 1588 will serve a browse list to a client doing a 1848 \FCNetServerEnum\F[] 1589 NetServerEnum 1849 1590 call\&. Normally set to 1850 1591 \fByes\fR\&. You should never need to change this\&. 1851 1592 .sp 1852 1593 Default: 1853 \fI\fIbrowse list\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR1594 \fI\fIbrowse list\fR\fR\fI = \fR\fIyes\fR\fI \fR 1854 1595 .RE 1855 1596 … … 1870 1611 .sp 1871 1612 Default: 1872 \fI\fIcase sensitive\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR1613 \fI\fIcase sensitive\fR\fR\fI = \fR\fIno\fR\fI \fR 1873 1614 .RE 1874 1615 … … 1882 1623 .sp 1883 1624 Default: 1884 \fI\fIchange notify\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR1625 \fI\fIchange notify\fR\fR\fI = \fR\fIyes\fR\fI \fR 1885 1626 .RE 1886 1627 … … 1892 1633 \fIchange share command\fR 1893 1634 is used to define an external program or script which will modify an existing service definition in 1894 \FCsmb\&.conf\F[]\&.1635 smb\&.conf\&. 1895 1636 .sp 1896 1637 In order to successfully execute the 1897 1638 \fIchange share command\fR, 1898 \FCsmbd\F[] 1639 smbd 1899 1640 requires that the administrator connects using a root account (i\&.e\&. uid == 0) or has the 1900 \FCSeDiskOperatorPrivilege\F[]\&. Scripts defined in the1641 SeDiskOperatorPrivilege\&. Scripts defined in the 1901 1642 \fIchange share command\fR 1902 1643 parameter are executed as root\&. 1903 1644 .sp 1904 1645 When executed, 1905 \FCsmbd\F[] 1646 smbd 1906 1647 will automatically invoke the 1907 1648 \fIchange share command\fR … … 1918 1659 \fIconfigFile\fR 1919 1660 \- the location of the global 1920 \FCsmb\&.conf\F[] 1661 smb\&.conf 1921 1662 file\&. 1922 1663 .RE … … 1973 1714 .sp 1974 1715 Default: 1975 \fI\fIchange share command\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR1976 .sp 1977 Example: 1978 \fI\fIchange share command\fR\fR\fI = \fR\fI \FC/usr/local/bin/changeshare\F[]\fR\fI \fR1716 \fI\fIchange share command\fR\fR\fI = \fR\fI\fR\fI \fR 1717 .sp 1718 Example: 1719 \fI\fIchange share command\fR\fR\fI = \fR\fI/usr/local/bin/changeshare\fR\fI \fR 1979 1720 .RE 1980 1721 … … 1988 1729 .sp 1989 1730 Note: In the example directory is a sample program called 1990 \FCcrackcheck\F[] 1731 crackcheck 1991 1732 that uses cracklib to check the password quality\&. 1992 1733 .sp 1993 1734 Default: 1994 \fI\fIcheck password script\fR\fR\fI = \fR\fI \FCDisabled\F[]\fR\fI \fR1995 .sp 1996 Example: 1997 \fI\fIcheck password script\fR\fR\fI = \fR\fI \FC/usr/local/sbin/crackcheck\F[]\fR\fI \fR1735 \fI\fIcheck password script\fR\fR\fI = \fR\fIDisabled\fR\fI \fR 1736 .sp 1737 Example: 1738 \fI\fIcheck password script\fR\fR\fI = \fR\fI/usr/local/sbin/crackcheck\fR\fI \fR 1998 1739 .RE 1999 1740 … … 2009 1750 .sp 2010 1751 Disabling this option will also disable the 2011 \FCclient plaintext auth\F[] 1752 client plaintext auth 2012 1753 option\&. 2013 1754 .sp 2014 1755 Likewise, if the 2015 \FCclient ntlmv2 auth\F[] 1756 client ntlmv2 auth 2016 1757 parameter is enabled, then only NTLMv2 logins will be attempted\&. 2017 1758 .sp 2018 1759 Default: 2019 \fI\fIclient lanman auth\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR1760 \fI\fIclient lanman auth\fR\fR\fI = \fR\fIno\fR\fI \fR 2020 1761 .RE 2021 1762 … … 2038 1779 are only available if Samba has been compiled against a modern OpenLDAP version (2\&.3\&.x or higher)\&. 2039 1780 .sp 2040 This option is needed in the case of Domain Controllers enforcing the usage of signed LDAP connections (e\&.g\&. Windows 2000 SP3 or higher)\&. LDAP sign and seal can be controlled with the registry key " \FCHKLM\eSystem\eCurrentControlSet\eServices\e\F[]2041 \FCNTDS\eParameters\eLDAPServerIntegrity\F[]" on the Windows server side\&.1781 This option is needed in the case of Domain Controllers enforcing the usage of signed LDAP connections (e\&.g\&. Windows 2000 SP3 or higher)\&. LDAP sign and seal can be controlled with the registry key "HKLM\eSystem\eCurrentControlSet\eServices\e 1782 NTDS\eParameters\eLDAPServerIntegrity" on the Windows server side\&. 2042 1783 .sp 2043 1784 Depending on the used KRB5 library (MIT and older Heimdal versions) it is possible that the message "integrity only" is not supported\&. In this case, … … 2054 1795 .sp 2055 1796 Default: 2056 \fI\fIclient ldap sasl wrapping\fR\fR\fI = \fR\fI \FCplain\F[]\fR\fI \fR1797 \fI\fIclient ldap sasl wrapping\fR\fR\fI = \fR\fIplain\fR\fI \fR 2057 1798 .RE 2058 1799 … … 2068 1809 .sp 2069 1810 Similarly, if enabled, NTLMv1, 2070 \FCclient lanman auth\F[] 1811 client lanman auth 2071 1812 and 2072 \FCclient plaintext auth\F[] 1813 client plaintext auth 2073 1814 authentication will be disabled\&. This also disables share\-level authentication\&. 2074 1815 .sp 2075 1816 If disabled, an NTLM response (and possibly a LANMAN response) will be sent by the client, depending on the value of 2076 \FCclient lanman auth\F[]\&.1817 client lanman auth\&. 2077 1818 .sp 2078 1819 Note that some sites (particularly those following \'best practice\' security polices) only allow NTLMv2 responses, and not the weaker LM or NTLM\&. 2079 1820 .sp 2080 1821 Default: 2081 \fI\fIclient ntlmv2 auth\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR1822 \fI\fIclient ntlmv2 auth\fR\fR\fI = \fR\fIno\fR\fI \fR 2082 1823 .RE 2083 1824 … … 2089 1830 .sp 2090 1831 Default: 2091 \fI\fIclient plaintext auth\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR1832 \fI\fIclient plaintext auth\fR\fR\fI = \fR\fIno\fR\fI \fR 2092 1833 .RE 2093 1834 … … 2105 1846 .sp 2106 1847 Default: 2107 \fI\fIclient schannel\fR\fR\fI = \fR\fI \FCauto\F[]\fR\fI \fR2108 .sp 2109 Example: 2110 \fI\fIclient schannel\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR1848 \fI\fIclient schannel\fR\fR\fI = \fR\fIauto\fR\fI \fR 1849 .sp 1850 Example: 1851 \fI\fIclient schannel\fR\fR\fI = \fR\fIyes\fR\fI \fR 2111 1852 .RE 2112 1853 … … 2124 1865 .sp 2125 1866 Default: 2126 \fI\fIclient signing\fR\fR\fI = \fR\fI \FCauto\F[]\fR\fI \fR1867 \fI\fIclient signing\fR\fR\fI = \fR\fIauto\fR\fI \fR 2127 1868 .RE 2128 1869 … … 2134 1875 .sp 2135 1876 Default: 2136 \fI\fIclient use spnego\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR1877 \fI\fIclient use spnego\fR\fR\fI = \fR\fIyes\fR\fI \fR 2137 1878 .RE 2138 1879 … … 2144 1885 .sp 2145 1886 Default: 2146 \fI\fIcluster addresses\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR2147 .sp 2148 Example: 2149 \fI\fIcluster addresses\fR\fR\fI = \fR\fI \FC10\&.0\&.0\&.1 10\&.0\&.0\&.2 10\&.0\&.0\&.3\F[]\fR\fI \fR1887 \fI\fIcluster addresses\fR\fR\fI = \fR\fI\fR\fI \fR 1888 .sp 1889 Example: 1890 \fI\fIcluster addresses\fR\fR\fI = \fR\fI10\&.0\&.0\&.1 10\&.0\&.0\&.2 10\&.0\&.0\&.3\fR\fI \fR 2150 1891 .RE 2151 1892 … … 2157 1898 .sp 2158 1899 Set this parameter to 2159 \FCyes\F[] 1900 yes 2160 1901 only if you have a cluster setup with ctdb running\&. 2161 1902 .sp 2162 1903 Default: 2163 \fI\fIclustering\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR1904 \fI\fIclustering\fR\fR\fI = \fR\fIno\fR\fI \fR 2164 1905 .RE 2165 1906 … … 2169 1910 .RS 4 2170 1911 This is a text field that is seen next to a share when a client does a queries the server, either via the network neighborhood or via 2171 \FCnet view\F[] 1912 net view 2172 1913 to list what shares are available\&. 2173 1914 .sp … … 2177 1918 .sp 2178 1919 Default: 2179 \fI\fIcomment\fR\fR\fI = \fR\fI \FC # No comment\F[]\fR\fI \fR2180 .sp 2181 Example: 2182 \fI\fIcomment\fR\fR\fI = \fR\fI \FCFred\'s Files\F[]\fR\fI \fR1920 \fI\fIcomment\fR\fR\fI = \fR\fI # No comment\fR\fI \fR 1921 .sp 1922 Example: 1923 \fI\fIcomment\fR\fR\fI = \fR\fIFred\'s Files\fR\fI \fR 2183 1924 .RE 2184 1925 … … 2201 1942 .sp 2202 1943 Default: 2203 \fI\fIconfig backend\fR\fR\fI = \fR\fI \FCfile\F[]\fR\fI \fR2204 .sp 2205 Example: 2206 \fI\fIconfig backend\fR\fR\fI = \fR\fI \FCregistry\F[]\fR\fI \fR1944 \fI\fIconfig backend\fR\fR\fI = \fR\fIfile\fR\fI \fR 1945 .sp 1946 Example: 1947 \fI\fIconfig backend\fR\fR\fI = \fR\fIregistry\fR\fI \fR 2207 1948 .RE 2208 1949 … … 2212 1953 .RS 4 2213 1954 This allows you to override the config file to use, instead of the default (usually 2214 \FCsmb\&.conf\F[])\&. There is a chicken and egg problem here as this option is set in the config file!1955 smb\&.conf)\&. There is a chicken and egg problem here as this option is set in the config file! 2215 1956 .sp 2216 1957 For this reason, if the name of the config file has changed when the parameters are loaded then it will reload them from the new config file\&. … … 2223 1964 .sp 2224 1965 Example: 2225 \fI\fIconfig file\fR\fR\fI = \fR\fI \FC/usr/local/samba/lib/smb\&.conf\&.%m\F[]\fR\fI \fR1966 \fI\fIconfig file\fR\fR\fI = \fR\fI/usr/local/samba/lib/smb\&.conf\&.%m\fR\fI \fR 2226 1967 .RE 2227 1968 … … 2235 1976 .sp 2236 1977 Default: 2237 \fI\fIcopy\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR2238 .sp 2239 Example: 2240 \fI\fIcopy\fR\fR\fI = \fR\fI \FCotherservice\F[]\fR\fI \fR1978 \fI\fIcopy\fR\fR\fI = \fR\fI\fR\fI \fR 1979 .sp 1980 Example: 1981 \fI\fIcopy\fR\fR\fI = \fR\fIotherservice\fR\fI \fR 2241 1982 .RE 2242 1983 … … 2258 1999 .sp 2259 2000 The default value of this parameter removes the 2260 \FCgroup\F[] 2001 group 2261 2002 and 2262 \FCother\F[] 2003 other 2263 2004 write and execute bits from the UNIX modes\&. 2264 2005 .sp … … 2275 2016 .sp 2276 2017 Default: 2277 \fI\fIcreate mask\fR\fR\fI = \fR\fI \FC0744\F[]\fR\fI \fR2278 .sp 2279 Example: 2280 \fI\fIcreate mask\fR\fR\fI = \fR\fI \FC0775\F[]\fR\fI \fR2018 \fI\fIcreate mask\fR\fR\fI = \fR\fI0744\fR\fI \fR 2019 .sp 2020 Example: 2021 \fI\fIcreate mask\fR\fR\fI = \fR\fI0775\fR\fI \fR 2281 2022 .RE 2282 2023 … … 2294 2035 .sp 2295 2036 Default: 2296 \fI\fIcsc policy\fR\fR\fI = \fR\fI \FCmanual\F[]\fR\fI \fR2297 .sp 2298 Example: 2299 \fI\fIcsc policy\fR\fR\fI = \fR\fI \FCprograms\F[]\fR\fI \fR2037 \fI\fIcsc policy\fR\fR\fI = \fR\fImanual\fR\fI \fR 2038 .sp 2039 Example: 2040 \fI\fIcsc policy\fR\fR\fI = \fR\fIprograms\fR\fI \fR 2300 2041 .RE 2301 2042 … … 2305 2046 .RS 4 2306 2047 If you set 2307 \FCclustering=yes\F[], you need to tell Samba where ctdbd listens on its unix domain socket\&. The default path as of ctdb 1\&.0 is /tmp/ctdb\&.socket which you have to explicitly set for Samba in smb\&.conf\&.2308 .sp 2309 Default: 2310 \fI\fIctdbd socket\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR2311 .sp 2312 Example: 2313 \fI\fIctdbd socket\fR\fR\fI = \fR\fI \FC/tmp/ctdb\&.socket\F[]\fR\fI \fR2048 clustering=yes, you need to tell Samba where ctdbd listens on its unix domain socket\&. The default path as of ctdb 1\&.0 is /tmp/ctdb\&.socket which you have to explicitly set for Samba in smb\&.conf\&. 2049 .sp 2050 Default: 2051 \fI\fIctdbd socket\fR\fR\fI = \fR\fI\fR\fI \fR 2052 .sp 2053 Example: 2054 \fI\fIctdbd socket\fR\fR\fI = \fR\fI/tmp/ctdb\&.socket\fR\fI \fR 2314 2055 .RE 2315 2056 … … 2326 2067 .sp 2327 2068 Default: 2328 \fI\fIcups connection timeout\fR\fR\fI = \fR\fI \FC30\F[]\fR\fI \fR2329 .sp 2330 Example: 2331 \fI\fIcups connection timeout\fR\fR\fI = \fR\fI \FC60\F[]\fR\fI \fR2069 \fI\fIcups connection timeout\fR\fR\fI = \fR\fI30\fR\fI \fR 2070 .sp 2071 Example: 2072 \fI\fIcups connection timeout\fR\fR\fI = \fR\fI60\fR\fI \fR 2332 2073 .RE 2333 2074 … … 2346 2087 \fBraw\fR 2347 2088 if your CUPS server 2348 \FCerror_log\F[] 2089 error_log 2349 2090 file contains messages such as "Unsupported format \'application/octet\-stream\'" when printing from a Windows client through Samba\&. It is no longer necessary to enable system wide raw printing in 2350 \FC/etc/cups/mime\&.{convs,types}\F[]\&.2351 .sp 2352 Default: 2353 \fI\fIcups options\fR\fR\fI = \fR\fI \FC""\F[]\fR\fI \fR2354 .sp 2355 Example: 2356 \fI\fIcups options\fR\fR\fI = \fR\fI \FC"raw media=a4"\F[]\fR\fI \fR2091 /etc/cups/mime\&.{convs,types}\&. 2092 .sp 2093 Default: 2094 \fI\fIcups options\fR\fR\fI = \fR\fI""\fR\fI \fR 2095 .sp 2096 Example: 2097 \fI\fIcups options\fR\fR\fI = \fR\fI"raw media=a4"\fR\fI \fR 2357 2098 .RE 2358 2099 … … 2367 2108 .sp 2368 2109 If set, this option overrides the ServerName option in the CUPS 2369 \FCclient\&.conf\F[]\&. This is necessary if you have virtual samba servers that connect to different CUPS daemons\&.2110 client\&.conf\&. This is necessary if you have virtual samba servers that connect to different CUPS daemons\&. 2370 2111 .sp 2371 2112 Optionally, a port can be specified by separating the server name and port number with a colon\&. If no port was specified, the default port for IPP (631) will be used\&. 2372 2113 .sp 2373 2114 Default: 2374 \fI\fIcups server\fR\fR\fI = \fR\fI \FC""\F[]\fR\fI \fR2375 .sp 2376 Example: 2377 \fI\fIcups server\fR\fR\fI = \fR\fI \FCmycupsserver\F[]\fR\fI \fR2378 .sp 2379 Example: 2380 \fI\fIcups server\fR\fR\fI = \fR\fI \FCmycupsserver:1631\F[]\fR\fI \fR2115 \fI\fIcups server\fR\fR\fI = \fR\fI""\fR\fI \fR 2116 .sp 2117 Example: 2118 \fI\fIcups server\fR\fR\fI = \fR\fImycupsserver\fR\fI \fR 2119 .sp 2120 Example: 2121 \fI\fIcups server\fR\fR\fI = \fR\fImycupsserver:1631\fR\fI \fR 2381 2122 .RE 2382 2123 … … 2396 2137 .sp 2397 2138 Default: 2398 \fI\fIdeadtime\fR\fR\fI = \fR\fI \FC0\F[]\fR\fI \fR2399 .sp 2400 Example: 2401 \fI\fIdeadtime\fR\fR\fI = \fR\fI \FC15\F[]\fR\fI \fR2139 \fI\fIdeadtime\fR\fR\fI = \fR\fI0\fR\fI \fR 2140 .sp 2141 Example: 2142 \fI\fIdeadtime\fR\fR\fI = \fR\fI15\fR\fI \fR 2402 2143 .RE 2403 2144 … … 2412 2153 .sp 2413 2154 Default: 2414 \fI\fIdebug class\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR2155 \fI\fIdebug class\fR\fR\fI = \fR\fIno\fR\fI \fR 2415 2156 .RE 2416 2157 … … 2426 2167 .sp 2427 2168 Default: 2428 \fI\fIdebug hires timestamp\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR2169 \fI\fIdebug hires timestamp\fR\fR\fI = \fR\fIno\fR\fI \fR 2429 2170 .RE 2430 2171 … … 2441 2182 .sp 2442 2183 Default: 2443 \fI\fIdebug pid\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR2184 \fI\fIdebug pid\fR\fR\fI = \fR\fIno\fR\fI \fR 2444 2185 .RE 2445 2186 … … 2457 2198 .sp 2458 2199 Default: 2459 \fI\fIdebug prefix timestamp\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR2200 \fI\fIdebug prefix timestamp\fR\fR\fI = \fR\fIno\fR\fI \fR 2460 2201 .RE 2461 2202 … … 2477 2218 .sp 2478 2219 Default: 2479 \fI\fIdebug timestamp\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR2220 \fI\fIdebug timestamp\fR\fR\fI = \fR\fIyes\fR\fI \fR 2480 2221 .RE 2481 2222 … … 2491 2232 .sp 2492 2233 Default: 2493 \fI\fIdebug uid\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR2234 \fI\fIdebug uid\fR\fR\fI = \fR\fIno\fR\fI \fR 2494 2235 .RE 2495 2236 … … 2504 2245 .sp 2505 2246 Default: 2506 \fI\fIdefault case\fR\fR\fI = \fR\fI \FClower\F[]\fR\fI \fR2247 \fI\fIdefault case\fR\fR\fI = \fR\fIlower\fR\fI \fR 2507 2248 .RE 2508 2249 … … 2518 2259 .sp 2519 2260 This parameter should be used with care and tested with the printer driver in question\&. It is better to leave the device mode to NULL and let the Windows client set the correct values\&. Because drivers do not do this all the time, setting 2520 \FCdefault devmode = yes\F[] 2261 default devmode = yes 2521 2262 will instruct smbd to generate a default one\&. 2522 2263 .sp … … 2525 2266 .sp 2526 2267 Default: 2527 \fI\fIdefault devmode\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR2268 \fI\fIdefault devmode\fR\fR\fI = \fR\fIyes\fR\fI \fR 2528 2269 .RE 2529 2270 … … 2558 2299 .sp 2559 2300 Default: 2560 \fI\fIdefault service\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR2561 .sp 2562 Example: 2563 \fI\fIdefault service\fR\fR\fI = \fR\fI \FCpub\F[]\fR\fI \fR2301 \fI\fIdefault service\fR\fR\fI = \fR\fI\fR\fI \fR 2302 .sp 2303 Example: 2304 \fI\fIdefault service\fR\fR\fI = \fR\fIpub\fR\fI \fR 2564 2305 .RE 2565 2306 … … 2575 2316 .sp 2576 2317 Default: 2577 \fI\fIdefer sharing violations\fR\fR\fI = \fR\fI \FCTrue\F[]\fR\fI \fR2318 \fI\fIdefer sharing violations\fR\fR\fI = \fR\fITrue\fR\fI \fR 2578 2319 .RE 2579 2320 … … 2590 2331 .sp 2591 2332 Default: 2592 \fI\fIdelete group script\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR2333 \fI\fIdelete group script\fR\fR\fI = \fR\fI\fR\fI \fR 2593 2334 .RE 2594 2335 … … 2602 2343 \m[blue]\fBdeleteprinter command\fR\m[] 2603 2344 defines a script to be run which will perform the necessary operations for removing the printer from the print system and from 2604 \FCsmb\&.conf\F[]\&.2345 smb\&.conf\&. 2605 2346 .sp 2606 2347 The … … 2612 2353 \m[blue]\fBdeleteprinter command\fR\m[] 2613 2354 has been executed, 2614 \FCsmbd\F[] 2355 smbd 2615 2356 will reparse the 2616 \FC smb\&.conf\F[] 2357 smb\&.conf 2617 2358 to check that the associated printer no longer exists\&. If the sharename is still valid, then 2618 \FCsmbd \F[] 2359 smbd 2619 2360 will return an ACCESS_DENIED error to the client\&. 2620 2361 .sp 2621 2362 Default: 2622 \fI\fIdeleteprinter command\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR2623 .sp 2624 Example: 2625 \fI\fIdeleteprinter command\fR\fR\fI = \fR\fI \FC/usr/bin/removeprinter\F[]\fR\fI \fR2363 \fI\fIdeleteprinter command\fR\fR\fI = \fR\fI\fR\fI \fR 2364 .sp 2365 Example: 2366 \fI\fIdeleteprinter command\fR\fR\fI = \fR\fI/usr/bin/removeprinter\fR\fI \fR 2626 2367 .RE 2627 2368 … … 2635 2376 .sp 2636 2377 Default: 2637 \fI\fIdelete readonly\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR2378 \fI\fIdelete readonly\fR\fR\fI = \fR\fIno\fR\fI \fR 2638 2379 .RE 2639 2380 … … 2645 2386 \fIdelete share command\fR 2646 2387 is used to define an external program or script which will remove an existing service definition from 2647 \FCsmb\&.conf\F[]\&.2388 smb\&.conf\&. 2648 2389 .sp 2649 2390 In order to successfully execute the 2650 2391 \fIdelete share command\fR, 2651 \FCsmbd\F[] 2392 smbd 2652 2393 requires that the administrator connects using a root account (i\&.e\&. uid == 0) or has the 2653 \FCSeDiskOperatorPrivilege\F[]\&. Scripts defined in the2394 SeDiskOperatorPrivilege\&. Scripts defined in the 2654 2395 \fIdelete share command\fR 2655 2396 parameter are executed as root\&. 2656 2397 .sp 2657 2398 When executed, 2658 \FCsmbd\F[] 2399 smbd 2659 2400 will automatically invoke the 2660 2401 \fIdelete share command\fR … … 2671 2412 \fIconfigFile\fR 2672 2413 \- the location of the global 2673 \FCsmb\&.conf\F[] 2414 smb\&.conf 2674 2415 file\&. 2675 2416 .RE … … 2691 2432 .sp 2692 2433 Default: 2693 \fI\fIdelete share command\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR2694 .sp 2695 Example: 2696 \fI\fIdelete share command\fR\fR\fI = \fR\fI \FC/usr/local/bin/delshare\F[]\fR\fI \fR2434 \fI\fIdelete share command\fR\fR\fI = \fR\fI\fR\fI \fR 2435 .sp 2436 Example: 2437 \fI\fIdelete share command\fR\fR\fI = \fR\fI/usr/local/bin/delshare\fR\fI \fR 2697 2438 .RE 2698 2439 … … 2710 2451 .sp 2711 2452 Default: 2712 \fI\fIdelete user from group script\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR2713 .sp 2714 Example: 2715 \fI\fIdelete user from group script\fR\fR\fI = \fR\fI \FC/usr/sbin/deluser %u %g\F[]\fR\fI \fR2453 \fI\fIdelete user from group script\fR\fR\fI = \fR\fI\fR\fI \fR 2454 .sp 2455 Example: 2456 \fI\fIdelete user from group script\fR\fR\fI = \fR\fI/usr/sbin/deluser %u %g\fR\fI \fR 2716 2457 .RE 2717 2458 … … 2725 2466 .sp 2726 2467 This script is called when a remote client removes a user from the server, normally using \'User Manager for Domains\' or 2727 \FCrpcclient\F[]\&.2468 rpcclient\&. 2728 2469 .sp 2729 2470 This script should delete the given UNIX username\&. 2730 2471 .sp 2731 2472 Default: 2732 \fI\fIdelete user script\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR2733 .sp 2734 Example: 2735 \fI\fIdelete user script\fR\fR\fI = \fR\fI \FC/usr/local/samba/bin/del_user %u\F[]\fR\fI \fR2473 \fI\fIdelete user script\fR\fR\fI = \fR\fI\fR\fI \fR 2474 .sp 2475 Example: 2476 \fI\fIdelete user script\fR\fR\fI = \fR\fI/usr/local/samba/bin/del_user %u\fR\fI \fR 2736 2477 .RE 2737 2478 … … 2748 2489 If this option is set to 2749 2490 \fByes\fR, then Samba will attempt to recursively delete any files and directories within the vetoed directory\&. This can be useful for integration with file serving systems such as NetAtalk which create meta\-files within directories you might normally veto DOS/Windows users from seeing (e\&.g\&. 2750 \ FC\&.AppleDouble\F[])2491 \&.AppleDouble) 2751 2492 .sp 2752 2493 Setting … … 2755 2496 .sp 2756 2497 Default: 2757 \fI\fIdelete veto files\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR2498 \fI\fIdelete veto files\fR\fR\fI = \fR\fIno\fR\fI \fR 2758 2499 .RE 2759 2500 … … 2775 2516 .sp 2776 2517 Example: 2777 \fI\fIdfree cache time\fR\fR\fI = \fR\fI \FCdfree cache time = 60\F[]\fR\fI \fR2518 \fI\fIdfree cache time\fR\fR\fI = \fR\fIdfree cache time = 60\fR\fI \fR 2778 2519 .RE 2779 2520 … … 2793 2534 .sp 2794 2535 The external program will be passed a single parameter indicating a directory in the filesystem being queried\&. This will typically consist of the string 2795 \ FC\&./\F[]\&. The script should return two integers in ASCII\&. The first should be the total disk space in blocks, and the second should be the number of available blocks\&. An optional third return value can give the block size in bytes\&. The default blocksize is 1024 bytes\&.2536 \&./\&. The script should return two integers in ASCII\&. The first should be the total disk space in blocks, and the second should be the number of available blocks\&. An optional third return value can give the block size in bytes\&. The default blocksize is 1024 bytes\&. 2796 2537 .sp 2797 2538 Note: Your script should … … 2804 2545 .RS 4 2805 2546 .\} 2806 .fam C2807 .ps -12808 2547 .nf 2809 .BB lightgray2810 2548 2811 2549 #!/bin/sh 2812 2550 df $1 | tail \-1 | awk \'{print $(NF\-4),$(NF\-2)}\' 2813 .EB lightgray2814 2551 .fi 2815 .fam2816 .ps +12817 2552 .if n \{\ 2818 2553 .RE … … 2824 2559 .RS 4 2825 2560 .\} 2826 .fam C2827 .ps -12828 2561 .nf 2829 .BB lightgray2830 2562 2831 2563 #!/bin/sh 2832 2564 /usr/bin/df \-k $1 | tail \-1 | awk \'{print $3" "$5}\' 2833 .EB lightgray2834 2565 .fi 2835 .fam2836 .ps +12837 2566 .if n \{\ 2838 2567 .RE … … 2846 2575 .sp 2847 2576 Example: 2848 \fI\fIdfree command\fR\fR\fI = \fR\fI \FC/usr/local/samba/bin/dfree\F[]\fR\fI \fR2577 \fI\fIdfree command\fR\fR\fI = \fR\fI/usr/local/samba/bin/dfree\fR\fI \fR 2849 2578 .RE 2850 2579 … … 2877 2606 .sp 2878 2607 Default: 2879 \fI\fIdirectory mask\fR\fR\fI = \fR\fI \FC0755\F[]\fR\fI \fR2880 .sp 2881 Example: 2882 \fI\fIdirectory mask\fR\fR\fI = \fR\fI \FC0775\F[]\fR\fI \fR2608 \fI\fIdirectory mask\fR\fR\fI = \fR\fI0755\fR\fI \fR 2609 .sp 2610 Example: 2611 \fI\fIdirectory mask\fR\fR\fI = \fR\fI0775\fR\fI \fR 2883 2612 .RE 2884 2613 … … 2901 2630 .sp 2902 2631 Default: 2903 \fI\fIdirectory security mask\fR\fR\fI = \fR\fI \FC0777\F[]\fR\fI \fR2904 .sp 2905 Example: 2906 \fI\fIdirectory security mask\fR\fR\fI = \fR\fI \FC0700\F[]\fR\fI \fR2632 \fI\fIdirectory security mask\fR\fR\fI = \fR\fI0777\fR\fI \fR 2633 .sp 2634 Example: 2635 \fI\fIdirectory security mask\fR\fR\fI = \fR\fI0700\fR\fI \fR 2907 2636 .RE 2908 2637 … … 2916 2645 .\} 2917 2646 .RS 4 2918 .BM yellow2919 2647 .it 1 an-trap 2920 2648 .nr an-no-space-flag 1 … … 2927 2655 Clients that only support netbios won\'t be able to see your samba server when netbios support is disabled\&. 2928 2656 .sp .5v 2929 .EM yellow 2930 .RE 2931 Default: 2932 \fI\fIdisable netbios\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR 2657 .RE 2658 Default: 2659 \fI\fIdisable netbios\fR\fR\fI = \fR\fIno\fR\fI \fR 2933 2660 .RE 2934 2661 … … 2941 2668 .sp 2942 2669 Default: 2943 \fI\fIdisable spoolss\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR2670 \fI\fIdisable spoolss\fR\fR\fI = \fR\fIno\fR\fI \fR 2944 2671 .RE 2945 2672 … … 2952 2679 .sp 2953 2680 Default: 2954 \fI\fIdisplay charset\fR\fR\fI = \fR\fI \FC"LOCALE" or "ASCII" (depending on the system)\F[]\fR\fI \fR2955 .sp 2956 Example: 2957 \fI\fIdisplay charset\fR\fR\fI = \fR\fI \FCUTF8\F[]\fR\fI \fR2681 \fI\fIdisplay charset\fR\fR\fI = \fR\fI"LOCALE" or "ASCII" (depending on the system)\fR\fI \fR 2682 .sp 2683 Example: 2684 \fI\fIdisplay charset\fR\fR\fI = \fR\fIUTF8\fR\fI \fR 2958 2685 .RE 2959 2686 … … 2969 2696 .sp 2970 2697 Default: 2971 \fI\fIdmapi support\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR2698 \fI\fIdmapi support\fR\fR\fI = \fR\fIno\fR\fI \fR 2972 2699 .RE 2973 2700 … … 2982 2709 Note that the maximum length for a NetBIOS name is 15 characters, so the DNS name (or DNS alias) can likewise only be 15 characters, maximum\&. 2983 2710 .sp 2984 \FCnmbd\F[] 2711 nmbd 2985 2712 spawns a second copy of itself to do the DNS name lookup requests, as doing a name lookup is a blocking action\&. 2986 2713 .sp 2987 2714 Default: 2988 \fI\fIdns proxy\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR2715 \fI\fIdns proxy\fR\fR\fI = \fR\fIyes\fR\fI \fR 2989 2716 .RE 2990 2717 … … 2999 2726 .sp 3000 2727 Default: 3001 \fI\fIdomain logons\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR2728 \fI\fIdomain logons\fR\fR\fI = \fR\fIno\fR\fI \fR 3002 2729 .RE 3003 2730 … … 3009 2736 \fBsmbd\fR(8) 3010 2737 to enable WAN\-wide browse list collation\&. Setting this option causes 3011 \FCnmbd\F[] 2738 nmbd 3012 2739 to claim a special domain specific NetBIOS name that identifies it as a domain master browser for its given 3013 2740 \m[blue]\fBworkgroup\fR\m[]\&. Local master browsers in the same 3014 2741 \m[blue]\fBworkgroup\fR\m[] 3015 2742 on broadcast\-isolated subnets will give this 3016 \FCnmbd\F[] 2743 nmbd 3017 2744 their local browse lists, and then ask 3018 2745 \fBsmbd\fR(8) … … 3024 2751 \m[blue]\fBworkgroup\fR\m[] 3025 2752 by default (i\&.e\&. there is no way to prevent a Windows NT PDC from attempting to do this)\&. This means that if this parameter is set and 3026 \FCnmbd\F[] 2753 nmbd 3027 2754 claims the special name for a 3028 2755 \m[blue]\fBworkgroup\fR\m[] … … 3044 2771 .sp 3045 2772 Default: 3046 \fI\fIdomain master\fR\fR\fI = \fR\fI \FCauto\F[]\fR\fI \fR2773 \fI\fIdomain master\fR\fR\fI = \fR\fIauto\fR\fI \fR 3047 2774 .RE 3048 2775 … … 3052 2779 .RS 4 3053 2780 There are certain directories on some systems (e\&.g\&., the 3054 \FC/proc\F[] 2781 /proc 3055 2782 tree under Linux) that are either not of interest to clients or are infinitely deep (recursive)\&. This parameter allows you to specify a comma\-delimited list of directories that the server should always show as empty\&. 3056 2783 .sp 3057 2784 Note that Samba can be very fussy about the exact format of the "dont descend" entries\&. For example you may need 3058 \ FC \&./proc\F[]2785 \&./proc 3059 2786 instead of just 3060 \FC/proc\F[]\&. Experimentation is the best policy :\-)3061 .sp 3062 Default: 3063 \fI\fIdont descend\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR3064 .sp 3065 Example: 3066 \fI\fIdont descend\fR\fR\fI = \fR\fI \FC/proc,/dev\F[]\fR\fI \fR2787 /proc\&. Experimentation is the best policy :\-) 2788 .sp 2789 Default: 2790 \fI\fIdont descend\fR\fR\fI = \fR\fI\fR\fI \fR 2791 .sp 2792 Example: 2793 \fI\fIdont descend\fR\fR\fI = \fR\fI/proc,/dev\fR\fI \fR 3067 2794 .RE 3068 2795 … … 3087 2814 .sp 3088 2815 Default: 3089 \fI\fIdos filemode\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR2816 \fI\fIdos filemode\fR\fR\fI = \fR\fIno\fR\fI \fR 3090 2817 .RE 3091 2818 … … 3100 2827 .sp 3101 2828 Default: 3102 \fI\fIdos filetime resolution\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR2829 \fI\fIdos filetime resolution\fR\fR\fI = \fR\fIno\fR\fI \fR 3103 2830 .RE 3104 2831 … … 3108 2835 .RS 4 3109 2836 Under DOS and Windows, if a user can write to a file they can change the timestamp on it\&. Under POSIX semantics, only the owner of the file or root may change the timestamp\&. By default, Samba runs with POSIX semantics and refuses to change the timestamp on a file if the user 3110 \FCsmbd\F[] 2837 smbd 3111 2838 is acting on behalf of is not the file owner\&. Setting this option to 3112 2839 \fB yes\fR … … 3116 2843 .sp 3117 2844 Default: 3118 \fI\fIdos filetimes\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR2845 \fI\fIdos filetimes\fR\fR\fI = \fR\fIyes\fR\fI \fR 3119 2846 .RE 3120 2847 … … 3128 2855 .sp 3129 2856 Default: 3130 \fI\fIea support\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR2857 \fI\fIea support\fR\fR\fI = \fR\fIno\fR\fI \fR 3131 2858 .RE 3132 2859 … … 3138 2865 .sp 3139 2866 Default: 3140 \fI\fIenable asu support\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR 2867 \fI\fIenable asu support\fR\fR\fI = \fR\fIno\fR\fI \fR 2868 .RE 2869 2870 enable core files (G) 2871 .\" enable core files 2872 .PP 2873 .RS 4 2874 This parameter specifies whether core dumps should be written on internal exits\&. Normally set to 2875 \fByes\fR\&. You should never need to change this\&. 2876 .sp 2877 Default: 2878 \fI\fIenable core files\fR\fR\fI = \fR\fIyes\fR\fI \fR 2879 .sp 2880 Example: 2881 \fI\fIenable core files\fR\fR\fI = \fR\fIno\fR\fI \fR 3141 2882 .RE 3142 2883 … … 3146 2887 .RS 4 3147 2888 This parameter controls whether or not smbd will honor privileges assigned to specific SIDs via either 3148 \FCnet rpc rights\F[] 2889 net rpc rights 3149 2890 or one of the Windows user and group manager tools\&. This parameter is enabled by default\&. It can be disabled to prevent members of the Domain Admins group from being able to assign privileges to users or groups which can then result in certain smbd operations running as root that would normally run under the context of the connected user\&. 3150 2891 .sp … … 3154 2895 .sp 3155 2896 Default: 3156 \fI\fIenable privileges\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR2897 \fI\fIenable privileges\fR\fR\fI = \fR\fIyes\fR\fI \fR 3157 2898 .RE 3158 2899 … … 3176 2917 \m[blue]\fBsecurity = [server|domain|ads]\fR\m[] 3177 2918 parameter which causes 3178 \FCsmbd\F[] 2919 smbd 3179 2920 to authenticate against another server\&. 3180 2921 .sp 3181 2922 Default: 3182 \fI\fIencrypt passwords\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR2923 \fI\fIencrypt passwords\fR\fR\fI = \fR\fIyes\fR\fI \fR 3183 2924 .RE 3184 2925 … … 3196 2937 .sp 3197 2938 Default: 3198 \fI\fIenhanced browsing\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR2939 \fI\fIenhanced browsing\fR\fR\fI = \fR\fIyes\fR\fI \fR 3199 2940 .RE 3200 2941 … … 3203 2944 .PP 3204 2945 .RS 4 3205 The concept of a "port" is fairly foreign to UNIX hosts\&. Under Windows NT/2000 print servers, a port is associated with a port monitor and generally takes the form of a local port (i\&.e\&. LPT1:, COM1:, FILE:) or a remote port (i\&.e\&. LPD Port Monitor, etc\&.\&.\&.)\&. By default, Samba has only one port defined\-\-\fB"Samba Printer Port"\fR\&. Under Windows NT/2000, all printers must have a valid port name\&. If you wish to have a list of ports displayed ( \FCsmbd \F[]2946 The concept of a "port" is fairly foreign to UNIX hosts\&. Under Windows NT/2000 print servers, a port is associated with a port monitor and generally takes the form of a local port (i\&.e\&. LPT1:, COM1:, FILE:) or a remote port (i\&.e\&. LPD Port Monitor, etc\&.\&.\&.)\&. By default, Samba has only one port defined\-\-\fB"Samba Printer Port"\fR\&. Under Windows NT/2000, all printers must have a valid port name\&. If you wish to have a list of ports displayed (smbd 3206 2947 does not use a port name for anything) other than the default 3207 2948 \fB"Samba Printer Port"\fR, you can define … … 3210 2951 .sp 3211 2952 Default: 3212 \fI\fIenumports command\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR3213 .sp 3214 Example: 3215 \fI\fIenumports command\fR\fR\fI = \fR\fI \FC/usr/bin/listports\F[]\fR\fI \fR2953 \fI\fIenumports command\fR\fR\fI = \fR\fI\fR\fI \fR 2954 .sp 2955 Example: 2956 \fI\fIenumports command\fR\fR\fI = \fR\fI/usr/bin/listports\fR\fI \fR 3216 2957 .RE 3217 2958 … … 3221 2962 .RS 4 3222 2963 This option defines a list of log names that Samba will report to the Microsoft EventViewer utility\&. The listed eventlogs will be associated with tdb file on disk in the 3223 \FC$(lockdir)/eventlog\F[]\&.2964 $(lockdir)/eventlog\&. 3224 2965 .sp 3225 2966 The administrator must use an external process to parse the normal Unix logs such as 3226 \FC/var/log/messages\F[] 2967 /var/log/messages 3227 2968 and write then entries to the eventlog tdb files\&. Refer to the eventlogadm(8) utility for how to write eventlog entries\&. 3228 2969 .sp 3229 2970 Default: 3230 \fI\fIeventlog list\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR3231 .sp 3232 Example: 3233 \fI\fIeventlog list\fR\fR\fI = \fR\fI \FCSecurity Application Syslog Apache\F[]\fR\fI \fR2971 \fI\fIeventlog list\fR\fR\fI = \fR\fI\fR\fI \fR 2972 .sp 2973 Example: 2974 \fI\fIeventlog list\fR\fR\fI = \fR\fISecurity Application Syslog Apache\fR\fI \fR 3234 2975 .RE 3235 2976 … … 3245 2986 .sp 3246 2987 Default: 3247 \fI\fIfake directory create times\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR2988 \fI\fIfake directory create times\fR\fR\fI = \fR\fIno\fR\fI \fR 3248 2989 .RE 3249 2990 … … 3255 2996 .sp 3256 2997 When you set 3257 \FCfake oplocks = yes\F[],2998 fake oplocks = yes, 3258 2999 \fBsmbd\fR(8) 3259 3000 will always grant oplock requests no matter how many clients are using the file\&. … … 3266 3007 .sp 3267 3008 Default: 3268 \fI\fIfake oplocks\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR3009 \fI\fIfake oplocks\fR\fR\fI = \fR\fIno\fR\fI \fR 3269 3010 .RE 3270 3011 … … 3278 3019 \fBno\fR 3279 3020 prevents any file or directory that is a symbolic link from being followed (the user will get an error)\&. This option is very useful to stop users from adding a symbolic link to 3280 \FC/etc/passwd\F[] 3021 /etc/passwd 3281 3022 in their home directory for instance\&. However it will slow filename lookups down slightly\&. 3282 3023 .sp 3283 3024 This option is enabled (i\&.e\&. 3284 \FCsmbd\F[] 3025 smbd 3285 3026 will follow symbolic links) by default\&. 3286 3027 .sp 3287 3028 Default: 3288 \fI\fIfollow symlinks\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR3029 \fI\fIfollow symlinks\fR\fR\fI = \fR\fIyes\fR\fI \fR 3289 3030 .RE 3290 3031 … … 3302 3043 .sp 3303 3044 Default: 3304 \fI\fIforce create mode\fR\fR\fI = \fR\fI \FC000\F[]\fR\fI \fR3305 .sp 3306 Example: 3307 \fI\fIforce create mode\fR\fR\fI = \fR\fI \FC0755\F[]\fR\fI \fR3045 \fI\fIforce create mode\fR\fR\fI = \fR\fI000\fR\fI \fR 3046 .sp 3047 Example: 3048 \fI\fIforce create mode\fR\fR\fI = \fR\fI0755\fR\fI \fR 3308 3049 .RE 3309 3050 … … 3321 3062 .sp 3322 3063 Default: 3323 \fI\fIforce directory mode\fR\fR\fI = \fR\fI \FC000\F[]\fR\fI \fR3324 .sp 3325 Example: 3326 \fI\fIforce directory mode\fR\fR\fI = \fR\fI \FC0755\F[]\fR\fI \fR3064 \fI\fIforce directory mode\fR\fR\fI = \fR\fI000\fR\fI \fR 3065 .sp 3066 Example: 3067 \fI\fIforce directory mode\fR\fR\fI = \fR\fI0755\fR\fI \fR 3327 3068 .RE 3328 3069 … … 3343 3084 .\} 3344 3085 .RS 4 3345 .BM yellow3346 3086 .it 1 an-trap 3347 3087 .nr an-no-space-flag 1 … … 3354 3094 Users who can access the Samba server through other means can easily bypass this restriction, so it is primarily useful for standalone "appliance" systems\&. Administrators of most normal systems will probably want to leave it set as 0000\&. 3355 3095 .sp .5v 3356 .EM yellow 3357 .RE 3358 Default: 3359 \fI\fIforce directory security mode\fR\fR\fI = \fR\fI\FC0\F[]\fR\fI \fR 3360 .sp 3361 Example: 3362 \fI\fIforce directory security mode\fR\fR\fI = \fR\fI\FC700\F[]\fR\fI \fR 3096 .RE 3097 Default: 3098 \fI\fIforce directory security mode\fR\fR\fI = \fR\fI0\fR\fI \fR 3099 .sp 3100 Example: 3101 \fI\fIforce directory security mode\fR\fR\fI = \fR\fI700\fR\fI \fR 3363 3102 .RE 3364 3103 … … 3378 3117 .sp 3379 3118 In Samba 2\&.0\&.5 and above this parameter has extended functionality in the following way\&. If the group name listed here has a \'+\' character prepended to it then the current user accessing the share only has the primary group default assigned to this group if they are already assigned as a member of that group\&. This allows an administrator to decide that only users who are already in a particular group will create files with group ownership set to that group\&. This gives a finer granularity of ownership assignment\&. For example, the setting 3380 \FCforce group = +sys\F[] 3119 force group = +sys 3381 3120 means that only users who are already in group sys will have their default primary group assigned to sys when accessing this Samba share\&. All other users will retain their ordinary primary group\&. 3382 3121 .sp … … 3389 3128 .sp 3390 3129 Default: 3391 \fI\fIforce group\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR3392 .sp 3393 Example: 3394 \fI\fIforce group\fR\fR\fI = \fR\fI \FCagroup\F[]\fR\fI \fR3130 \fI\fIforce group\fR\fR\fI = \fR\fI\fR\fI \fR 3131 .sp 3132 Example: 3133 \fI\fIforce group\fR\fR\fI = \fR\fIagroup\fR\fI \fR 3395 3134 .RE 3396 3135 … … 3400 3139 .RS 4 3401 3140 When printing from Windows NT (or later), each printer in 3402 \FCsmb\&.conf\F[] 3141 smb\&.conf 3403 3142 has two associated names which can be used by the client\&. The first is the sharename (or shortname) defined in smb\&.conf\&. This is the only printername available for use by Windows 9x clients\&. The second name associated with a printer can be seen when browsing to the "Printers" (or "Printers and Faxes") folder on the Samba server\&. This is referred to simply as the printername (not to be confused with the 3404 3143 \fIprinter name\fR … … 3413 3152 .sp 3414 3153 Default: 3415 \fI\fIforce printername\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR3154 \fI\fIforce printername\fR\fR\fI = \fR\fIno\fR\fI \fR 3416 3155 .RE 3417 3156 … … 3433 3172 .sp 3434 3173 Default: 3435 \fI\fIforce security mode\fR\fR\fI = \fR\fI \FC0\F[]\fR\fI \fR3436 .sp 3437 Example: 3438 \fI\fIforce security mode\fR\fR\fI = \fR\fI \FC700\F[]\fR\fI \fR3174 \fI\fIforce security mode\fR\fR\fI = \fR\fI0\fR\fI \fR 3175 .sp 3176 Example: 3177 \fI\fIforce security mode\fR\fR\fI = \fR\fI700\fR\fI \fR 3439 3178 .RE 3440 3179 … … 3450 3189 .sp 3451 3190 Default: 3452 \fI\fIforce unknown acl user\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR3191 \fI\fIforce unknown acl user\fR\fR\fI = \fR\fIno\fR\fI \fR 3453 3192 .RE 3454 3193 … … 3464 3203 .sp 3465 3204 Default: 3466 \fI\fIforce user\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR3467 .sp 3468 Example: 3469 \fI\fIforce user\fR\fR\fI = \fR\fI \FCauser\F[]\fR\fI \fR3205 \fI\fIforce user\fR\fR\fI = \fR\fI\fR\fI \fR 3206 .sp 3207 Example: 3208 \fI\fIforce user\fR\fR\fI = \fR\fIauser\fR\fI \fR 3470 3209 .RE 3471 3210 … … 3485 3224 .sp 3486 3225 Default: 3487 \fI\fIfstype\fR\fR\fI = \fR\fI \FCNTFS\F[]\fR\fI \fR3488 .sp 3489 Example: 3490 \fI\fIfstype\fR\fR\fI = \fR\fI \FCSamba\F[]\fR\fI \fR3226 \fI\fIfstype\fR\fR\fI = \fR\fINTFS\fR\fI \fR 3227 .sp 3228 Example: 3229 \fI\fIfstype\fR\fR\fI = \fR\fISamba\fR\fI \fR 3491 3230 .RE 3492 3231 … … 3496 3235 .RS 4 3497 3236 The 3498 \FCget quota command\F[] 3237 get quota command 3499 3238 should only be used whenever there is no operating system API available from the OS that samba can use\&. 3500 3239 .sp 3501 3240 This option is only available you have compiled Samba with the 3502 \ FC\-\-with\-sys\-quotas\F[]3241 \-\-with\-sys\-quotas 3503 3242 option or on Linux with 3504 \ FC\-\-with\-quotas\F[]3243 \-\-with\-quotas 3505 3244 and a working quota api was found in the system\&. 3506 3245 .sp … … 3679 3418 .RE 3680 3419 Default: 3681 \fI\fIget quota command\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR3682 .sp 3683 Example: 3684 \fI\fIget quota command\fR\fR\fI = \fR\fI \FC/usr/local/sbin/query_quota\F[]\fR\fI \fR3420 \fI\fIget quota command\fR\fR\fI = \fR\fI\fR\fI \fR 3421 .sp 3422 Example: 3423 \fI\fIget quota command\fR\fR\fI = \fR\fI/usr/local/sbin/query_quota\fR\fI \fR 3685 3424 .RE 3686 3425 … … 3695 3434 .sp 3696 3435 Default: 3697 \fI\fIgetwd cache\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR3436 \fI\fIgetwd cache\fR\fR\fI = \fR\fIyes\fR\fI \fR 3698 3437 .RE 3699 3438 … … 3707 3446 .sp 3708 3447 On some systems the default guest account "nobody" may not be able to print\&. Use another account in this case\&. You should test this by trying to log in as your guest user (perhaps by using the 3709 \FCsu \-\F[] 3448 su \- 3710 3449 command) and trying to print using the system print command such as 3711 \FClpr(1)\F[] 3450 lpr(1) 3712 3451 or 3713 \FC lp(1)\F[]\&.3452 lp(1)\&. 3714 3453 .sp 3715 3454 This parameter does not accept % macros, because many parts of the system require this value to be constant for correct operation\&. 3716 3455 .sp 3717 3456 Default: 3718 \fI\fIguest account\fR\fR\fI = \fR\fI \FCnobody # default can be changed at compile\-time\F[]\fR\fI \fR3719 .sp 3720 Example: 3721 \fI\fIguest account\fR\fR\fI = \fR\fI \FCftp\F[]\fR\fI \fR3457 \fI\fIguest account\fR\fR\fI = \fR\fInobody # default can be changed at compile\-time\fR\fI \fR 3458 .sp 3459 Example: 3460 \fI\fIguest account\fR\fR\fI = \fR\fIftp\fR\fI \fR 3722 3461 .RE 3723 3462 … … 3747 3486 .sp 3748 3487 Default: 3749 \fI\fIguest ok\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR3488 \fI\fIguest ok\fR\fR\fI = \fR\fIno\fR\fI \fR 3750 3489 .RE 3751 3490 … … 3773 3512 .sp 3774 3513 Default: 3775 \fI\fIguest only\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR3514 \fI\fIguest only\fR\fR\fI = \fR\fIno\fR\fI \fR 3776 3515 .RE 3777 3516 … … 3783 3522 .sp 3784 3523 Default: 3785 \fI\fIhide dot files\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR3524 \fI\fIhide dot files\fR\fR\fI = \fR\fIyes\fR\fI \fR 3786 3525 .RE 3787 3526 … … 3809 3548 .RS 4 3810 3549 .\} 3811 .fam C3812 .ps -13813 3550 .nf 3814 .if t \{\3815 .sp -13816 .\}3817 .BB lightgray adjust-for-leading-newline3818 .sp -13819 3820 3551 hide files = /\&.*/DesktopFolderDB/TrashFor%m/resource\&.frk/ 3821 .EB lightgray adjust-for-leading-newline3822 .if t \{\3823 .sp 13824 .\}3825 3552 .fi 3826 .fam3827 .ps +13828 3553 .if n \{\ 3829 3554 .RE … … 3831 3556 .sp 3832 3557 Default: 3833 \fI\fIhide files\fR\fR\fI = \fR\fI \FC # no file are hidden\F[]\fR\fI \fR3558 \fI\fIhide files\fR\fR\fI = \fR\fI # no file are hidden\fR\fI \fR 3834 3559 .RE 3835 3560 … … 3841 3566 .sp 3842 3567 Default: 3843 \fI\fIhide special files\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR3568 \fI\fIhide special files\fR\fR\fI = \fR\fIno\fR\fI \fR 3844 3569 .RE 3845 3570 … … 3851 3576 .sp 3852 3577 Default: 3853 \fI\fIhide unreadable\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR3578 \fI\fIhide unreadable\fR\fR\fI = \fR\fIno\fR\fI \fR 3854 3579 .RE 3855 3580 … … 3861 3586 .sp 3862 3587 Default: 3863 \fI\fIhide unwriteable files\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR3588 \fI\fIhide unwriteable files\fR\fR\fI = \fR\fIno\fR\fI \fR 3864 3589 .RE 3865 3590 … … 3880 3605 .RS 4 3881 3606 .\} 3882 .fam C3883 .ps -13884 3607 .nf 3885 .if t \{\ 3886 .sp -1 3887 .\} 3888 .BB lightgray adjust-for-leading-newline 3889 .sp -1 3890 3891 \FCusername server:/some/file/system\F[] 3892 .EB lightgray adjust-for-leading-newline 3893 .if t \{\ 3894 .sp 1 3895 .\} 3608 username server:/some/file/system 3896 3609 .fi 3897 .fam3898 .ps +13899 3610 .if n \{\ 3900 3611 .RE … … 3906 3617 .\} 3907 3618 .RS 4 3908 .BM yellow3909 3619 .it 1 an-trap 3910 3620 .nr an-no-space-flag 1 … … 3917 3627 A working NIS client is required on the system for this option to work\&. 3918 3628 .sp .5v 3919 .EM yellow 3920 .RE 3921 Default: 3922 \fI\fIhomedir map\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR 3923 .sp 3924 Example: 3925 \fI\fIhomedir map\fR\fR\fI = \fR\fI\FCamd\&.homedir\F[]\fR\fI \fR 3629 .RE 3630 Default: 3631 \fI\fIhomedir map\fR\fR\fI = \fR\fI\fR\fI \fR 3632 .sp 3633 Example: 3634 \fI\fIhomedir map\fR\fR\fI = \fR\fIamd\&.homedir\fR\fI \fR 3926 3635 .RE 3927 3636 … … 3938 3647 .sp 3939 3648 Default: 3940 \fI\fIhost msdfs\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR3649 \fI\fIhost msdfs\fR\fR\fI = \fR\fIyes\fR\fI \fR 3941 3650 .RE 3942 3651 … … 3946 3655 .RS 4 3947 3656 Specifies whether samba should use (expensive) hostname lookups or use the ip addresses instead\&. An example place where hostname lookups are currently used is when checking the 3948 \FChosts deny\F[] 3657 hosts deny 3949 3658 and 3950 \FChosts allow\F[]\&.3951 .sp 3952 Default: 3953 \fI\fIhostname lookups\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR3954 .sp 3955 Example: 3956 \fI\fIhostname lookups\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR3659 hosts allow\&. 3660 .sp 3661 Default: 3662 \fI\fIhostname lookups\fR\fR\fI = \fR\fIno\fR\fI \fR 3663 .sp 3664 Example: 3665 \fI\fIhostname lookups\fR\fR\fI = \fR\fIyes\fR\fI \fR 3957 3666 .RE 3958 3667 … … 3977 3686 .sp 3978 3687 You can specify the hosts by name or IP number\&. For example, you could restrict access to only the hosts on a Class C subnet with something like 3979 \FCallow hosts = 150\&.203\&.5\&.\F[]\&. The full syntax of the list is described in the man page3980 \FChosts_access(5)\F[]\&. Note that this man page may not be present on your system, so a brief description will be given here also\&.3688 allow hosts = 150\&.203\&.5\&.\&. The full syntax of the list is described in the man page 3689 hosts_access(5)\&. Note that this man page may not be present on your system, so a brief description will be given here also\&. 3981 3690 .sp 3982 3691 Note that the localhost address 127\&.0\&.0\&.1 will always be allowed access unless specifically denied by a … … 3990 3699 Example 1: allow all IPs in 150\&.203\&.*\&.*; except one 3991 3700 .sp 3992 \FChosts allow = 150\&.203\&. EXCEPT 150\&.203\&.6\&.66\F[] 3701 hosts allow = 150\&.203\&. EXCEPT 150\&.203\&.6\&.66 3993 3702 .sp 3994 3703 Example 2: allow hosts that match the given network/netmask 3995 3704 .sp 3996 \FChosts allow = 150\&.203\&.15\&.0/255\&.255\&.255\&.0\F[] 3705 hosts allow = 150\&.203\&.15\&.0/255\&.255\&.255\&.0 3997 3706 .sp 3998 3707 Example 3: allow a couple of hosts 3999 3708 .sp 4000 \FChosts allow = lapland, arvidsjaur\F[] 3709 hosts allow = lapland, arvidsjaur 4001 3710 .sp 4002 3711 Example 4: allow only hosts in NIS netgroup "foonet", but deny access from one particular host 4003 3712 .sp 4004 \FChosts allow = @foonet\F[] 4005 .sp 4006 \FChosts deny = pirate\F[] 3713 hosts allow = @foonet 3714 .sp 3715 hosts deny = pirate 4007 3716 .if n \{\ 4008 3717 .sp 4009 3718 .\} 4010 3719 .RS 4 4011 .BM yellow4012 3720 .it 1 an-trap 4013 3721 .nr an-no-space-flag 1 … … 4020 3728 Note that access still requires suitable user\-level passwords\&. 4021 3729 .sp .5v 4022 .EM yellow4023 3730 .RE 4024 3731 See … … 4027 3734 .sp 4028 3735 Default: 4029 \fI\fIhosts allow\fR\fR\fI = \fR\fI \FC # none (i\&.e\&., all hosts permitted access)\F[]\fR\fI \fR4030 .sp 4031 Example: 4032 \fI\fIhosts allow\fR\fR\fI = \fR\fI \FC150\&.203\&.5\&. myhost\&.mynet\&.edu\&.au\F[]\fR\fI \fR3736 \fI\fIhosts allow\fR\fR\fI = \fR\fI # none (i\&.e\&., all hosts permitted access)\fR\fI \fR 3737 .sp 3738 Example: 3739 \fI\fIhosts allow\fR\fR\fI = \fR\fI150\&.203\&.5\&. myhost\&.mynet\&.edu\&.au\fR\fI \fR 4033 3740 .RE 4034 3741 … … 4054 3761 .sp 4055 3762 In the event that it is necessary to deny all by default, use the keyword ALL (or the netmask 4056 \FC0\&.0\&.0\&.0/0\F[]) and then explicitly specify to the3763 0\&.0\&.0\&.0/0) and then explicitly specify to the 4057 3764 \m[blue]\fBhosts allow = hosts allow\fR\m[] 4058 3765 parameter those hosts that should be permitted access\&. 4059 3766 .sp 4060 3767 Default: 4061 \fI\fIhosts deny\fR\fR\fI = \fR\fI \FC # none (i\&.e\&., no hosts specifically excluded)\F[]\fR\fI \fR4062 .sp 4063 Example: 4064 \fI\fIhosts deny\fR\fR\fI = \fR\fI \FC150\&.203\&.4\&. badhost\&.mynet\&.edu\&.au\F[]\fR\fI \fR3768 \fI\fIhosts deny\fR\fR\fI = \fR\fI # none (i\&.e\&., no hosts specifically excluded)\fR\fI \fR 3769 .sp 3770 Example: 3771 \fI\fIhosts deny\fR\fR\fI = \fR\fI150\&.203\&.4\&. badhost\&.mynet\&.edu\&.au\fR\fI \fR 4065 3772 .RE 4066 3773 … … 4082 3789 .sp 4083 3790 Example: 4084 \fI\fIidmap alloc backend\fR\fR\fI = \fR\fI \FCtdb\F[]\fR\fI \fR3791 \fI\fIidmap alloc backend\fR\fR\fI = \fR\fItdb\fR\fI \fR 4085 3792 .RE 4086 3793 … … 4124 3831 .sp 4125 3832 Default: 4126 \fI\fIidmap backend\fR\fR\fI = \fR\fI \FCtdb\F[]\fR\fI \fR3833 \fI\fIidmap backend\fR\fR\fI = \fR\fItdb\fR\fI \fR 4127 3834 .RE 4128 3835 … … 4134 3841 .sp 4135 3842 Default: 4136 \fI\fIidmap cache time\fR\fR\fI = \fR\fI \FC604800 (one week)\F[]\fR\fI \fR3843 \fI\fIidmap cache time\fR\fR\fI = \fR\fI604800 (one week)\fR\fI \fR 4137 3844 .RE 4138 3845 … … 4167 3874 .RS 4 4168 3875 .\} 4169 .fam C4170 .ps -14171 3876 .nf 4172 .if t \{\4173 .sp -14174 .\}4175 .BB lightgray adjust-for-leading-newline4176 .sp -14177 4178 3877 idmap backend = tdb 4179 3878 idmap uid = 1000000\-1999999 … … 4183 3882 idmap config CORP : range = 1000\-999999 4184 3883 4185 .EB lightgray adjust-for-leading-newline4186 .if t \{\4187 .sp 14188 .\}4189 3884 .fi 4190 .fam4191 .ps +14192 3885 .if n \{\ 4193 3886 .RE … … 4217 3910 .sp 4218 3911 Default: 4219 \fI\fIidmap gid\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR4220 .sp 4221 Example: 4222 \fI\fIidmap gid\fR\fR\fI = \fR\fI \FC10000\-20000\F[]\fR\fI \fR3912 \fI\fIidmap gid\fR\fR\fI = \fR\fI\fR\fI \fR 3913 .sp 3914 Example: 3915 \fI\fIidmap gid\fR\fR\fI = \fR\fI10000\-20000\fR\fI \fR 4223 3916 .RE 4224 3917 … … 4230 3923 .sp 4231 3924 Default: 4232 \fI\fIidmap negative cache time\fR\fR\fI = \fR\fI \FC120\F[]\fR\fI \fR3925 \fI\fIidmap negative cache time\fR\fR\fI = \fR\fI120\fR\fI \fR 4233 3926 .RE 4234 3927 … … 4254 3947 .sp 4255 3948 Default: 4256 \fI\fIidmap uid\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR4257 .sp 4258 Example: 4259 \fI\fIidmap uid\fR\fR\fI = \fR\fI \FC10000\-20000\F[]\fR\fI \fR3949 \fI\fIidmap uid\fR\fR\fI = \fR\fI\fR\fI \fR 3950 .sp 3951 Example: 3952 \fI\fIidmap uid\fR\fR\fI = \fR\fI10000\-20000\fR\fI \fR 4260 3953 .RE 4261 3954 … … 4281 3974 .sp 4282 3975 Default: 4283 \fI\fIinclude\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR4284 .sp 4285 Example: 4286 \fI\fIinclude\fR\fR\fI = \fR\fI \FC/usr/local/samba/lib/admin_smb\&.conf\F[]\fR\fI \fR3976 \fI\fIinclude\fR\fR\fI = \fR\fI\fR\fI \fR 3977 .sp 3978 Example: 3979 \fI\fIinclude\fR\fR\fI = \fR\fI/usr/local/samba/lib/admin_smb\&.conf\fR\fI \fR 4287 3980 .RE 4288 3981 … … 4294 3987 .sp 4295 3988 Default: 4296 \fI\fIinherit acls\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR3989 \fI\fIinherit acls\fR\fR\fI = \fR\fIno\fR\fI \fR 4297 3990 .RE 4298 3991 … … 4306 3999 .sp 4307 4000 Default: 4308 \fI\fIinherit owner\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR4001 \fI\fIinherit owner\fR\fR\fI = \fR\fIno\fR\fI \fR 4309 4002 .RE 4310 4003 … … 4337 4030 .sp 4338 4031 Default: 4339 \fI\fIinherit permissions\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR4032 \fI\fIinherit permissions\fR\fR\fI = \fR\fIno\fR\fI \fR 4340 4033 .RE 4341 4034 … … 4351 4044 .sp 4352 4045 Default: 4353 \fI\fIinit logon delayed hosts\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR4354 .sp 4355 Example: 4356 \fI\fIinit logon delayed hosts\fR\fR\fI = \fR\fI \FC150\&.203\&.5\&. myhost\&.mynet\&.de\F[]\fR\fI \fR4046 \fI\fIinit logon delayed hosts\fR\fR\fI = \fR\fI\fR\fI \fR 4047 .sp 4048 Example: 4049 \fI\fIinit logon delayed hosts\fR\fR\fI = \fR\fI150\&.203\&.5\&. myhost\&.mynet\&.de\fR\fI \fR 4357 4050 .RE 4358 4051 … … 4365 4058 .sp 4366 4059 Default: 4367 \fI\fIinit logon delay\fR\fR\fI = \fR\fI \FC100\F[]\fR\fI \fR4060 \fI\fIinit logon delay\fR\fR\fI = \fR\fI100\fR\fI \fR 4368 4061 .RE 4369 4062 … … 4429 4122 .sp 4430 4123 Default: 4431 \fI\fIinterfaces\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR4432 .sp 4433 Example: 4434 \fI\fIinterfaces\fR\fR\fI = \fR\fI \FCeth0 192\&.168\&.2\&.10/24 192\&.168\&.3\&.10/255\&.255\&.255\&.0\F[]\fR\fI \fR4124 \fI\fIinterfaces\fR\fR\fI = \fR\fI\fR\fI \fR 4125 .sp 4126 Example: 4127 \fI\fIinterfaces\fR\fR\fI = \fR\fIeth0 192\&.168\&.2\&.10/24 192\&.168\&.3\&.10/255\&.255\&.255\&.0\fR\fI \fR 4435 4128 .RE 4436 4129 … … 4455 4148 .sp 4456 4149 Default: 4457 \fI\fIinvalid users\fR\fR\fI = \fR\fI \FC # no invalid users\F[]\fR\fI \fR4458 .sp 4459 Example: 4460 \fI\fIinvalid users\fR\fR\fI = \fR\fI \FCroot fred admin @wheel\F[]\fR\fI \fR4150 \fI\fIinvalid users\fR\fR\fI = \fR\fI # no invalid users\fR\fI \fR 4151 .sp 4152 Example: 4153 \fI\fIinvalid users\fR\fR\fI = \fR\fIroot fred admin @wheel\fR\fI \fR 4461 4154 .RE 4462 4155 … … 4471 4164 .sp 4472 4165 If set, this option overrides the ServerName option in the CUPS 4473 \FCclient\&.conf\F[]\&. This is necessary if you have virtual samba servers that connect to different CUPS daemons\&.4474 .sp 4475 Default: 4476 \fI\fIiprint server\fR\fR\fI = \fR\fI \FC""\F[]\fR\fI \fR4477 .sp 4478 Example: 4479 \fI\fIiprint server\fR\fR\fI = \fR\fI \FCMYCUPSSERVER\F[]\fR\fI \fR4166 client\&.conf\&. This is necessary if you have virtual samba servers that connect to different CUPS daemons\&. 4167 .sp 4168 Default: 4169 \fI\fIiprint server\fR\fR\fI = \fR\fI""\fR\fI \fR 4170 .sp 4171 Example: 4172 \fI\fIiprint server\fR\fR\fI = \fR\fIMYCUPSSERVER\fR\fI \fR 4480 4173 .RE 4481 4174 … … 4492 4185 .sp 4493 4186 Default: 4494 \fI\fIkeepalive\fR\fR\fI = \fR\fI \FC300\F[]\fR\fI \fR4495 .sp 4496 Example: 4497 \fI\fIkeepalive\fR\fR\fI = \fR\fI \FC600\F[]\fR\fI \fR4187 \fI\fIkeepalive\fR\fR\fI = \fR\fI300\fR\fI \fR 4188 .sp 4189 Example: 4190 \fI\fIkeepalive\fR\fR\fI = \fR\fI600\fR\fI \fR 4498 4191 .RE 4499 4192 … … 4507 4200 .sp 4508 4201 Default: 4509 \fI\fIkernel change notify\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR4202 \fI\fIkernel change notify\fR\fR\fI = \fR\fIyes\fR\fI \fR 4510 4203 .RE 4511 4204 … … 4530 4223 .sp 4531 4224 Default: 4532 \fI\fIkernel oplocks\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR4225 \fI\fIkernel oplocks\fR\fR\fI = \fR\fIyes\fR\fI \fR 4533 4226 .RE 4534 4227 … … 4544 4237 .sp 4545 4238 Unlike the 4546 \FCencrypt passwords\F[] 4239 encrypt passwords 4547 4240 option, this parameter cannot alter client behaviour, and the LANMAN response will still be sent over the network\&. See the 4548 \FCclient lanman auth\F[] 4241 client lanman auth 4549 4242 to disable this for Samba\'s clients (such as smbclient) 4550 4243 .sp 4551 4244 If this option, and 4552 \FCntlm auth\F[] 4245 ntlm auth 4553 4246 are both disabled, then only NTLMv2 logins will be permited\&. Not all clients support NTLMv2, and most will require special configuration to use it\&. 4554 4247 .sp 4555 4248 Default: 4556 \fI\fIlanman auth\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR4249 \fI\fIlanman auth\fR\fR\fI = \fR\fIno\fR\fI \fR 4557 4250 .RE 4558 4251 … … 4566 4259 .sp 4567 4260 Default: 4568 \fI\fIlarge readwrite\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR4261 \fI\fIlarge readwrite\fR\fR\fI = \fR\fIyes\fR\fI \fR 4569 4262 .RE 4570 4263 … … 4578 4271 \m[blue]\fBldap admin dn\fR\m[] 4579 4272 is used in conjunction with the admin dn password stored in the 4580 \FCprivate/secrets\&.tdb\F[] 4273 private/secrets\&.tdb 4581 4274 file\&. See the 4582 4275 \fBsmbpasswd\fR(8) … … 4604 4297 .sp 4605 4298 Default: 4606 \fI\fIldap connection timeout\fR\fR\fI = \fR\fI \FC2\F[]\fR\fI \fR4299 \fI\fIldap connection timeout\fR\fR\fI = \fR\fI2\fR\fI \fR 4607 4300 .RE 4608 4301 … … 4621 4314 .sp 4622 4315 Default: 4623 \fI\fIldap debug level\fR\fR\fI = \fR\fI \FC0\F[]\fR\fI \fR4624 .sp 4625 Example: 4626 \fI\fIldap debug level\fR\fR\fI = \fR\fI \FC1\F[]\fR\fI \fR4316 \fI\fIldap debug level\fR\fR\fI = \fR\fI0\fR\fI \fR 4317 .sp 4318 Example: 4319 \fI\fIldap debug level\fR\fR\fI = \fR\fI1\fR\fI \fR 4627 4320 .RE 4628 4321 … … 4636 4329 .sp 4637 4330 Default: 4638 \fI\fIldap debug threshold\fR\fR\fI = \fR\fI \FC10\F[]\fR\fI \fR4639 .sp 4640 Example: 4641 \fI\fIldap debug threshold\fR\fR\fI = \fR\fI \FC5\F[]\fR\fI \fR4331 \fI\fIldap debug threshold\fR\fR\fI = \fR\fI10\fR\fI \fR 4332 .sp 4333 Example: 4334 \fI\fIldap debug threshold\fR\fR\fI = \fR\fI5\fR\fI \fR 4642 4335 .RE 4643 4336 … … 4649 4342 .sp 4650 4343 Default: 4651 \fI\fIldap delete dn\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR4344 \fI\fIldap delete dn\fR\fR\fI = \fR\fIno\fR\fI \fR 4652 4345 .RE 4653 4346 … … 4663 4356 .sp 4664 4357 Default: 4665 \fI\fIldap group suffix\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR4666 .sp 4667 Example: 4668 \fI\fIldap group suffix\fR\fR\fI = \fR\fI \FCou=Groups\F[]\fR\fI \fR4358 \fI\fIldap group suffix\fR\fR\fI = \fR\fI\fR\fI \fR 4359 .sp 4360 Example: 4361 \fI\fIldap group suffix\fR\fR\fI = \fR\fIou=Groups\fR\fI \fR 4669 4362 .RE 4670 4363 … … 4680 4373 .sp 4681 4374 Default: 4682 \fI\fIldap idmap suffix\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR4683 .sp 4684 Example: 4685 \fI\fIldap idmap suffix\fR\fR\fI = \fR\fI \FCou=Idmap\F[]\fR\fI \fR4375 \fI\fIldap idmap suffix\fR\fR\fI = \fR\fI\fR\fI \fR 4376 .sp 4377 Example: 4378 \fI\fIldap idmap suffix\fR\fR\fI = \fR\fIou=Idmap\fR\fI \fR 4686 4379 .RE 4687 4380 … … 4697 4390 .sp 4698 4391 Default: 4699 \fI\fIldap machine suffix\fR\fR\fI = \fR\fI\FC\F[]\fR\fI \fR 4700 .sp 4701 Example: 4702 \fI\fIldap machine suffix\fR\fR\fI = \fR\fI\FCou=Computers\F[]\fR\fI \fR 4392 \fI\fIldap machine suffix\fR\fR\fI = \fR\fI\fR\fI \fR 4393 .sp 4394 Example: 4395 \fI\fIldap machine suffix\fR\fR\fI = \fR\fIou=Computers\fR\fI \fR 4396 .RE 4397 4398 ldap page size (G) 4399 .\" ldap page size 4400 .PP 4401 .RS 4 4402 This parameter specifies the number of entries per page\&. 4403 .sp 4404 If the LDAP server supports paged results, clients can request subsets of search results (pages) instead of the entire list\&. This parameter specifies the size of these pages\&. 4405 .sp 4406 Default: 4407 \fI\fIldap page size\fR\fR\fI = \fR\fI1024\fR\fI \fR 4408 .sp 4409 Example: 4410 \fI\fIldap page size\fR\fR\fI = \fR\fI512\fR\fI \fR 4703 4411 .RE 4704 4412 … … 4750 4458 .RE 4751 4459 Default: 4752 \fI\fIldap passwd sync\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR4460 \fI\fIldap passwd sync\fR\fR\fI = \fR\fIno\fR\fI \fR 4753 4461 .RE 4754 4462 … … 4764 4472 .sp 4765 4473 Default: 4766 \fI\fIldap replication sleep\fR\fR\fI = \fR\fI \FC1000\F[]\fR\fI \fR4474 \fI\fIldap replication sleep\fR\fR\fI = \fR\fI1000\fR\fI \fR 4767 4475 .RE 4768 4476 … … 4774 4482 .sp 4775 4483 To use this option, a basic ldap tree must be provided and the ldap suffix parameters must be properly configured\&. On virgin servers the default users and groups (Administrator, Guest, Domain Users, Domain Admins, Domain Guests) can be precreated with the command 4776 \FCnet sam provision\F[]\&. To run this command the ldap server must be running, Winindd must be running and the smb\&.conf ldap options must be properly configured\&. The typical ldap setup used with the4484 net sam provision\&. To run this command the ldap server must be running, Winindd must be running and the smb\&.conf ldap options must be properly configured\&. The typical ldap setup used with the 4777 4485 \m[blue]\fBldapsam:trusted = yes\fR\m[] 4778 4486 option is usually sufficient to use … … 4785 4493 .RS 4 4786 4494 .\} 4787 .fam C4788 .ps -14789 4495 .nf 4790 .if t \{\4791 .sp -14792 .\}4793 .BB lightgray adjust-for-leading-newline4794 .sp -14795 4796 4496 encrypt passwords = true 4797 4497 passdb backend = ldapsam … … 4813 4513 idmap gid = 5000\-50000 4814 4514 4815 .EB lightgray adjust-for-leading-newline4816 .if t \{\4817 .sp 14818 .\}4819 4515 .fi 4820 .fam4821 .ps +14822 4516 .if n \{\ 4823 4517 .RE … … 4829 4523 .RS 4 4830 4524 .\} 4831 .fam C4832 .ps -14833 4525 .nf 4834 .if t \{\4835 .sp -14836 .\}4837 .BB lightgray adjust-for-leading-newline4838 .sp -14839 4840 4526 dn: dc=samba,dc=org 4841 4527 objectClass: top … … 4872 4558 ou: computers 4873 4559 4874 .EB lightgray adjust-for-leading-newline4875 .if t \{\4876 .sp 14877 .\}4878 4560 .fi 4879 .fam4880 .ps +14881 4561 .if n \{\ 4882 4562 .RE … … 4884 4564 .sp 4885 4565 Default: 4886 \fI\fIldapsam:editposix\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR4566 \fI\fIldapsam:editposix\fR\fR\fI = \fR\fIno\fR\fI \fR 4887 4567 .RE 4888 4568 … … 4900 4580 .sp 4901 4581 Default: 4902 \fI\fIldapsam:trusted\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR4582 \fI\fIldapsam:trusted\fR\fR\fI = \fR\fIno\fR\fI \fR 4903 4583 .RE 4904 4584 … … 4920 4600 .sp 4921 4601 Default: 4922 \fI\fIldap ssl ads\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR4602 \fI\fIldap ssl ads\fR\fR\fI = \fR\fIno\fR\fI \fR 4923 4603 .RE 4924 4604 … … 4930 4610 \fINOT\fR 4931 4611 related to Samba\'s previous SSL support which was enabled by specifying the 4932 \ FC\-\-with\-ssl\F[]4612 \-\-with\-ssl 4933 4613 option to the 4934 \FCconfigure\F[] 4614 configure 4935 4615 script\&. 4936 4616 .sp … … 4985 4665 .sp 4986 4666 Default: 4987 \fI\fIldap ssl\fR\fR\fI = \fR\fI \FCstart tls\F[]\fR\fI \fR4667 \fI\fIldap ssl\fR\fR\fI = \fR\fIstart tls\fR\fI \fR 4988 4668 .RE 4989 4669 … … 5002 4682 .sp 5003 4683 Default: 5004 \fI\fIldap suffix\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR5005 .sp 5006 Example: 5007 \fI\fIldap suffix\fR\fR\fI = \fR\fI \FCdc=samba,dc=org\F[]\fR\fI \fR4684 \fI\fIldap suffix\fR\fR\fI = \fR\fI\fR\fI \fR 4685 .sp 4686 Example: 4687 \fI\fIldap suffix\fR\fR\fI = \fR\fIdc=samba,dc=org\fR\fI \fR 5008 4688 .RE 5009 4689 … … 5015 4695 .sp 5016 4696 Default: 5017 \fI\fIldap timeout\fR\fR\fI = \fR\fI \FC15\F[]\fR\fI \fR4697 \fI\fIldap timeout\fR\fR\fI = \fR\fI15\fR\fI \fR 5018 4698 .RE 5019 4699 … … 5029 4709 .sp 5030 4710 Default: 5031 \fI\fIldap user suffix\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR5032 .sp 5033 Example: 5034 \fI\fIldap user suffix\fR\fR\fI = \fR\fI \FCou=people\F[]\fR\fI \fR4711 \fI\fIldap user suffix\fR\fR\fI = \fR\fI\fR\fI \fR 4712 .sp 4713 Example: 4714 \fI\fIldap user suffix\fR\fR\fI = \fR\fIou=people\fR\fI \fR 5035 4715 .RE 5036 4716 … … 5059 4739 .sp 5060 4740 Default: 5061 \fI\fIlevel2 oplocks\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR4741 \fI\fIlevel2 oplocks\fR\fR\fI = \fR\fIyes\fR\fI \fR 5062 4742 .RE 5063 4743 … … 5083 4763 .sp 5084 4764 Default: 5085 \fI\fIlm announce\fR\fR\fI = \fR\fI \FCauto\F[]\fR\fI \fR5086 .sp 5087 Example: 5088 \fI\fIlm announce\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR4765 \fI\fIlm announce\fR\fR\fI = \fR\fIauto\fR\fI \fR 4766 .sp 4767 Example: 4768 \fI\fIlm announce\fR\fR\fI = \fR\fIyes\fR\fI \fR 5089 4769 .RE 5090 4770 … … 5100 4780 .sp 5101 4781 Default: 5102 \fI\fIlm interval\fR\fR\fI = \fR\fI \FC60\F[]\fR\fI \fR5103 .sp 5104 Example: 5105 \fI\fIlm interval\fR\fR\fI = \fR\fI \FC120\F[]\fR\fI \fR4782 \fI\fIlm interval\fR\fR\fI = \fR\fI60\fR\fI \fR 4783 .sp 4784 Example: 4785 \fI\fIlm interval\fR\fR\fI = \fR\fI120\fR\fI \fR 5106 4786 .RE 5107 4787 … … 5115 4795 .sp 5116 4796 Default: 5117 \fI\fIload printers\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR4797 \fI\fIload printers\fR\fR\fI = \fR\fIyes\fR\fI \fR 5118 4798 .RE 5119 4799 … … 5127 4807 \fBno\fR 5128 4808 then 5129 \FC nmbd\F[] 4809 nmbd 5130 4810 will not attempt to become a local master browser on a subnet and will also lose in all browsing elections\&. By default this value is set to 5131 4811 \fByes\fR\&. Setting this value to … … 5134 4814 \fIbecome\fR 5135 4815 the local master browser on a subnet, just that 5136 \FCnmbd\F[] 4816 nmbd 5137 4817 will 5138 4818 \fIparticipate\fR … … 5142 4822 \fBno\fR 5143 4823 will cause 5144 \FCnmbd\F[] 4824 nmbd 5145 4825 \fInever\fR 5146 4826 to become a local master browser\&. 5147 4827 .sp 5148 4828 Default: 5149 \fI\fIlocal master\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR4829 \fI\fIlocal master\fR\fR\fI = \fR\fIyes\fR\fI \fR 5150 4830 .RE 5151 4831 … … 5169 4849 .sp 5170 4850 Default: 5171 \fI\fIlock directory\fR\fR\fI = \fR\fI \FC${prefix}/var/locks\F[]\fR\fI \fR5172 .sp 5173 Example: 5174 \fI\fIlock directory\fR\fR\fI = \fR\fI \FC/var/run/samba/locks\F[]\fR\fI \fR4851 \fI\fIlock directory\fR\fR\fI = \fR\fI${prefix}/var/locks\fR\fI \fR 4852 .sp 4853 Example: 4854 \fI\fIlock directory\fR\fR\fI = \fR\fI/var/run/samba/locks\fR\fI \fR 5175 4855 .RE 5176 4856 … … 5182 4862 .sp 5183 4863 If 5184 \FClocking = no\F[], all lock and unlock requests will appear to succeed and all lock queries will report that the file in question is available for locking\&.4864 locking = no, all lock and unlock requests will appear to succeed and all lock queries will report that the file in question is available for locking\&. 5185 4865 .sp 5186 4866 If 5187 \FClocking = yes\F[], real locking will be performed by the server\&.4867 locking = yes, real locking will be performed by the server\&. 5188 4868 .sp 5189 4869 This option … … 5208 4888 .sp 5209 4889 Default: 5210 \fI\fIlock spin count\fR\fR\fI = \fR\fI \FC0\F[]\fR\fI \fR4890 \fI\fIlock spin count\fR\fR\fI = \fR\fI0\fR\fI \fR 5211 4891 .RE 5212 4892 … … 5220 4900 .sp 5221 4901 Default: 5222 \fI\fIlock spin time\fR\fR\fI = \fR\fI \FC200\F[]\fR\fI \fR4902 \fI\fIlock spin time\fR\fR\fI = \fR\fI200\fR\fI \fR 5223 4903 .RE 5224 4904 … … 5234 4914 .sp 5235 4915 Example: 5236 \fI\fIlog file\fR\fR\fI = \fR\fI \FC/usr/local/samba/var/log\&.%m\F[]\fR\fI \fR4916 \fI\fIlog file\fR\fR\fI = \fR\fI/usr/local/samba/var/log\&.%m\fR\fI \fR 5237 4917 .RE 5238 4918 … … 5250 4930 .RS 4 5251 4931 The value of the parameter (a astring) allows the debug level (logging level) to be specified in the 5252 \FCsmb\&.conf\F[] 4932 smb\&.conf 5253 4933 file\&. 5254 4934 .sp … … 5476 5156 .RE 5477 5157 Default: 5478 \fI\fIlog level\fR\fR\fI = \fR\fI \FC0\F[]\fR\fI \fR5479 .sp 5480 Example: 5481 \fI\fIlog level\fR\fR\fI = \fR\fI \FC3 passdb:5 auth:10 winbind:2\F[]\fR\fI \fR5158 \fI\fIlog level\fR\fR\fI = \fR\fI0\fR\fI \fR 5159 .sp 5160 Example: 5161 \fI\fIlog level\fR\fR\fI = \fR\fI3 passdb:5 auth:10 winbind:2\fR\fI \fR 5482 5162 .RE 5483 5163 … … 5492 5172 .sp 5493 5173 Default: 5494 \fI\fIlogon drive\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR5495 .sp 5496 Example: 5497 \fI\fIlogon drive\fR\fR\fI = \fR\fI \FCh:\F[]\fR\fI \fR5174 \fI\fIlogon drive\fR\fR\fI = \fR\fI\fR\fI \fR 5175 .sp 5176 Example: 5177 \fI\fIlogon drive\fR\fR\fI = \fR\fIh:\fR\fI \fR 5498 5178 .RE 5499 5179 … … 5505 5185 .sp 5506 5186 5507 \FCC:\e>\F[]\fBNET USE H: /HOME\fR5187 C:\e>\fBNET USE H: /HOME\fR 5508 5188 .sp 5509 5189 from a command prompt, for example\&. … … 5514 5194 .sp 5515 5195 5516 \FClogon home = \e\e%N\e%U\eprofile\F[] 5196 logon home = \e\e%N\e%U\eprofile 5517 5197 .sp 5518 5198 This tells Samba to return the above string, with substitutions made when a client requests the info, generally in a NetUserGetInfo request\&. Win9X clients truncate the info to \e\eserver\eshare when a user does 5519 \FCnet use /home\F[] 5199 net use /home 5520 5200 but use the whole string when dealing with profiles\&. 5521 5201 .sp … … 5524 5204 was returned rather than 5525 5205 \fIlogon home\fR\&. This broke 5526 \FCnet use /home\F[] 5206 net use /home 5527 5207 but allowed profiles outside the home directory\&. The current implementation is correct, and can be used for profiles if you use the above trick\&. 5528 5208 .sp … … 5534 5214 .sp 5535 5215 Default: 5536 \fI\fIlogon home\fR\fR\fI = \fR\fI\ FC\e\e%N\e%U\F[]\fR\fI \fR5537 .sp 5538 Example: 5539 \fI\fIlogon home\fR\fR\fI = \fR\fI\ FC\e\eremote_smb_server\e%U\F[]\fR\fI \fR5216 \fI\fIlogon home\fR\fR\fI = \fR\fI\e\e%N\e%U\fR\fI \fR 5217 .sp 5218 Example: 5219 \fI\fIlogon home\fR\fR\fI = \fR\fI\e\eremote_smb_server\e%U\fR\fI \fR 5540 5220 .RE 5541 5221 … … 5549 5229 .sp 5550 5230 This option takes the standard substitutions, allowing you to have separate logon scripts for each user or machine\&. It also specifies the directory from which the "Application Data", 5551 \FCdesktop\F[],5552 \FCstart menu\F[],5553 \FCnetwork neighborhood\F[],5554 \FCprograms\F[] 5231 desktop, 5232 start menu, 5233 network neighborhood, 5234 programs 5555 5235 and other folders, and their contents, are loaded and displayed on your Windows NT client\&. 5556 5236 .sp … … 5565 5245 .\} 5566 5246 .RS 4 5567 .BM yellow5568 5247 .it 1 an-trap 5569 5248 .nr an-no-space-flag 1 … … 5578 5257 will break profile handling\&. Where the tdbsam or ldapsam passdb backend is used, at the time the user account is created the value configured for this parameter is written to the passdb backend and that value will over\-ride the parameter value present in the smb\&.conf file\&. Any error present in the passdb backend account record must be editted using the appropriate tool (pdbedit on the command\-line, or any other locally provided system tool)\&. 5579 5258 .sp .5v 5580 .EM yellow5581 5259 .RE 5582 5260 Note that this option is only useful if Samba is set up as a domain controller\&. … … 5590 5268 .RS 4 5591 5269 .\} 5592 .fam C5593 .ps -15594 5270 .nf 5595 .if t \{\5596 .sp -15597 .\}5598 .BB lightgray adjust-for-leading-newline5599 .sp -15600 5601 5271 logon path = \e\ePROFILESERVER\ePROFILE\e%U 5602 .EB lightgray adjust-for-leading-newline5603 .if t \{\5604 .sp 15605 .\}5606 5272 .fi 5607 .fam5608 .ps +15609 5273 .if n \{\ 5610 5274 .RE … … 5612 5276 .sp 5613 5277 Default: 5614 \fI\fIlogon path\fR\fR\fI = \fR\fI\ FC\e\e%N\e%U\eprofile\F[]\fR\fI \fR5278 \fI\fIlogon path\fR\fR\fI = \fR\fI\e\e%N\e%U\eprofile\fR\fI \fR 5615 5279 .RE 5616 5280 … … 5619 5283 .PP 5620 5284 .RS 4 5621 This parameter specifies the batch file (\ FC\&.bat\F[]) or NT command file (\FC\&.cmd\F[]) to be downloaded and run on a machine when a user successfully logs in\&. The file must contain the DOS style CR/LF line endings\&. Using a DOS\-style editor to create the file is recommended\&.5285 This parameter specifies the batch file (\&.bat) or NT command file (\&.cmd) to be downloaded and run on a machine when a user successfully logs in\&. The file must contain the DOS style CR/LF line endings\&. Using a DOS\-style editor to create the file is recommended\&. 5622 5286 .sp 5623 5287 The script must be a relative path to the … … 5626 5290 \m[blue]\fBpath\fR\m[] 5627 5291 of 5628 \FC/usr/local/samba/netlogon\F[], and5292 /usr/local/samba/netlogon, and 5629 5293 \m[blue]\fBlogon script = STARTUP\&.BAT\fR\m[], then the file that will be downloaded is: 5630 5294 .sp … … 5632 5296 .RS 4 5633 5297 .\} 5634 .fam C5635 .ps -15636 5298 .nf 5637 .if t \{\5638 .sp -15639 .\}5640 .BB lightgray adjust-for-leading-newline5641 .sp -15642 5643 5299 /usr/local/samba/netlogon/STARTUP\&.BAT 5644 .EB lightgray adjust-for-leading-newline5645 .if t \{\5646 .sp 15647 .\}5648 5300 .fi 5649 .fam5650 .ps +15651 5301 .if n \{\ 5652 5302 .RE … … 5654 5304 .sp 5655 5305 The contents of the batch file are entirely your choice\&. A suggested command would be to add 5656 \FCNET TIME \e\eSERVER /SET /YES\F[], to force every machine to synchronize clocks with the same time server\&. Another use would be to add5657 \FCNET USE U: \e\eSERVER\eUTILS\F[] 5306 NET TIME \e\eSERVER /SET /YES, to force every machine to synchronize clocks with the same time server\&. Another use would be to add 5307 NET USE U: \e\eSERVER\eUTILS 5658 5308 for commonly used utilities, or 5659 5309 .sp … … 5661 5311 .RS 4 5662 5312 .\} 5663 .fam C5664 .ps -15665 5313 .nf 5666 .if t \{\5667 .sp -15668 .\}5669 .BB lightgray adjust-for-leading-newline5670 .sp -15671 5672 5314 \fBNET USE Q: \e\eSERVER\eISO9001_QA\fR 5673 .EB lightgray adjust-for-leading-newline5674 .if t \{\5675 .sp 15676 .\}5677 5315 .fi 5678 .fam5679 .ps +15680 5316 .if n \{\ 5681 5317 .RE … … 5691 5327 .sp 5692 5328 Default: 5693 \fI\fIlogon script\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR5694 .sp 5695 Example: 5696 \fI\fIlogon script\fR\fR\fI = \fR\fI \FCscripts\e%U\&.bat\F[]\fR\fI \fR5329 \fI\fIlogon script\fR\fR\fI = \fR\fI\fR\fI \fR 5330 .sp 5331 Example: 5332 \fI\fIlogon script\fR\fR\fI = \fR\fIscripts\e%U\&.bat\fR\fI \fR 5697 5333 .RE 5698 5334 … … 5717 5353 .sp 5718 5354 Default: 5719 \fI\fIlppause command\fR\fR\fI = \fR\fI \FC # Currently no default value is given to this string, unless the value of the \m[blue]\fBprinting\fR\m[] parameter is \fBSYSV\fR, in which case the default is : \FClp \-i %p\-%j \-H hold\F[] or if the value of the \fIprinting\fR parameter is \fBSOFTQ\fR, then the default is: \FCqstat \-s \-j%j \-h\F[]\&. \F[]\fR\fI \fR5720 .sp 5721 Example: 5722 \fI\fIlppause command\fR\fR\fI = \fR\fI \FC/usr/bin/lpalt %p\-%j \-p0\F[]\fR\fI \fR5355 \fI\fIlppause command\fR\fR\fI = \fR\fI # Currently no default value is given to this string, unless the value of the \m[blue]\fBprinting\fR\m[] parameter is \fBSYSV\fR, in which case the default is : lp \-i %p\-%j \-H hold or if the value of the \fIprinting\fR parameter is \fBSOFTQ\fR, then the default is: qstat \-s \-j%j \-h\&. \fR\fI \fR 5356 .sp 5357 Example: 5358 \fI\fIlppause command\fR\fR\fI = \fR\fI/usr/bin/lpalt %p\-%j \-p0\fR\fI \fR 5723 5359 .RE 5724 5360 … … 5728 5364 .RS 4 5729 5365 This controls how long lpq info will be cached for to prevent the 5730 \FClpq\F[] 5366 lpq 5731 5367 command being called too often\&. A separate cache is kept for each variation of the 5732 \FC lpq\F[] 5368 lpq 5733 5369 command used by the system, so if you use different 5734 \FClpq\F[] 5370 lpq 5735 5371 commands for different users then they won\'t share cache information\&. 5736 5372 .sp 5737 5373 The cache files are stored in 5738 \FC/tmp/lpq\&.xxxx\F[] 5374 /tmp/lpq\&.xxxx 5739 5375 where xxxx is a hash of the 5740 \FClpq\F[] 5376 lpq 5741 5377 command in use\&. 5742 5378 .sp 5743 5379 The default is 30 seconds, meaning that the cached results of a previous identical 5744 \FClpq\F[] 5380 lpq 5745 5381 command will be used if the cached data is less than 30 seconds old\&. A large value may be advisable if your 5746 \FClpq\F[] 5382 lpq 5747 5383 command is very slow\&. 5748 5384 .sp … … 5750 5386 .sp 5751 5387 Default: 5752 \fI\fIlpq cache time\fR\fR\fI = \fR\fI \FC30\F[]\fR\fI \fR5753 .sp 5754 Example: 5755 \fI\fIlpq cache time\fR\fR\fI = \fR\fI \FC10\F[]\fR\fI \fR5388 \fI\fIlpq cache time\fR\fR\fI = \fR\fI30\fR\fI \fR 5389 .sp 5390 Example: 5391 \fI\fIlpq cache time\fR\fR\fI = \fR\fI10\fR\fI \fR 5756 5392 .RE 5757 5393 … … 5761 5397 .RS 4 5762 5398 This parameter specifies the command to be executed on the server host in order to obtain 5763 \FClpq \F[]\-style printer status information\&.5399 lpq\-style printer status information\&. 5764 5400 .sp 5765 5401 This command should be a program or script which takes a printer name as its only parameter and outputs printer status information\&. … … 5784 5420 .sp 5785 5421 Default: 5786 \fI\fIlpq command\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR5787 .sp 5788 Example: 5789 \fI\fIlpq command\fR\fR\fI = \fR\fI \FC/usr/bin/lpq \-P%p\F[]\fR\fI \fR5422 \fI\fIlpq command\fR\fR\fI = \fR\fI\fR\fI \fR 5423 .sp 5424 Example: 5425 \fI\fIlpq command\fR\fR\fI = \fR\fI/usr/bin/lpq \-P%p\fR\fI \fR 5790 5426 .RE 5791 5427 … … 5819 5455 \fBSYSV\fR, in which case the default is: 5820 5456 .sp 5821 \FClp \-i %p\-%j \-H resume\F[] 5457 lp \-i %p\-%j \-H resume 5822 5458 .sp 5823 5459 or if the value of the … … 5826 5462 \fBSOFTQ\fR, then the default is: 5827 5463 .sp 5828 \FCqstat \-s \-j%j \-r\F[] 5464 qstat \-s \-j%j \-r 5829 5465 .sp 5830 5466 \fINo default\fR 5831 5467 .sp 5832 5468 Example: 5833 \fI\fIlpresume command\fR\fR\fI = \fR\fI \FC/usr/bin/lpalt %p\-%j \-p2\F[]\fR\fI \fR5469 \fI\fIlpresume command\fR\fR\fI = \fR\fI/usr/bin/lpalt %p\-%j \-p2\fR\fI \fR 5834 5470 .RE 5835 5471 … … 5857 5493 .RS 4 5858 5494 .\} 5859 .fam C5860 .ps -15861 5495 .nf 5862 .if t \{\5863 .sp -15864 .\}5865 .BB lightgray adjust-for-leading-newline5866 .sp -15867 5868 5496 lprm command = /usr/bin/lprm \-P%p %j 5869 5497 … … 5871 5499 5872 5500 lprm command = /usr/bin/cancel %p\-%j 5873 .EB lightgray adjust-for-leading-newline5874 .if t \{\5875 .sp 15876 .\}5877 5501 .fi 5878 .fam5879 .ps +15880 5502 .if n \{\ 5881 5503 .RE … … 5883 5505 .sp 5884 5506 Default: 5885 \fI\fIlprm command\fR\fR\fI = \fR\fI \FC determined by printing parameter\F[]\fR\fI \fR5507 \fI\fIlprm command\fR\fR\fI = \fR\fI determined by printing parameter\fR\fI \fR 5886 5508 .RE 5887 5509 … … 5893 5515 \m[blue]\fBsecurity = domain\fR\m[] 5894 5516 parameter) then periodically a running smbd process will try and change the MACHINE ACCOUNT PASSWORD stored in the TDB called 5895 \FCprivate/secrets\&.tdb \F[]\&. This parameter specifies how often this password will be changed, in seconds\&. The default is one week (expressed in seconds), the same as a Windows NT Domain member server\&.5517 private/secrets\&.tdb\&. This parameter specifies how often this password will be changed, in seconds\&. The default is one week (expressed in seconds), the same as a Windows NT Domain member server\&. 5896 5518 .sp 5897 5519 See also … … 5901 5523 .sp 5902 5524 Default: 5903 \fI\fImachine password timeout\fR\fR\fI = \fR\fI \FC604800\F[]\fR\fI \fR5525 \fI\fImachine password timeout\fR\fR\fI = \fR\fI604800\fR\fI \fR 5904 5526 .RE 5905 5527 … … 5915 5537 .\} 5916 5538 .RS 4 5917 .BM yellow5918 5539 .it 1 an-trap 5919 5540 .nr an-no-space-flag 1 … … 5928 5549 in the same directory the output file content is undefined\&. 5929 5550 .sp .5v 5930 .EM yellow 5931 .RE 5932 Default: 5933 \fI\fImagic output\fR\fR\fI = \fR\fI\FC<magic script name>\&.out\F[]\fR\fI \fR 5934 .sp 5935 Example: 5936 \fI\fImagic output\fR\fR\fI = \fR\fI\FCmyfile\&.txt\F[]\fR\fI \fR 5551 .RE 5552 Default: 5553 \fI\fImagic output\fR\fR\fI = \fR\fI<magic script name>\&.out\fR\fI \fR 5554 .sp 5555 Example: 5556 \fI\fImagic output\fR\fR\fI = \fR\fImyfile\&.txt\fR\fI \fR 5937 5557 .RE 5938 5558 … … 5960 5580 .sp 5961 5581 Default: 5962 \fI\fImagic script\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR5963 .sp 5964 Example: 5965 \fI\fImagic script\fR\fR\fI = \fR\fI \FCuser\&.csh\F[]\fR\fI \fR5582 \fI\fImagic script\fR\fR\fI = \fR\fI\fR\fI \fR 5583 .sp 5584 Example: 5585 \fI\fImagic script\fR\fR\fI = \fR\fIuser\&.csh\fR\fI \fR 5966 5586 .RE 5967 5587 … … 6022 5642 .sp 6023 5643 Default: 6024 \fI\fImangled names\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR5644 \fI\fImangled names\fR\fR\fI = \fR\fIyes\fR\fI \fR 6025 5645 .RE 6026 5646 … … 6034 5654 .sp 6035 5655 Default: 6036 \fI\fImangle prefix\fR\fR\fI = \fR\fI \FC1\F[]\fR\fI \fR6037 .sp 6038 Example: 6039 \fI\fImangle prefix\fR\fR\fI = \fR\fI \FC4\F[]\fR\fI \fR5656 \fI\fImangle prefix\fR\fR\fI = \fR\fI1\fR\fI \fR 5657 .sp 5658 Example: 5659 \fI\fImangle prefix\fR\fR\fI = \fR\fI4\fR\fI \fR 6040 5660 .RE 6041 5661 … … 6050 5670 .sp 6051 5671 Default: 6052 \fI\fImangling char\fR\fR\fI = \fR\fI \FC~\F[]\fR\fI \fR6053 .sp 6054 Example: 6055 \fI\fImangling char\fR\fR\fI = \fR\fI \FC^\F[]\fR\fI \fR5672 \fI\fImangling char\fR\fR\fI = \fR\fI~\fR\fI \fR 5673 .sp 5674 Example: 5675 \fI\fImangling char\fR\fR\fI = \fR\fI^\fR\fI \fR 6056 5676 .RE 6057 5677 … … 6063 5683 .sp 6064 5684 Default: 6065 \fI\fImangling method\fR\fR\fI = \fR\fI \FChash2\F[]\fR\fI \fR6066 .sp 6067 Example: 6068 \fI\fImangling method\fR\fR\fI = \fR\fI \FChash\F[]\fR\fI \fR5685 \fI\fImangling method\fR\fR\fI = \fR\fIhash2\fR\fI \fR 5686 .sp 5687 Example: 5688 \fI\fImangling method\fR\fR\fI = \fR\fIhash\fR\fI \fR 6069 5689 .RE 6070 5690 … … 6078 5698 .sp 6079 5699 Default: 6080 \fI\fImap acl inherit\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR5700 \fI\fImap acl inherit\fR\fR\fI = \fR\fIno\fR\fI \fR 6081 5701 .RE 6082 5702 … … 6094 5714 .sp 6095 5715 Default: 6096 \fI\fImap archive\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR5716 \fI\fImap archive\fR\fR\fI = \fR\fIyes\fR\fI \fR 6097 5717 .RE 6098 5718 … … 6176 5796 .RE 6177 5797 Default: 6178 \fI\fImap read only\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR5798 \fI\fImap read only\fR\fR\fI = \fR\fIyes\fR\fI \fR 6179 5799 .RE 6180 5800 … … 6192 5812 .sp 6193 5813 Default: 6194 \fI\fImap system\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR5814 \fI\fImap system\fR\fR\fI = \fR\fIno\fR\fI \fR 6195 5815 .RE 6196 5816 … … 6282 5902 .sp 6283 5903 Default: 6284 \fI\fImap to guest\fR\fR\fI = \fR\fI \FCNever\F[]\fR\fI \fR6285 .sp 6286 Example: 6287 \fI\fImap to guest\fR\fR\fI = \fR\fI \FCBad User\F[]\fR\fI \fR5904 \fI\fImap to guest\fR\fR\fI = \fR\fINever\fR\fI \fR 5905 .sp 5906 Example: 5907 \fI\fImap to guest\fR\fR\fI = \fR\fIBad User\fR\fI \fR 6288 5908 .RE 6289 5909 … … 6301 5921 .sp 6302 5922 Default: 6303 \fI\fImax connections\fR\fR\fI = \fR\fI \FC0\F[]\fR\fI \fR6304 .sp 6305 Example: 6306 \fI\fImax connections\fR\fR\fI = \fR\fI \FC10\F[]\fR\fI \fR5923 \fI\fImax connections\fR\fR\fI = \fR\fI0\fR\fI \fR 5924 .sp 5925 Example: 5926 \fI\fImax connections\fR\fR\fI = \fR\fI10\fR\fI \fR 6307 5927 .RE 6308 5928 … … 6323 5943 .sp 6324 5944 Default: 6325 \fI\fImax disk size\fR\fR\fI = \fR\fI \FC0\F[]\fR\fI \fR6326 .sp 6327 Example: 6328 \fI\fImax disk size\fR\fR\fI = \fR\fI \FC1000\F[]\fR\fI \fR5945 \fI\fImax disk size\fR\fR\fI = \fR\fI0\fR\fI \fR 5946 .sp 5947 Example: 5948 \fI\fImax disk size\fR\fR\fI = \fR\fI1000\fR\fI \fR 6329 5949 .RE 6330 5950 … … 6334 5954 .RS 4 6335 5955 This option (an integer in kilobytes) specifies the max size the log file should grow to\&. Samba periodically checks the size and if it is exceeded it will rename the file, adding a 6336 \ FC\&.old\F[]5956 \&.old 6337 5957 extension\&. 6338 5958 .sp … … 6340 5960 .sp 6341 5961 Default: 6342 \fI\fImax log size\fR\fR\fI = \fR\fI \FC5000\F[]\fR\fI \fR6343 .sp 6344 Example: 6345 \fI\fImax log size\fR\fR\fI = \fR\fI \FC1000\F[]\fR\fI \fR5962 \fI\fImax log size\fR\fR\fI = \fR\fI5000\fR\fI \fR 5963 .sp 5964 Example: 5965 \fI\fImax log size\fR\fR\fI = \fR\fI1000\fR\fI \fR 6346 5966 .RE 6347 5967 … … 6353 5973 .sp 6354 5974 Default: 6355 \fI\fImax mux\fR\fR\fI = \fR\fI \FC50\F[]\fR\fI \fR5975 \fI\fImax mux\fR\fR\fI = \fR\fI50\fR\fI \fR 6356 5976 .RE 6357 5977 … … 6367 5987 .sp 6368 5988 Default: 6369 \fI\fImax open files\fR\fR\fI = \fR\fI \FC10000\F[]\fR\fI \fR5989 \fI\fImax open files\fR\fR\fI = \fR\fI10000\fR\fI \fR 6370 5990 .RE 6371 5991 … … 6379 5999 .sp 6380 6000 Default: 6381 \fI\fImax print jobs\fR\fR\fI = \fR\fI \FC1000\F[]\fR\fI \fR6382 .sp 6383 Example: 6384 \fI\fImax print jobs\fR\fR\fI = \fR\fI \FC5000\F[]\fR\fI \fR6001 \fI\fImax print jobs\fR\fR\fI = \fR\fI1000\fR\fI \fR 6002 .sp 6003 Example: 6004 \fI\fImax print jobs\fR\fR\fI = \fR\fI5000\fR\fI \fR 6385 6005 .RE 6386 6006 … … 6461 6081 .sp 6462 6082 Default: 6463 \fI\fImax protocol\fR\fR\fI = \fR\fI \FCNT1\F[]\fR\fI \fR6464 .sp 6465 Example: 6466 \fI\fImax protocol\fR\fR\fI = \fR\fI \FCLANMAN1\F[]\fR\fI \fR6083 \fI\fImax protocol\fR\fR\fI = \fR\fINT1\fR\fI \fR 6084 .sp 6085 Example: 6086 \fI\fImax protocol\fR\fR\fI = \fR\fILANMAN1\fR\fI \fR 6467 6087 .RE 6468 6088 … … 6474 6094 .sp 6475 6095 Default: 6476 \fI\fImax reported print jobs\fR\fR\fI = \fR\fI \FC0\F[]\fR\fI \fR6477 .sp 6478 Example: 6479 \fI\fImax reported print jobs\fR\fR\fI = \fR\fI \FC1000\F[]\fR\fI \fR6096 \fI\fImax reported print jobs\fR\fR\fI = \fR\fI0\fR\fI \fR 6097 .sp 6098 Example: 6099 \fI\fImax reported print jobs\fR\fR\fI = \fR\fI1000\fR\fI \fR 6480 6100 .RE 6481 6101 … … 6491 6111 .sp 6492 6112 Default: 6493 \fI\fImax smbd processes\fR\fR\fI = \fR\fI \FC0\F[]\fR\fI \fR6494 .sp 6495 Example: 6496 \fI\fImax smbd processes\fR\fR\fI = \fR\fI \FC1000\F[]\fR\fI \fR6113 \fI\fImax smbd processes\fR\fR\fI = \fR\fI0\fR\fI \fR 6114 .sp 6115 Example: 6116 \fI\fImax smbd processes\fR\fR\fI = \fR\fI1000\fR\fI \fR 6497 6117 .RE 6498 6118 … … 6506 6126 .sp 6507 6127 Default: 6508 \fI\fImax stat cache size\fR\fR\fI = \fR\fI \FC256\F[]\fR\fI \fR6509 .sp 6510 Example: 6511 \fI\fImax stat cache size\fR\fR\fI = \fR\fI \FC100\F[]\fR\fI \fR6128 \fI\fImax stat cache size\fR\fR\fI = \fR\fI256\fR\fI \fR 6129 .sp 6130 Example: 6131 \fI\fImax stat cache size\fR\fR\fI = \fR\fI100\fR\fI \fR 6512 6132 .RE 6513 6133 … … 6519 6139 \fBnmbd\fR(8) 6520 6140 what the default \'time to live\' of NetBIOS names should be (in seconds) when 6521 \FCnmbd\F[] 6141 nmbd 6522 6142 is requesting a name using either a broadcast packet or from a WINS server\&. You should never need to change this parameter\&. The default is 3 days\&. 6523 6143 .sp 6524 6144 Default: 6525 \fI\fImax ttl\fR\fR\fI = \fR\fI \FC259200\F[]\fR\fI \fR6145 \fI\fImax ttl\fR\fR\fI = \fR\fI259200\fR\fI \fR 6526 6146 .RE 6527 6147 … … 6533 6153 \fBsmbd\fR(8) 6534 6154 when acting as a WINS server (\m[blue]\fBwins support = yes\fR\m[]) what the maximum \'time to live\' of NetBIOS names that 6535 \FCnmbd\F[] 6155 nmbd 6536 6156 will grant will be (in seconds)\&. You should never need to change this parameter\&. The default is 6 days (518400 seconds)\&. 6537 6157 .sp 6538 6158 Default: 6539 \fI\fImax wins ttl\fR\fR\fI = \fR\fI \FC518400\F[]\fR\fI \fR6159 \fI\fImax wins ttl\fR\fR\fI = \fR\fI518400\fR\fI \fR 6540 6160 .RE 6541 6161 … … 6547 6167 .sp 6548 6168 Default: 6549 \fI\fImax xmit\fR\fR\fI = \fR\fI \FC16644\F[]\fR\fI \fR6550 .sp 6551 Example: 6552 \fI\fImax xmit\fR\fR\fI = \fR\fI \FC8192\F[]\fR\fI \fR6169 \fI\fImax xmit\fR\fR\fI = \fR\fI16644\fR\fI \fR 6170 .sp 6171 Example: 6172 \fI\fImax xmit\fR\fR\fI = \fR\fI8192\fR\fI \fR 6553 6173 .RE 6554 6174 … … 6566 6186 .RS 4 6567 6187 .\} 6568 .fam C6569 .ps -16570 6188 .nf 6571 .if t \{\ 6572 .sp -1 6573 .\} 6574 .BB lightgray adjust-for-leading-newline 6575 .sp -1 6576 6577 \FCmessage command = csh \-c \'xedit %s;rm %s\' &\F[] 6578 .EB lightgray adjust-for-leading-newline 6579 .if t \{\ 6580 .sp 1 6581 .\} 6189 message command = csh \-c \'xedit %s;rm %s\' & 6582 6190 .fi 6583 .fam6584 .ps +16585 6191 .if n \{\ 6586 6192 .RE … … 6588 6194 .sp 6589 6195 This delivers the message using 6590 \FCxedit\F[], then removes it afterwards\&.6196 xedit, then removes it afterwards\&. 6591 6197 \fINOTE THAT IT IS VERY IMPORTANT THAT THIS COMMAND RETURN IMMEDIATELY\fR\&. That\'s why I have the \'&\' on the end\&. If it doesn\'t return immediately then your PCs may freeze when sending messages (they should recover after 30 seconds, hopefully)\&. 6592 6198 .sp … … 6641 6247 .RS 4 6642 6248 .\} 6643 .fam C6644 .ps -16645 6249 .nf 6646 .if t \{\ 6647 .sp -1 6648 .\} 6649 .BB lightgray adjust-for-leading-newline 6650 .sp -1 6651 6652 \FCmessage command = /bin/mail \-s \'message from %f on %m\' root < %s; rm %s\F[] 6653 .EB lightgray adjust-for-leading-newline 6654 .if t \{\ 6655 .sp 1 6656 .\} 6250 message command = /bin/mail \-s \'message from %f on %m\' root < %s; rm %s 6657 6251 .fi 6658 .fam6659 .ps +16660 6252 .if n \{\ 6661 6253 .RE … … 6669 6261 .RS 4 6670 6262 .\} 6671 .fam C6672 .ps -16673 6263 .nf 6674 .if t \{\ 6675 .sp -1 6676 .\} 6677 .BB lightgray adjust-for-leading-newline 6678 .sp -1 6679 6680 \FCmessage command = rm %s\F[] 6681 .EB lightgray adjust-for-leading-newline 6682 .if t \{\ 6683 .sp 1 6684 .\} 6264 message command = rm %s 6685 6265 .fi 6686 .fam6687 .ps +16688 6266 .if n \{\ 6689 6267 .RE … … 6691 6269 .sp 6692 6270 Default: 6693 \fI\fImessage command\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR6694 .sp 6695 Example: 6696 \fI\fImessage command\fR\fR\fI = \fR\fI \FCcsh \-c \'xedit %s; rm %s\' &\F[]\fR\fI \fR6271 \fI\fImessage command\fR\fR\fI = \fR\fI\fR\fI \fR 6272 .sp 6273 Example: 6274 \fI\fImessage command\fR\fR\fI = \fR\fIcsh \-c \'xedit %s; rm %s\' &\fR\fI \fR 6697 6275 .RE 6698 6276 … … 6704 6282 .sp 6705 6283 Default: 6706 \fI\fImin print space\fR\fR\fI = \fR\fI \FC0\F[]\fR\fI \fR6707 .sp 6708 Example: 6709 \fI\fImin print space\fR\fR\fI = \fR\fI \FC2000\F[]\fR\fI \fR6284 \fI\fImin print space\fR\fR\fI = \fR\fI0\fR\fI \fR 6285 .sp 6286 Example: 6287 \fI\fImin print space\fR\fR\fI = \fR\fI2000\fR\fI \fR 6710 6288 .RE 6711 6289 … … 6717 6295 \m[blue]\fBmax protocol\fR\m[] 6718 6296 parameter for a list of valid protocol names and a brief description of each\&. You may also wish to refer to the C source code in 6719 \FCsource/smbd/negprot\&.c\F[] 6297 source/smbd/negprot\&.c 6720 6298 for a listing of known protocol dialects supported by clients\&. 6721 6299 .sp … … 6725 6303 .sp 6726 6304 Default: 6727 \fI\fImin protocol\fR\fR\fI = \fR\fI \FCCORE\F[]\fR\fI \fR6728 .sp 6729 Example: 6730 \fI\fImin protocol\fR\fR\fI = \fR\fI \FCNT1\F[]\fR\fI \fR6305 \fI\fImin protocol\fR\fR\fI = \fR\fICORE\fR\fI \fR 6306 .sp 6307 Example: 6308 \fI\fImin protocol\fR\fR\fI = \fR\fINT1\fR\fI \fR 6731 6309 .RE 6732 6310 … … 6744 6322 .sp 6745 6323 Default: 6746 \fI\fImin receivefile size\fR\fR\fI = \fR\fI \FC0\F[]\fR\fI \fR6324 \fI\fImin receivefile size\fR\fR\fI = \fR\fI0\fR\fI \fR 6747 6325 .RE 6748 6326 … … 6754 6332 \fBnmbd\fR(8) 6755 6333 when acting as a WINS server (\m[blue]\fBwins support = yes\fR\m[]) what the minimum \'time to live\' of NetBIOS names that 6756 \FCnmbd\F[] 6334 nmbd 6757 6335 will grant will be (in seconds)\&. You should never need to change this parameter\&. The default is 6 hours (21600 seconds)\&. 6758 6336 .sp 6759 6337 Default: 6760 \fI\fImin wins ttl\fR\fR\fI = \fR\fI \FC21600\F[]\fR\fI \fR6338 \fI\fImin wins ttl\fR\fR\fI = \fR\fI21600\fR\fI \fR 6761 6339 .RE 6762 6340 … … 6776 6354 .sp 6777 6355 Example: 6778 \fI\fImsdfs proxy\fR\fR\fI = \fR\fI\ FC\eotherserver\esomeshare\F[]\fR\fI \fR6356 \fI\fImsdfs proxy\fR\fR\fI = \fR\fI\eotherserver\esomeshare\fR\fI \fR 6779 6357 .RE 6780 6358 … … 6785 6363 If set to 6786 6364 \fByes\fR, Samba treats the share as a Dfs root and allows clients to browse the distributed file system tree rooted at the share directory\&. Dfs links are specified in the share directory by symbolic links of the form 6787 \FCmsdfs:serverA\e\eshareA,serverB\e\eshareB\F[] 6365 msdfs:serverA\e\eshareA,serverB\e\eshareB 6788 6366 and so on\&. For more information on setting up a Dfs tree on Samba, refer to the MSDFS chapter in the Samba3\-HOWTO book\&. 6789 6367 .sp 6790 6368 Default: 6791 \fI\fImsdfs root\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR6369 \fI\fImsdfs root\fR\fR\fI = \fR\fIno\fR\fI \fR 6792 6370 .RE 6793 6371 … … 6799 6377 .sp 6800 6378 Default: 6801 \fI\fIname cache timeout\fR\fR\fI = \fR\fI \FC660\F[]\fR\fI \fR6802 .sp 6803 Example: 6804 \fI\fIname cache timeout\fR\fR\fI = \fR\fI \FC0\F[]\fR\fI \fR6379 \fI\fIname cache timeout\fR\fR\fI = \fR\fI660\fR\fI \fR 6380 .sp 6381 Example: 6382 \fI\fIname cache timeout\fR\fR\fI = \fR\fI0\fR\fI \fR 6805 6383 .RE 6806 6384 … … 6837 6415 \fBhost\fR 6838 6416 : Do a standard host name to IP address resolution, using the system 6839 \FC/etc/hosts \F[], NIS, or DNS lookups\&. This method of name resolution is operating system depended for instance on IRIX or Solaris this may be controlled by the6840 \FC/etc/nsswitch\&.conf\F[] 6417 /etc/hosts, NIS, or DNS lookups\&. This method of name resolution is operating system depended for instance on IRIX or Solaris this may be controlled by the 6418 /etc/nsswitch\&.conf 6841 6419 file\&. Note that this method is used only if the NetBIOS name type being queried is the 0x20 (server) name type or 0x1c (domain controllers)\&. The latter case is only useful for active directory domains and results in a DNS query for the SRV RR entry matching _ldap\&._tcp\&.domain\&. 6842 6420 .RE … … 6872 6450 The example below will cause the local lmhosts file to be examined first, followed by a broadcast attempt, followed by a normal system hostname lookup\&. 6873 6451 .sp 6874 When Samba is functioning in ADS security mode ( \FCsecurity = ads\F[]) it is advised to use following settings for6452 When Samba is functioning in ADS security mode (security = ads) it is advised to use following settings for 6875 6453 \fIname resolve order\fR: 6876 6454 .sp 6877 \FCname resolve order = wins bcast\F[] 6455 name resolve order = wins bcast 6878 6456 .sp 6879 6457 DC lookups will still be done via DNS, but fallbacks to netbios names will not inundate your DNS servers with needless querys for DOMAIN<0x1c> lookups\&. 6880 6458 .sp 6881 6459 Default: 6882 \fI\fIname resolve order\fR\fR\fI = \fR\fI \FClmhosts host wins bcast\F[]\fR\fI \fR6883 .sp 6884 Example: 6885 \fI\fIname resolve order\fR\fR\fI = \fR\fI \FClmhosts bcast host\F[]\fR\fI \fR6460 \fI\fIname resolve order\fR\fR\fI = \fR\fIlmhosts host wins bcast\fR\fI \fR 6461 .sp 6462 Example: 6463 \fI\fIname resolve order\fR\fR\fI = \fR\fIlmhosts bcast host\fR\fI \fR 6886 6464 .RE 6887 6465 … … 6893 6471 .sp 6894 6472 Default: 6895 \fI\fInetbios aliases\fR\fR\fI = \fR\fI \FC # empty string (no additional names)\F[]\fR\fI \fR6896 .sp 6897 Example: 6898 \fI\fInetbios aliases\fR\fR\fI = \fR\fI \FCTEST TEST1 TEST2\F[]\fR\fI \fR6473 \fI\fInetbios aliases\fR\fR\fI = \fR\fI # empty string (no additional names)\fR\fI \fR 6474 .sp 6475 Example: 6476 \fI\fInetbios aliases\fR\fR\fI = \fR\fITEST TEST1 TEST2\fR\fI \fR 6899 6477 .RE 6900 6478 … … 6906 6484 .sp 6907 6485 There is a bug in Samba\-3 that breaks operation of browsing and access to shares if the netbios name is set to the literal name 6908 \FCPIPE\F[]\&. To avoid this problem, do not name your Samba\-3 server6909 \FCPIPE\F[]\&.6910 .sp 6911 Default: 6912 \fI\fInetbios name\fR\fR\fI = \fR\fI \FC # machine DNS name\F[]\fR\fI \fR6913 .sp 6914 Example: 6915 \fI\fInetbios name\fR\fR\fI = \fR\fI \FCMYNAME\F[]\fR\fI \fR6486 PIPE\&. To avoid this problem, do not name your Samba\-3 server 6487 PIPE\&. 6488 .sp 6489 Default: 6490 \fI\fInetbios name\fR\fR\fI = \fR\fI # machine DNS name\fR\fI \fR 6491 .sp 6492 Example: 6493 \fI\fInetbios name\fR\fR\fI = \fR\fIMYNAME\fR\fI \fR 6916 6494 .RE 6917 6495 … … 6923 6501 .sp 6924 6502 Default: 6925 \fI\fInetbios scope\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR6503 \fI\fInetbios scope\fR\fR\fI = \fR\fI\fR\fI \fR 6926 6504 .RE 6927 6505 … … 6941 6519 .sp 6942 6520 Default: 6943 \fI\fInis homedir\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR6521 \fI\fInis homedir\fR\fR\fI = \fR\fIno\fR\fI \fR 6944 6522 .RE 6945 6523 … … 6953 6531 .sp 6954 6532 Default: 6955 \fI\fInt acl support\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR6533 \fI\fInt acl support\fR\fR\fI = \fR\fIyes\fR\fI \fR 6956 6534 .RE 6957 6535 … … 6965 6543 .sp 6966 6544 If this option, and 6967 \FClanman auth\F[] 6545 lanman auth 6968 6546 are both disabled, then only NTLMv2 logins will be permited\&. Not all clients support NTLMv2, and most will require special configuration to use it\&. 6969 6547 .sp 6970 6548 Default: 6971 \fI\fIntlm auth\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR6549 \fI\fIntlm auth\fR\fR\fI = \fR\fIyes\fR\fI \fR 6972 6550 .RE 6973 6551 … … 6983 6561 .sp 6984 6562 Default: 6985 \fI\fInt pipe support\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR6563 \fI\fInt pipe support\fR\fR\fI = \fR\fIyes\fR\fI \fR 6986 6564 .RE 6987 6565 … … 6999 6577 .sp 7000 6578 Default: 7001 \fI\fInt status support\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR6579 \fI\fInt status support\fR\fR\fI = \fR\fIyes\fR\fI \fR 7002 6580 .RE 7003 6581 … … 7012 6590 .sp 7013 6591 Default: 7014 \fI\fInull passwords\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR6592 \fI\fInull passwords\fR\fR\fI = \fR\fIno\fR\fI \fR 7015 6593 .RE 7016 6594 … … 7023 6601 .sp 7024 6602 Default: 7025 \fI\fIobey pam restrictions\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR6603 \fI\fIobey pam restrictions\fR\fR\fI = \fR\fIno\fR\fI \fR 7026 6604 .RE 7027 6605 … … 7039 6617 .sp 7040 6618 Note that this also means Samba won\'t try to deduce usernames from the service name\&. This can be annoying for the [homes] section\&. To get around this you could use 7041 \FCuser = %S\F[] 6619 user = %S 7042 6620 which means your 7043 6621 \fIuser\fR … … 7045 6623 .sp 7046 6624 Default: 7047 \fI\fIonly user\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR6625 \fI\fIonly user\fR\fR\fI = \fR\fIno\fR\fI \fR 7048 6626 .RE 7049 6627 … … 7057 6635 .\} 7058 6636 .RS 4 7059 .BM yellow7060 6637 .it 1 an-trap 7061 6638 .nr an-no-space-flag 1 … … 7068 6645 DO NOT CHANGE THIS PARAMETER UNLESS YOU HAVE READ AND UNDERSTOOD THE SAMBA OPLOCK CODE\&. 7069 6646 .sp .5v 7070 .EM yellow 7071 .RE 7072 Default: 7073 \fI\fIoplock break wait time\fR\fR\fI = \fR\fI\FC0\F[]\fR\fI \fR 6647 .RE 6648 Default: 6649 \fI\fIoplock break wait time\fR\fR\fI = \fR\fI0\fR\fI \fR 7074 6650 .RE 7075 6651 … … 7086 6662 In brief it specifies a number, which causes 7087 6663 \fBsmbd\fR(8)not to grant an oplock even when requested if the approximate number of clients contending for an oplock on the same file goes over this limit\&. This causes 7088 \FCsmbd\F[] 6664 smbd 7089 6665 to behave in a similar way to Windows NT\&. 7090 6666 .if n \{\ … … 7092 6668 .\} 7093 6669 .RS 4 7094 .BM yellow7095 6670 .it 1 an-trap 7096 6671 .nr an-no-space-flag 1 … … 7103 6678 DO NOT CHANGE THIS PARAMETER UNLESS YOU HAVE READ AND UNDERSTOOD THE SAMBA OPLOCK CODE\&. 7104 6679 .sp .5v 7105 .EM yellow 7106 .RE 7107 Default: 7108 \fI\fIoplock contention limit\fR\fR\fI = \fR\fI\FC2\F[]\fR\fI \fR 6680 .RE 6681 Default: 6682 \fI\fIoplock contention limit\fR\fR\fI = \fR\fI2\fR\fI \fR 7109 6683 .RE 7110 6684 … … 7114 6688 .RS 4 7115 6689 This boolean option tells 7116 \FCsmbd\F[] 6690 smbd 7117 6691 whether to issue oplocks (opportunistic locks) to file open requests on this share\&. The oplock code can dramatically (approx\&. 30% or more) improve the speed of access to files on Samba servers\&. It allows the clients to aggressively cache files locally and you may want to disable this option for unreliable network environments (it is turned on by default in Windows NT Servers)\&. For more information see the file 7118 \FCSpeed\&.txt\F[] 6692 Speed\&.txt 7119 6693 in the Samba 7120 \FCdocs/\F[] 6694 docs/ 7121 6695 directory\&. 7122 6696 .sp … … 7128 6702 .sp 7129 6703 Default: 7130 \fI\fIoplocks\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR6704 \fI\fIoplocks\fR\fR\fI = \fR\fIyes\fR\fI \fR 7131 6705 .RE 7132 6706 … … 7140 6714 .sp 7141 6715 For example, a valid entry using the HP LaserJet 5 printer driver would appear as 7142 \FCHP LaserJet 5L = LASERJET\&.HP LaserJet 5L\F[]\&.6716 HP LaserJet 5L = LASERJET\&.HP LaserJet 5L\&. 7143 6717 .sp 7144 6718 The need for the file is due to the printer driver namespace problem described in the chapter on Classical Printing in the Samba3\-HOWTO book\&. For more details on OS/2 clients, please refer to chapter on other clients in the Samba3\-HOWTO book\&. 7145 6719 .sp 7146 6720 Default: 7147 \fI\fIos2 driver map\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR6721 \fI\fIos2 driver map\fR\fR\fI = \fR\fI\fR\fI \fR 7148 6722 .RE 7149 6723 … … 7164 6738 .sp 7165 6739 Default: 7166 \fI\fIos level\fR\fR\fI = \fR\fI \FC20\F[]\fR\fI \fR7167 .sp 7168 Example: 7169 \fI\fIos level\fR\fR\fI = \fR\fI \FC65\F[]\fR\fI \fR6740 \fI\fIos level\fR\fR\fI = \fR\fI20\fR\fI \fR 6741 .sp 6742 Example: 6743 \fI\fIos level\fR\fR\fI = \fR\fI65\fR\fI \fR 7170 6744 .RE 7171 6745 … … 7180 6754 .sp 7181 6755 Default: 7182 \fI\fIpam password change\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR6756 \fI\fIpam password change\fR\fR\fI = \fR\fIno\fR\fI \fR 7183 6757 .RE 7184 6758 … … 7194 6768 .sp 7195 6769 Default: 7196 \fI\fIpanic action\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR7197 .sp 7198 Example: 7199 \fI\fIpanic action\fR\fR\fI = \fR\fI \FC"/bin/sleep 90000"\F[]\fR\fI \fR6770 \fI\fIpanic action\fR\fR\fI = \fR\fI\fR\fI \fR 6771 .sp 6772 Example: 6773 \fI\fIpanic action\fR\fR\fI = \fR\fI"/bin/sleep 90000"\fR\fI \fR 7200 6774 .RE 7201 6775 … … 7209 6783 .sp 7210 6784 Default: 7211 \fI\fIparanoid server security\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR6785 \fI\fIparanoid server security\fR\fR\fI = \fR\fIyes\fR\fI \fR 7212 6786 .RE 7213 6787 … … 7230 6804 .IP \(bu 2.3 7231 6805 .\} 7232 \FCsmbpasswd\F[] 6806 smbpasswd 7233 6807 \- The default smbpasswd backend\&. Takes a path to the smbpasswd file as an optional argument\&. 7234 6808 .RE … … 7242 6816 .IP \(bu 2.3 7243 6817 .\} 7244 \FCtdbsam\F[] 6818 tdbsam 7245 6819 \- The TDB based password storage backend\&. Takes a path to the TDB as an optional argument (defaults to passdb\&.tdb in the 7246 6820 \m[blue]\fBprivate dir\fR\m[] … … 7256 6830 .IP \(bu 2.3 7257 6831 .\} 7258 \FCldapsam\F[] 6832 ldapsam 7259 6833 \- The LDAP based passdb backend\&. Takes an LDAP URL as an optional argument (defaults to 7260 \FCldap://localhost\F[])6834 ldap://localhost) 7261 6835 .sp 7262 6836 LDAP connections should be secured where possible\&. This may be done using either Start\-TLS (see … … 7274 6848 .RS 4 7275 6849 .\} 7276 .fam C7277 .ps -17278 6850 .nf 7279 .if t \{\7280 .sp -17281 .\}7282 .BB lightgray adjust-for-leading-newline7283 .sp -17284 7285 6851 passdb backend = tdbsam:/etc/samba/private/passdb\&.tdb 7286 6852 … … 7292 6858 7293 6859 passdb backend = ldapsam:"ldap://ldap\-1\&.example\&.com ldap\-2\&.example\&.com" 7294 .EB lightgray adjust-for-leading-newline7295 .if t \{\7296 .sp 17297 .\}7298 6860 .fi 7299 .fam7300 .ps +17301 6861 .if n \{\ 7302 6862 .RE … … 7304 6864 .sp 7305 6865 Default: 7306 \fI\fIpassdb backend\fR\fR\fI = \fR\fI \FCsmbpasswd\F[]\fR\fI \fR6866 \fI\fIpassdb backend\fR\fR\fI = \fR\fIsmbpasswd\fR\fI \fR 7307 6867 .RE 7308 6868 … … 7314 6874 .sp 7315 6875 Default: 7316 \fI\fIpassdb expand explicit\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR6876 \fI\fIpassdb expand explicit\fR\fR\fI = \fR\fIno\fR\fI \fR 7317 6877 .RE 7318 6878 … … 7328 6888 \m[blue]\fBdebug level\fR\m[] 7329 6889 of 100\&. This is a dangerous option as it will allow plaintext passwords to be seen in the 7330 \FCsmbd\F[] 6890 smbd 7331 6891 log\&. It is available to help Samba admins debug their 7332 6892 \fIpasswd chat\fR … … 7338 6898 .sp 7339 6899 Default: 7340 \fI\fIpasswd chat debug\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR6900 \fI\fIpasswd chat debug\fR\fR\fI = \fR\fIno\fR\fI \fR 7341 6901 .RE 7342 6902 … … 7348 6908 .sp 7349 6909 Default: 7350 \fI\fIpasswd chat timeout\fR\fR\fI = \fR\fI \FC2\F[]\fR\fI \fR6910 \fI\fIpasswd chat timeout\fR\fR\fI = \fR\fI2\fR\fI \fR 7351 6911 .RE 7352 6912 … … 7390 6950 .sp 7391 6951 Default: 7392 \fI\fIpasswd chat\fR\fR\fI = \fR\fI \FC*new*password* %n\en*new*password* %n\en *changed*\F[]\fR\fI \fR7393 .sp 7394 Example: 7395 \fI\fIpasswd chat\fR\fR\fI = \fR\fI \FC"*Enter NEW password*" %n\en "*Reenter NEW password*" %n\en "*Password changed*"\F[]\fR\fI \fR6952 \fI\fIpasswd chat\fR\fR\fI = \fR\fI*new*password* %n\en*new*password* %n\en *changed*\fR\fI \fR 6953 .sp 6954 Example: 6955 \fI\fIpasswd chat\fR\fR\fI = \fR\fI"*Enter NEW password*" %n\en "*Reenter NEW password*" %n\en "*Password changed*"\fR\fI \fR 7396 6956 .RE 7397 6957 … … 7416 6976 \fIAS ROOT\fR 7417 6977 before the SMB password in the smbpasswd file is changed\&. If this UNIX password change fails, then 7418 \FCsmbd\F[] 6978 smbd 7419 6979 will fail to change the SMB password also (this is by design)\&. 7420 6980 .sp … … 7431 6991 .sp 7432 6992 Default: 7433 \fI\fIpasswd program\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR7434 .sp 7435 Example: 7436 \fI\fIpasswd program\fR\fR\fI = \fR\fI \FC/bin/passwd %u\F[]\fR\fI \fR6993 \fI\fIpasswd program\fR\fR\fI = \fR\fI\fR\fI \fR 6994 .sp 6995 Example: 6996 \fI\fIpasswd program\fR\fR\fI = \fR\fI/bin/passwd %u\fR\fI \fR 7437 6997 .RE 7438 6998 … … 7467 7027 .sp 7468 7028 Default: 7469 \fI\fIpassword level\fR\fR\fI = \fR\fI \FC0\F[]\fR\fI \fR7470 .sp 7471 Example: 7472 \fI\fIpassword level\fR\fR\fI = \fR\fI \FC4\F[]\fR\fI \fR7029 \fI\fIpassword level\fR\fR\fI = \fR\fI0\fR\fI \fR 7030 .sp 7031 Example: 7032 \fI\fIpassword level\fR\fR\fI = \fR\fI4\fR\fI \fR 7473 7033 .RE 7474 7034 … … 7478 7038 .RS 4 7479 7039 By specifying the name of another SMB server or Active Directory domain controller with this option, and using 7480 \FCsecurity = [ads|domain|server]\F[]7040 security = [ads|domain|server] 7481 7041 it is possible to get Samba to do all its username/password validation using a specific remote server\&. 7482 7042 .sp … … 7492 7052 .\} 7493 7053 .RS 4 7494 .BM yellow7495 7054 .it 1 an-trap 7496 7055 .nr an-no-space-flag 1 … … 7504 7063 \fIDO NOT CHOOSE A PASSWORD SERVER THAT YOU DON\'T COMPLETELY TRUST\fR\&. 7505 7064 .sp .5v 7506 .EM yellow7507 7065 .RE 7508 7066 Never point a Samba server at itself for password serving\&. This will cause a loop and could lock up your Samba server! … … 7517 7075 or 7518 7076 \fBads\fR, then the list of machines in this option must be a list of Primary or Backup Domain controllers for the Domain or the character \'*\', as the Samba server is effectively in that domain, and will use cryptographically authenticated RPC calls to authenticate the user logging on\&. The advantage of using 7519 \FC security = domain\F[] 7077 security = domain 7520 7078 is that if you list several hosts in the 7521 7079 \fIpassword server\fR 7522 7080 option then 7523 \FCsmbd \F[] 7081 smbd 7524 7082 will try each in turn till it finds one that responds\&. This is useful in case your primary server goes down\&. 7525 7083 .sp … … 7536 7094 parameter is set to 7537 7095 \fBserver\fR, then there are different restrictions that 7538 \FCsecurity = domain\F[] 7096 security = domain 7539 7097 doesn\'t suffer from: 7540 7098 .sp … … 7550 7108 \fIpassword server\fR 7551 7109 parameter, however if an 7552 \FCsmbd\F[] 7110 smbd 7553 7111 makes a connection to a password server, and then the password server fails, no more users will be able to be authenticated from this 7554 \FCsmbd\F[]\&. This is a restriction of the SMB/CIFS protocol when in7555 \FCsecurity = server \F[] 7112 smbd\&. This is a restriction of the SMB/CIFS protocol when in 7113 security = server 7556 7114 mode and cannot be fixed in Samba\&. 7557 7115 .RE … … 7566 7124 .\} 7567 7125 If you are using a Windows NT server as your password server then you will have to ensure that your users are able to login from the Samba server, as when in 7568 \FC security = server\F[] 7126 security = server 7569 7127 mode the network logon will appear to come from there rather than from the users workstation\&. 7570 7128 .sp 7571 7129 .RE 7572 7130 Default: 7573 \fI\fIpassword server\fR\fR\fI = \fR\fI \FC*\F[]\fR\fI \fR7574 .sp 7575 Example: 7576 \fI\fIpassword server\fR\fR\fI = \fR\fI \FCNT\-PDC, NT\-BDC1, NT\-BDC2, *\F[]\fR\fI \fR7577 .sp 7578 Example: 7579 \fI\fIpassword server\fR\fR\fI = \fR\fI \FCwindc\&.mydomain\&.com:389 192\&.168\&.1\&.101 *\F[]\fR\fI \fR7131 \fI\fIpassword server\fR\fR\fI = \fR\fI*\fR\fI \fR 7132 .sp 7133 Example: 7134 \fI\fIpassword server\fR\fR\fI = \fR\fINT\-PDC, NT\-BDC1, NT\-BDC2, *\fR\fI \fR 7135 .sp 7136 Example: 7137 \fI\fIpassword server\fR\fR\fI = \fR\fIwindc\&.mydomain\&.com:389 192\&.168\&.1\&.101 *\fR\fI \fR 7580 7138 .RE 7581 7139 … … 7607 7165 .sp 7608 7166 Default: 7609 \fI\fIpath\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR7610 .sp 7611 Example: 7612 \fI\fIpath\fR\fR\fI = \fR\fI \FC/home/fred\F[]\fR\fI \fR7167 \fI\fIpath\fR\fR\fI = \fR\fI\fR\fI \fR 7168 .sp 7169 Example: 7170 \fI\fIpath\fR\fR\fI = \fR\fI/home/fred\fR\fI \fR 7613 7171 .RE 7614 7172 … … 7620 7178 .sp 7621 7179 Default: 7622 \fI\fIpid directory\fR\fR\fI = \fR\fI \FC${prefix}/var/locks\F[]\fR\fI \fR7623 .sp 7624 Example: 7625 \fI\fIpid directory\fR\fR\fI = \fR\fI \FCpid directory = /var/run/\F[]\fR\fI \fR7180 \fI\fIpid directory\fR\fR\fI = \fR\fI${prefix}/var/locks\fR\fI \fR 7181 .sp 7182 Example: 7183 \fI\fIpid directory\fR\fR\fI = \fR\fIpid directory = /var/run/\fR\fI \fR 7626 7184 .RE 7627 7185 … … 7635 7193 .sp 7636 7194 Default: 7637 \fI\fIposix locking\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR7195 \fI\fIposix locking\fR\fR\fI = \fR\fIyes\fR\fI \fR 7638 7196 .RE 7639 7197 … … 7646 7204 An interesting example may be to unmount server resources: 7647 7205 .sp 7648 \FCpostexec = /etc/umount /cdrom\F[] 7649 .sp 7650 Default: 7651 \fI\fIpostexec\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR7652 .sp 7653 Example: 7654 \fI\fIpostexec\fR\fR\fI = \fR\fI \FCecho \e"%u disconnected from %S from %m (%I)\e" >> /tmp/log\F[]\fR\fI \fR7206 postexec = /etc/umount /cdrom 7207 .sp 7208 Default: 7209 \fI\fIpostexec\fR\fR\fI = \fR\fI\fR\fI \fR 7210 .sp 7211 Example: 7212 \fI\fIpostexec\fR\fR\fI = \fR\fIecho \e"%u disconnected from %S from %m (%I)\e" >> /tmp/log\fR\fI \fR 7655 7213 .RE 7656 7214 … … 7664 7222 .sp 7665 7223 Default: 7666 \fI\fIpreexec close\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR7224 \fI\fIpreexec close\fR\fR\fI = \fR\fIno\fR\fI \fR 7667 7225 .RE 7668 7226 … … 7684 7242 .sp 7685 7243 7686 \FCpreexec = csh \-c \'echo \e"Welcome to %S!\e" | /usr/local/samba/bin/smbclient \-M %m \-I %I\' & \F[] 7244 preexec = csh \-c \'echo \e"Welcome to %S!\e" | /usr/local/samba/bin/smbclient \-M %m \-I %I\' & 7687 7245 .sp 7688 7246 Of course, this could get annoying after a while :\-) … … 7694 7252 .sp 7695 7253 Default: 7696 \fI\fIpreexec\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR7697 .sp 7698 Example: 7699 \fI\fIpreexec\fR\fR\fI = \fR\fI \FCecho \e"%u connected to %S from %m (%I)\e" >> /tmp/log\F[]\fR\fI \fR7254 \fI\fIpreexec\fR\fR\fI = \fR\fI\fR\fI \fR 7255 .sp 7256 Example: 7257 \fI\fIpreexec\fR\fR\fI = \fR\fIecho \e"%u connected to %S from %m (%I)\e" >> /tmp/log\fR\fI \fR 7700 7258 .RE 7701 7259 … … 7718 7276 If this is set to 7719 7277 \fByes\fR, on startup, 7720 \FCnmbd\F[] 7278 nmbd 7721 7279 will force an election, and it will have a slight advantage in winning the election\&. It is recommended that this parameter is used in conjunction with 7722 7280 \m[blue]\fBdomain master = yes\fR\m[], so that 7723 \FCnmbd\F[] 7281 nmbd 7724 7282 can guarantee becoming a domain master\&. 7725 7283 .sp … … 7727 7285 .sp 7728 7286 Default: 7729 \fI\fIpreferred master\fR\fR\fI = \fR\fI \FCauto\F[]\fR\fI \fR7287 \fI\fIpreferred master\fR\fR\fI = \fR\fIauto\fR\fI \fR 7730 7288 .RE 7731 7289 … … 7737 7295 .sp 7738 7296 Default: 7739 \fI\fIpreload modules\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR7740 .sp 7741 Example: 7742 \fI\fIpreload modules\fR\fR\fI = \fR\fI \FC/usr/lib/samba/passdb/mysql\&.so\F[]\fR\fI \fR7297 \fI\fIpreload modules\fR\fR\fI = \fR\fI\fR\fI \fR 7298 .sp 7299 Example: 7300 \fI\fIpreload modules\fR\fR\fI = \fR\fI/usr/lib/samba/passdb/mysql\&.so\fR\fI \fR 7743 7301 .RE 7744 7302 … … 7762 7320 .sp 7763 7321 Default: 7764 \fI\fIpreload\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR7765 .sp 7766 Example: 7767 \fI\fIpreload\fR\fR\fI = \fR\fI \FCfred lp colorlp\F[]\fR\fI \fR7322 \fI\fIpreload\fR\fR\fI = \fR\fI\fR\fI \fR 7323 .sp 7324 Example: 7325 \fI\fIpreload\fR\fR\fI = \fR\fIfred lp colorlp\fR\fI \fR 7768 7326 .RE 7769 7327 … … 7780 7338 .sp 7781 7339 Default: 7782 \fI\fIpreserve case\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR7340 \fI\fIpreserve case\fR\fR\fI = \fR\fIyes\fR\fI \fR 7783 7341 .RE 7784 7342 … … 7803 7361 .sp 7804 7362 Default: 7805 \fI\fIprintable\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR7363 \fI\fIprintable\fR\fR\fI = \fR\fIno\fR\fI \fR 7806 7364 .RE 7807 7365 … … 7815 7373 .sp 7816 7374 Default: 7817 \fI\fIprintcap cache time\fR\fR\fI = \fR\fI \FC750\F[]\fR\fI \fR7818 .sp 7819 Example: 7820 \fI\fIprintcap cache time\fR\fR\fI = \fR\fI \FC600\F[]\fR\fI \fR7375 \fI\fIprintcap cache time\fR\fR\fI = \fR\fI750\fR\fI \fR 7376 .sp 7377 Example: 7378 \fI\fIprintcap cache time\fR\fR\fI = \fR\fI600\fR\fI \fR 7821 7379 .RE 7822 7380 … … 7834 7392 .RS 4 7835 7393 This parameter may be used to override the compiled\-in default printcap name used by the server (usually 7836 \FC /etc/printcap\F[])\&. See the discussion of the7394 /etc/printcap)\&. See the discussion of the 7837 7395 [printers] 7838 7396 section above for reasons why you might want to do this\&. 7839 7397 .sp 7840 7398 To use the CUPS printing interface set 7841 \FCprintcap name = cups \F[]\&. This should be supplemented by an addtional setting7399 printcap name = cups\&. This should be supplemented by an addtional setting 7842 7400 \m[blue]\fBprinting = cups\fR\m[] 7843 7401 in the [global] section\&. 7844 \FCprintcap name = cups\F[] 7402 printcap name = cups 7845 7403 will use the "dummy" printcap created by CUPS, as specified in your CUPS configuration file\&. 7846 7404 .sp 7847 7405 On System V systems that use 7848 \FClpstat\F[] 7406 lpstat 7849 7407 to list available printers you can use 7850 \FCprintcap name = lpstat \F[] 7408 printcap name = lpstat 7851 7409 to automatically obtain lists of available printers\&. This is the default for systems that define SYSV at configure time in Samba (this includes most System V based systems)\&. If 7852 7410 \fI printcap name\fR 7853 7411 is set to 7854 \FClpstat\F[] 7412 lpstat 7855 7413 on these systems then Samba will launch 7856 \FClpstat \-v\F[] 7414 lpstat \-v 7857 7415 and attempt to parse the output to obtain a printer list\&. 7858 7416 .sp … … 7862 7420 .RS 4 7863 7421 .\} 7864 .fam C7865 .ps -17866 7422 .nf 7867 .if t \{\7868 .sp -17869 .\}7870 .BB lightgray adjust-for-leading-newline7871 .sp -17872 7873 7423 print1|My Printer 1 7874 7424 print2|My Printer 2 … … 7876 7426 print4|My Printer 4 7877 7427 print5|My Printer 5 7878 .EB lightgray adjust-for-leading-newline7879 .if t \{\7880 .sp 17881 .\}7882 7428 .fi 7883 .fam7884 .ps +17885 7429 .if n \{\ 7886 7430 .RE … … 7892 7436 .\} 7893 7437 .RS 4 7894 .BM yellow7895 7438 .it 1 an-trap 7896 7439 .nr an-no-space-flag 1 … … 7902 7445 .br 7903 7446 Under AIX the default printcap name is 7904 \FC/etc/qconfig\F[]\&. Samba will assume the file is in AIX7905 \FCqconfig\F[] 7447 /etc/qconfig\&. Samba will assume the file is in AIX 7448 qconfig 7906 7449 format if the string 7907 \FCqconfig\F[] 7450 qconfig 7908 7451 appears in the printcap filename\&. 7909 7452 .sp .5v 7910 .EM yellow 7911 .RE 7912 Default: 7913 \fI\fIprintcap name\fR\fR\fI = \fR\fI\FC/etc/printcap\F[]\fR\fI \fR 7914 .sp 7915 Example: 7916 \fI\fIprintcap name\fR\fR\fI = \fR\fI\FC/etc/myprintcap\F[]\fR\fI \fR 7453 .RE 7454 Default: 7455 \fI\fIprintcap name\fR\fR\fI = \fR\fI/etc/printcap\fR\fI \fR 7456 .sp 7457 Example: 7458 \fI\fIprintcap name\fR\fR\fI = \fR\fI/etc/myprintcap\fR\fI \fR 7917 7459 .RE 7918 7460 … … 7922 7464 .RS 4 7923 7465 After a print job has finished spooling to a service, this command will be used via a 7924 \FCsystem()\F[] 7466 system() 7925 7467 call to process the spool file\&. Typically the command specified will submit the spool file to the host\'s printing subsystem, but there is no requirement that this be the case\&. The server will not remove the spool file, so whatever command you specify should remove the spool file when it has been processed, otherwise you will need to manually remove old spool files\&. 7926 7468 .sp … … 7961 7503 You can form quite complex print commands by realizing that they are just passed to a shell\&. For example the following will log a print job, print the file, then remove it\&. Note that \';\' is the usual separator for command in shell scripts\&. 7962 7504 .sp 7963 \FCprint command = echo Printing %s >> /tmp/print\&.log; lpr \-P %p %s; rm %s\F[] 7505 print command = echo Printing %s >> /tmp/print\&.log; lpr \-P %p %s; rm %s 7964 7506 .sp 7965 7507 You may have to vary this command considerably depending on how you normally print files on your system\&. The default for the parameter varies depending on the setting of the … … 7968 7510 .sp 7969 7511 Default: For 7970 \FCprinting = BSD, AIX, QNX, LPRNG or PLP :\F[] 7971 .sp 7972 \FCprint command = lpr \-r \-P%p %s\F[] 7512 printing = BSD, AIX, QNX, LPRNG or PLP : 7513 .sp 7514 print command = lpr \-r \-P%p %s 7973 7515 .sp 7974 7516 For 7975 \FCprinting = SYSV or HPUX :\F[] 7976 .sp 7977 \FCprint command = lp \-c \-d%p %s; rm %s\F[] 7517 printing = SYSV or HPUX : 7518 .sp 7519 print command = lp \-c \-d%p %s; rm %s 7978 7520 .sp 7979 7521 For 7980 \FCprinting = SOFTQ :\F[] 7981 .sp 7982 \FCprint command = lp \-d%p \-s %s; rm %s\F[] 7522 printing = SOFTQ : 7523 .sp 7524 print command = lp \-d%p \-s %s; rm %s 7983 7525 .sp 7984 7526 For printing = CUPS : If SAMBA is compiled against libcups, then 7985 7527 \m[blue]\fBprintcap = cups\fR\m[] 7986 7528 uses the CUPS API to submit jobs, etc\&. Otherwise it maps to the System V commands with the \-oraw option for printing, i\&.e\&. it uses 7987 \FClp \-c \-d%p \-oraw; rm %s\F[]\&. With7988 \FCprinting = cups\F[], and if SAMBA is compiled against libcups, any manually set print command will be ignored\&.7529 lp \-c \-d%p \-oraw; rm %s\&. With 7530 printing = cups, and if SAMBA is compiled against libcups, any manually set print command will be ignored\&. 7989 7531 .sp 7990 7532 \fINo default\fR 7991 7533 .sp 7992 7534 Example: 7993 \fI\fIprint command\fR\fR\fI = \fR\fI \FC/usr/local/samba/bin/myprintscript %p %s\F[]\fR\fI \fR7535 \fI\fIprint command\fR\fR\fI = \fR\fI/usr/local/samba/bin/myprintscript %p %s\fR\fI \fR 7994 7536 .RE 7995 7537 … … 8003 7545 .sp 8004 7546 Default: 8005 \fI\fIprinter admin\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR8006 .sp 8007 Example: 8008 \fI\fIprinter admin\fR\fR\fI = \fR\fI \FCadmin, @staff\F[]\fR\fI \fR7547 \fI\fIprinter admin\fR\fR\fI = \fR\fI\fR\fI \fR 7548 .sp 7549 Example: 7550 \fI\fIprinter admin\fR\fR\fI = \fR\fIadmin, @staff\fR\fI \fR 8009 7551 .RE 8010 7552 … … 8028 7570 \m[blue]\fBprinter name\fR\m[] 8029 7571 may be 8030 \FClp\F[] 7572 lp 8031 7573 on many systems\&. 8032 7574 .sp 8033 7575 Default: 8034 \fI\fIprinter name\fR\fR\fI = \fR\fI \FCnone\F[]\fR\fI \fR8035 .sp 8036 Example: 8037 \fI\fIprinter name\fR\fR\fI = \fR\fI \FClaserwriter\F[]\fR\fI \fR7576 \fI\fIprinter name\fR\fR\fI = \fR\fInone\fR\fI \fR 7577 .sp 7578 Example: 7579 \fI\fIprinter name\fR\fR\fI = \fR\fIlaserwriter\fR\fI \fR 8038 7580 .RE 8039 7581 … … 8074 7616 .sp 8075 7617 Default: 8076 \fI\fIprinting\fR\fR\fI = \fR\fI \FCDepends on the operating system, see \FCtestparm \-v\&.\F[]\F[]\fR\fI \fR7618 \fI\fIprinting\fR\fR\fI = \fR\fIDepends on the operating system, see testparm \-v\&.\fR\fI \fR 8077 7619 .RE 8078 7620 … … 8084 7626 .sp 8085 7627 Default: 8086 \fI\fIprintjob username\fR\fR\fI = \fR\fI \FC%U\F[]\fR\fI \fR8087 .sp 8088 Example: 8089 \fI\fIprintjob username\fR\fR\fI = \fR\fI \FC%D\e%U\F[]\fR\fI \fR7628 \fI\fIprintjob username\fR\fR\fI = \fR\fI%U\fR\fI \fR 7629 .sp 7630 Example: 7631 \fI\fIprintjob username\fR\fR\fI = \fR\fI%D\e%U\fR\fI \fR 8090 7632 .RE 8091 7633 … … 8095 7637 .RS 4 8096 7638 This parameters defines the directory smbd will use for storing such files as 8097 \FCsmbpasswd\F[] 7639 smbpasswd 8098 7640 and 8099 \FCsecrets\&.tdb\F[]\&.8100 .sp 8101 Default: 8102 \fI\fIprivate dir\fR\fR\fI = \fR\fI \FC${prefix}/private\F[]\fR\fI \fR7641 secrets\&.tdb\&. 7642 .sp 7643 Default: 7644 \fI\fIprivate dir\fR\fR\fI = \fR\fI${prefix}/private\fR\fI \fR 8103 7645 .RE 8104 7646 … … 8114 7656 .sp 8115 7657 Default: 8116 \fI\fIprofile acls\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR7658 \fI\fIprofile acls\fR\fR\fI = \fR\fIno\fR\fI \fR 8117 7659 .RE 8118 7660 … … 8136 7678 .sp 8137 7679 Example: 8138 \fI\fIqueuepause command\fR\fR\fI = \fR\fI \FCdisable %p\F[]\fR\fI \fR7680 \fI\fIqueuepause command\fR\fR\fI = \fR\fIdisable %p\fR\fI \fR 8139 7681 .RE 8140 7682 … … 8156 7698 .sp 8157 7699 Default: 8158 \fI\fIqueueresume command\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR8159 .sp 8160 Example: 8161 \fI\fIqueueresume command\fR\fR\fI = \fR\fI \FCenable %p\F[]\fR\fI \fR7700 \fI\fIqueueresume command\fR\fR\fI = \fR\fI\fR\fI \fR 7701 .sp 7702 Example: 7703 \fI\fIqueueresume command\fR\fR\fI = \fR\fIenable %p\fR\fI \fR 8162 7704 .RE 8163 7705 … … 8177 7719 .sp 8178 7720 Default: 8179 \fI\fIread list\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR8180 .sp 8181 Example: 8182 \fI\fIread list\fR\fR\fI = \fR\fI \FCmary, @students\F[]\fR\fI \fR7721 \fI\fIread list\fR\fR\fI = \fR\fI\fR\fI \fR 7722 .sp 7723 Example: 7724 \fI\fIread list\fR\fR\fI = \fR\fImary, @students\fR\fI \fR 8183 7725 .RE 8184 7726 … … 8193 7735 \fByes\fR, then users of a service may not create or modify files in the service\'s directory\&. 8194 7736 .sp 8195 Note that a printable service ( \FCprintable = yes\F[]) will7737 Note that a printable service (printable = yes) will 8196 7738 \fIALWAYS\fR 8197 7739 allow writing to the directory (user privileges permitting), but only via spooling operations\&. 8198 7740 .sp 8199 7741 Default: 8200 \fI\fIread only\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR7742 \fI\fIread only\fR\fR\fI = \fR\fIyes\fR\fI \fR 8201 7743 .RE 8202 7744 … … 8214 7756 .sp 8215 7757 Default: 8216 \fI\fIread raw\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR7758 \fI\fIread raw\fR\fR\fI = \fR\fIyes\fR\fI \fR 8217 7759 .RE 8218 7760 … … 8222 7764 .RS 4 8223 7765 This option specifies the kerberos realm to use\&. The realm is used as the ADS equivalent of the NT4 8224 \FCdomain\F[]\&. It is usually set to the DNS name of the kerberos server\&.8225 .sp 8226 Default: 8227 \fI\fIrealm\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR8228 .sp 8229 Example: 8230 \fI\fIrealm\fR\fR\fI = \fR\fI \FCmysambabox\&.mycompany\&.com\F[]\fR\fI \fR7766 domain\&. It is usually set to the DNS name of the kerberos server\&. 7767 .sp 7768 Default: 7769 \fI\fIrealm\fR\fR\fI = \fR\fI\fR\fI \fR 7770 .sp 7771 Example: 7772 \fI\fIrealm\fR\fR\fI = \fR\fImysambabox\&.mycompany\&.com\fR\fI \fR 8231 7773 .RE 8232 7774 … … 8248 7790 .sp 8249 7791 Default: 8250 \fI\fIregistry shares\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR8251 .sp 8252 Example: 8253 \fI\fIregistry shares\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR7792 \fI\fIregistry shares\fR\fR\fI = \fR\fIno\fR\fI \fR 7793 .sp 7794 Example: 7795 \fI\fIregistry shares\fR\fR\fI = \fR\fIyes\fR\fI \fR 8254 7796 .RE 8255 7797 … … 8269 7811 .RS 4 8270 7812 .\} 8271 .fam C8272 .ps -18273 7813 .nf 8274 .if t \{\ 8275 .sp -1 8276 .\} 8277 .BB lightgray adjust-for-leading-newline 8278 .sp -1 8279 8280 \FCremote announce = 192\&.168\&.2\&.255/SERVERS 192\&.168\&.4\&.255/STAFF\F[] 8281 .EB lightgray adjust-for-leading-newline 8282 .if t \{\ 8283 .sp 1 8284 .\} 7814 remote announce = 192\&.168\&.2\&.255/SERVERS 192\&.168\&.4\&.255/STAFF 8285 7815 .fi 8286 .fam8287 .ps +18288 7816 .if n \{\ 8289 7817 .RE … … 8291 7819 .sp 8292 7820 the above line would cause 8293 \FCnmbd\F[] 7821 nmbd 8294 7822 to announce itself to the two given IP addresses using the given workgroup names\&. If you leave out the workgroup name, then the one given in the 8295 7823 \m[blue]\fBworkgroup\fR\m[] … … 8301 7829 .sp 8302 7830 Default: 8303 \fI\fIremote announce\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR7831 \fI\fIremote announce\fR\fR\fI = \fR\fI\fR\fI \fR 8304 7832 .RE 8305 7833 … … 8319 7847 .RS 4 8320 7848 .\} 8321 .fam C8322 .ps -18323 7849 .nf 8324 .if t \{\8325 .sp -18326 .\}8327 .BB lightgray adjust-for-leading-newline8328 .sp -18329 8330 7850 \fIremote browse sync = 192\&.168\&.2\&.255 192\&.168\&.4\&.255\fR 8331 .EB lightgray adjust-for-leading-newline8332 .if t \{\8333 .sp 18334 .\}8335 7851 .fi 8336 .fam8337 .ps +18338 7852 .if n \{\ 8339 7853 .RE … … 8341 7855 .sp 8342 7856 the above line would cause 8343 \FCnmbd\F[] 7857 nmbd 8344 7858 to request the master browser on the specified subnets or addresses to synchronize their browse lists with the local server\&. 8345 7859 .sp … … 8351 7865 .sp 8352 7866 Default: 8353 \fI\fIremote browse sync\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR7867 \fI\fIremote browse sync\fR\fR\fI = \fR\fI\fR\fI \fR 8354 7868 .RE 8355 7869 … … 8363 7877 .sp 8364 7878 When a user with admin authority or SeAddUserPrivilege rights renames a user (e\&.g\&.: from the NT4 User Manager for Domains), this script will be run to rename the POSIX user\&. Two variables, 8365 \FC%uold\F[] 7879 %uold 8366 7880 and 8367 \FC%unew\F[], will be substituted with the old and new usernames, respectively\&. The script should return 0 upon successful completion, and nonzero otherwise\&.7881 %unew, will be substituted with the old and new usernames, respectively\&. The script should return 0 upon successful completion, and nonzero otherwise\&. 8368 7882 .if n \{\ 8369 7883 .sp 8370 7884 .\} 8371 7885 .RS 4 8372 .BM yellow8373 7886 .it 1 an-trap 8374 7887 .nr an-no-space-flag 1 … … 8381 7894 The script has all responsibility to rename all the necessary data that is accessible in this posix method\&. This can mean different requirements for different backends\&. The tdbsam and smbpasswd backends will take care of the contents of their respective files, so the script is responsible only for changing the POSIX username, and other data that may required for your circumstances, such as home directory\&. Please also consider whether or not you need to rename the actual home directories themselves\&. The ldapsam backend will not make any changes, because of the potential issues with renaming the LDAP naming attribute\&. In this case the script is responsible for changing the attribute that samba uses (uid) for locating users, as well as any data that needs to change for other applications using the same directory\&. 8382 7895 .sp .5v 8383 .EM yellow 8384 .RE 8385 Default: 8386 \fI\fIrename user script\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR 7896 .RE 7897 Default: 7898 \fI\fIrename user script\fR\fR\fI = \fR\fIno\fR\fI \fR 8387 7899 .RE 8388 7900 … … 8394 7906 .sp 8395 7907 Default: 8396 \fI\fIreset on zero vc\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR7908 \fI\fIreset on zero vc\fR\fR\fI = \fR\fIno\fR\fI \fR 8397 7909 .RE 8398 7910 … … 8406 7918 .RS 4 8407 7919 .\} 8408 .fam C8409 .ps -18410 7920 .nf 8411 .if t \{\8412 .sp -18413 .\}8414 .BB lightgray adjust-for-leading-newline8415 .sp -18416 8417 7921 HKEY_LOCAL_MACHINE\eSYSTEM\eCurrentControlSet\e 8418 7922 Control\eLSA\eRestrictAnonymous 8419 .EB lightgray adjust-for-leading-newline8420 .if t \{\8421 .sp 18422 .\}8423 7923 .fi 8424 .fam8425 .ps +18426 7924 .if n \{\ 8427 7925 .RE … … 8435 7933 .\} 8436 7934 .RS 4 8437 .BM yellow8438 7935 .it 1 an-trap 8439 7936 .nr an-no-space-flag 1 … … 8448 7945 on any share\&. 8449 7946 .sp .5v 8450 .EM yellow 8451 .RE 8452 Default: 8453 \fI\fIrestrict anonymous\fR\fR\fI = \fR\fI\FC0\F[]\fR\fI \fR 7947 .RE 7948 Default: 7949 \fI\fIrestrict anonymous\fR\fR\fI = \fR\fI0\fR\fI \fR 8454 7950 .RE 8455 7951 … … 8475 7971 .RS 4 8476 7972 The server will 8477 \FCchroot()\F[] 7973 chroot() 8478 7974 (i\&.e\&. Change its root directory) to this directory on startup\&. This is not strictly necessary for secure operation\&. Even without it the server will deny access to files not in one of the service entries\&. It may also check for, and deny access to, soft links to other parts of the filesystem, or attempts to use "\&.\&." in file names to access other directories (depending on the setting of the 8479 7975 \m[blue]\fBwide smbconfoptions\fR\m[] … … 8489 7985 \fIroot directory\fR 8490 7986 tree\&. In particular you will need to mirror 8491 \FC/etc/passwd\F[] 7987 /etc/passwd 8492 7988 (or a subset of it), and any binaries or configuration files needed for printing (if required)\&. The set of files that must be mirrored is operating system dependent\&. 8493 7989 .sp 8494 7990 Default: 8495 \fI\fIroot directory\fR\fR\fI = \fR\fI \FC/\F[]\fR\fI \fR8496 .sp 8497 Example: 8498 \fI\fIroot directory\fR\fR\fI = \fR\fI \FC/homes/smb\F[]\fR\fI \fR7991 \fI\fIroot directory\fR\fR\fI = \fR\fI/\fR\fI \fR 7992 .sp 7993 Example: 7994 \fI\fIroot directory\fR\fR\fI = \fR\fI/homes/smb\fR\fI \fR 8499 7995 .RE 8500 7996 … … 8508 8004 .sp 8509 8005 Default: 8510 \fI\fIroot postexec\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR8006 \fI\fIroot postexec\fR\fR\fI = \fR\fI\fR\fI \fR 8511 8007 .RE 8512 8008 … … 8520 8016 .sp 8521 8017 Default: 8522 \fI\fIroot preexec close\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR8018 \fI\fIroot preexec close\fR\fR\fI = \fR\fIno\fR\fI \fR 8523 8019 .RE 8524 8020 … … 8532 8028 .sp 8533 8029 Default: 8534 \fI\fIroot preexec\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR8030 \fI\fIroot preexec\fR\fR\fI = \fR\fI\fR\fI \fR 8535 8031 .RE 8536 8032 … … 8553 8049 .sp 8554 8050 Default: 8555 \fI\fIsecurity mask\fR\fR\fI = \fR\fI \FC0777\F[]\fR\fI \fR8556 .sp 8557 Example: 8558 \fI\fIsecurity mask\fR\fR\fI = \fR\fI \FC0770\F[]\fR\fI \fR8051 \fI\fIsecurity mask\fR\fR\fI = \fR\fI0777\fR\fI \fR 8052 .sp 8053 Example: 8054 \fI\fIsecurity mask\fR\fR\fI = \fR\fI0770\fR\fI \fR 8559 8055 .RE 8560 8056 … … 8564 8060 .RS 4 8565 8061 This option affects how clients respond to Samba and is one of the most important settings in the 8566 \FC smb\&.conf\F[] 8062 smb\&.conf 8567 8063 file\&. 8568 8064 .sp … … 8572 8068 .sp 8573 8069 The default is 8574 \FCsecurity = user\F[], as this is the most common setting needed when talking to Windows 98 and Windows NT\&.8070 security = user, as this is the most common setting needed when talking to Windows 98 and Windows NT\&. 8575 8071 .sp 8576 8072 The alternatives are 8577 \FCsecurity = share\F[],8578 \FCsecurity = server\F[] 8073 security = share, 8074 security = server 8579 8075 or 8580 \FCsecurity = domain \F[]\&.8076 security = domain\&. 8581 8077 .sp 8582 8078 In versions of Samba prior to 2\&.0\&.0, the default was 8583 \FCsecurity = share\F[] 8079 security = share 8584 8080 mainly because that was the only option at one stage\&. 8585 8081 .sp … … 8587 8083 .sp 8588 8084 If your PCs use usernames that are the same as their usernames on the UNIX machine then you will want to use 8589 \FCsecurity = user\F[]\&. If you mostly use usernames that don\'t exist on the UNIX box then use8590 \FCsecurity = share\F[]\&.8085 security = user\&. If you mostly use usernames that don\'t exist on the UNIX box then use 8086 security = share\&. 8591 8087 .sp 8592 8088 You should also use 8593 \FCsecurity = share\F[] 8089 security = share 8594 8090 if you want to mainly setup shares without a password (guest shares)\&. This is commonly used for a shared printer server\&. It is more difficult to setup guest shares with 8595 \FCsecurity = user\F[], see the8091 security = user, see the 8596 8092 \m[blue]\fBmap to guest\fR\m[] 8597 8093 parameter for details\&. 8598 8094 .sp 8599 8095 It is possible to use 8600 \FCsmbd\F[] 8096 smbd 8601 8097 in a 8602 8098 \fI hybrid mode\fR … … 8609 8105 .sp 8610 8106 When clients connect to a share level security server, they need not log onto the server with a valid username and password before attempting to connect to a shared resource (although modern clients such as Windows 95/98 and Windows NT will send a logon request with a username but no password when talking to a 8611 \FCsecurity = share \F[] 8107 security = share 8612 8108 server)\&. Instead, the clients send authentication information (passwords) on a per\-share basis, at the time they attempt to connect to that share\&. 8613 8109 .sp 8614 8110 Note that 8615 \FCsmbd\F[] 8111 smbd 8616 8112 \fIALWAYS\fR 8617 8113 uses a valid UNIX user to act on behalf of the client, even in 8618 \FCsecurity = share\F[] 8114 security = share 8619 8115 level security\&. 8620 8116 .sp 8621 8117 As clients are not required to send a username to the server in share level security, 8622 \FCsmbd\F[] 8118 smbd 8623 8119 uses several techniques to determine the correct UNIX user to use on behalf of the client\&. 8624 8120 .sp … … 8753 8249 \fINote\fR 8754 8250 that from the client\'s point of view 8755 \FCsecurity = domain\F[] 8251 security = domain 8756 8252 is the same as 8757 \FCsecurity = user\F[]\&. It only affects how the server deals with the authentication, it does not in any way affect what the client sees\&.8253 security = user\&. It only affects how the server deals with the authentication, it does not in any way affect what the client sees\&. 8758 8254 .sp 8759 8255 \fINote\fR … … 8777 8273 .sp 8778 8274 In this mode Samba will try to validate the username/password by passing it to another SMB server, such as an NT box\&. If this fails it will revert to 8779 \FCsecurity = user\F[]\&. It expects the8275 security = user\&. It expects the 8780 8276 \m[blue]\fBencrypted passwords\fR\m[] 8781 8277 parameter to be set to 8782 8278 \fByes\fR, unless the remote server does not support them\&. However note that if encrypted passwords have been negotiated then Samba cannot revert back to checking the UNIX password file, it must have a valid 8783 \FCsmbpasswd\F[] 8279 smbpasswd 8784 8280 file to check users against\&. See the chapter about the User Database in the Samba HOWTO Collection for details on how to set this up\&. 8785 8281 .if n \{\ … … 8787 8283 .\} 8788 8284 .RS 4 8789 .BM yellow8790 8285 .it 1 an-trap 8791 8286 .nr an-no-space-flag 1 … … 8798 8293 This mode of operation has significant pitfalls since it is more vulnerable to man\-in\-the\-middle attacks and server impersonation\&. In particular, this mode of operation can cause significant resource consuption on the PDC, as it must maintain an active connection for the duration of the user\'s session\&. Furthermore, if this connection is lost, there is no way to reestablish it, and futher authentications to the Samba server may fail (from a single client, till it disconnects)\&. 8799 8294 .sp .5v 8800 .EM yellow8801 8295 .RE 8802 8296 .if n \{\ … … 8804 8298 .\} 8805 8299 .RS 4 8806 .BM yellow8807 8300 .it 1 an-trap 8808 8301 .nr an-no-space-flag 1 … … 8814 8307 .br 8815 8308 From the client\'s point of view, 8816 \FCsecurity = server\F[] 8309 security = server 8817 8310 is the same as 8818 \FCsecurity = user\F[]\&. It only affects how the server deals with the authentication, it does not in any way affect what the client sees\&.8311 security = user\&. It only affects how the server deals with the authentication, it does not in any way affect what the client sees\&. 8819 8312 .sp .5v 8820 .EM yellow8821 8313 .RE 8822 8314 \fINote\fR … … 8846 8338 .sp 8847 8339 Default: 8848 \fI\fIsecurity\fR\fR\fI = \fR\fI \FCUSER\F[]\fR\fI \fR8849 .sp 8850 Example: 8851 \fI\fIsecurity\fR\fR\fI = \fR\fI \FCDOMAIN\F[]\fR\fI \fR8340 \fI\fIsecurity\fR\fR\fI = \fR\fIUSER\fR\fI \fR 8341 .sp 8342 Example: 8343 \fI\fIsecurity\fR\fR\fI = \fR\fIDOMAIN\fR\fI \fR 8852 8344 .RE 8853 8345 … … 8865 8357 .sp 8866 8358 Please note that with this set to 8867 \FCno\F[], you will have to apply the WindowsXP8868 \FCWinXP_SignOrSeal\&.reg\F[] 8359 no, you will have to apply the WindowsXP 8360 WinXP_SignOrSeal\&.reg 8869 8361 registry patch found in the docs/registry subdirectory of the Samba distribution tarball\&. 8870 8362 .sp 8871 8363 Default: 8872 \fI\fIserver schannel\fR\fR\fI = \fR\fI \FCauto\F[]\fR\fI \fR8873 .sp 8874 Example: 8875 \fI\fIserver schannel\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR8364 \fI\fIserver schannel\fR\fR\fI = \fR\fIauto\fR\fI \fR 8365 .sp 8366 Example: 8367 \fI\fIserver schannel\fR\fR\fI = \fR\fIyes\fR\fI \fR 8876 8368 .RE 8877 8369 … … 8889 8381 .sp 8890 8382 Default: 8891 \fI\fIserver signing\fR\fR\fI = \fR\fI \FCDisabled\F[]\fR\fI \fR8383 \fI\fIserver signing\fR\fR\fI = \fR\fIDisabled\fR\fI \fR 8892 8384 .RE 8893 8385 … … 8897 8389 .RS 4 8898 8390 This controls what string will show up in the printer comment box in print manager and next to the IPC connection in 8899 \FCnet view\F[]\&. It can be any string that you wish to show to your users\&.8391 net view\&. It can be any string that you wish to show to your users\&. 8900 8392 .sp 8901 8393 It also sets what will appear in browse lists next to the machine name\&. … … 8910 8402 .sp 8911 8403 Default: 8912 \fI\fIserver string\fR\fR\fI = \fR\fI \FCSamba %v\F[]\fR\fI \fR8913 .sp 8914 Example: 8915 \fI\fIserver string\fR\fR\fI = \fR\fI \FCUniversity of GNUs Samba Server\F[]\fR\fI \fR8404 \fI\fIserver string\fR\fR\fI = \fR\fISamba %v\fR\fI \fR 8405 .sp 8406 Example: 8407 \fI\fIserver string\fR\fR\fI = \fR\fIUniversity of GNUs Samba Server\fR\fI \fR 8916 8408 .RE 8917 8409 … … 8921 8413 .RS 4 8922 8414 If 8923 \FCset directory = no\F[], then users of the service may not use the setdir command to change directory\&.8415 set directory = no, then users of the service may not use the setdir command to change directory\&. 8924 8416 .sp 8925 8417 The 8926 \FCsetdir\F[] 8418 setdir 8927 8419 command is only implemented in the Digital Pathworks client\&. See the Pathworks documentation for details\&. 8928 8420 .sp 8929 8421 Default: 8930 \fI\fIset directory\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR8422 \fI\fIset directory\fR\fR\fI = \fR\fIno\fR\fI \fR 8931 8423 .RE 8932 8424 … … 8936 8428 .RS 4 8937 8429 Thanks to the Posix subsystem in NT a Windows User has a primary group in addition to the auxiliary groups\&. This script sets the primary group in the unix userdatase when an administrator sets the primary group from the windows user manager or when fetching a SAM with 8938 \FCnet rpc vampire\F[]\&.8430 net rpc vampire\&. 8939 8431 \fI%u\fR 8940 8432 will be replaced with the user whose primary group is to be set\&. … … 8943 8435 .sp 8944 8436 Default: 8945 \fI\fIset primary group script\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR8946 .sp 8947 Example: 8948 \fI\fIset primary group script\fR\fR\fI = \fR\fI \FC/usr/sbin/usermod \-g \'%g\' \'%u\'\F[]\fR\fI \fR8437 \fI\fIset primary group script\fR\fR\fI = \fR\fI\fR\fI \fR 8438 .sp 8439 Example: 8440 \fI\fIset primary group script\fR\fR\fI = \fR\fI/usr/sbin/usermod \-g \'%g\' \'%u\'\fR\fI \fR 8949 8441 .RE 8950 8442 … … 8954 8446 .RS 4 8955 8447 The 8956 \FCset quota command\F[] 8448 set quota command 8957 8449 should only be used whenever there is no operating system API available from the OS that samba can use\&. 8958 8450 .sp 8959 8451 This option is only available if Samba was configured with the argument 8960 \ FC\-\-with\-sys\-quotas\F[]8452 \-\-with\-sys\-quotas 8961 8453 or on linux when 8962 \ FC\&./configure \-\-with\-quotas\F[]8454 \&./configure \-\-with\-quotas 8963 8455 was used and a working quota api was found in the system\&. Most packages are configured with these options already\&. 8964 8456 .sp … … 9103 8595 .sp 9104 8596 Default: 9105 \fI\fIset quota command\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR9106 .sp 9107 Example: 9108 \fI\fIset quota command\fR\fR\fI = \fR\fI \FC/usr/local/sbin/set_quota\F[]\fR\fI \fR8597 \fI\fIset quota command\fR\fR\fI = \fR\fI\fR\fI \fR 8598 .sp 8599 Example: 8600 \fI\fIset quota command\fR\fR\fI = \fR\fI/usr/local/sbin/set_quota\fR\fI \fR 9109 8601 .RE 9110 8602 … … 9130 8622 .sp 9131 8623 Default: 9132 \fI\fIshare modes\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR8624 \fI\fIshare modes\fR\fR\fI = \fR\fIyes\fR\fI \fR 9133 8625 .RE 9134 8626 … … 9146 8638 .sp 9147 8639 Default: 9148 \fI\fIshort preserve case\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR8640 \fI\fIshort preserve case\fR\fR\fI = \fR\fIyes\fR\fI \fR 9149 8641 .RE 9150 8642 … … 9166 8658 .\} 9167 8659 .RS 4 9168 .BM yellow9169 8660 .it 1 an-trap 9170 8661 .nr an-no-space-flag 1 … … 9177 8668 This does not prevent the same user from having administrative privilege on an individual printer\&. 9178 8669 .sp .5v 9179 .EM yellow 9180 .RE 9181 Default: 9182 \fI\fIshow add printer wizard\fR\fR\fI = \fR\fI\FCyes\F[]\fR\fI \fR 8670 .RE 8671 Default: 8672 \fI\fIshow add printer wizard\fR\fR\fI = \fR\fIyes\fR\fI \fR 9183 8673 .RE 9184 8674 … … 9251 8741 .RS 4 9252 8742 .\} 9253 .fam C9254 .ps -19255 8743 .nf 9256 .if t \{\9257 .sp -19258 .\}9259 .BB lightgray adjust-for-leading-newline9260 .sp -19261 9262 8744 #!/bin/bash 9263 8745 … … 9268 8750 /sbin/shutdown $3 $4 +$time $1 & 9269 8751 9270 .EB lightgray adjust-for-leading-newline9271 .if t \{\9272 .sp 19273 .\}9274 8752 .fi 9275 .fam9276 .ps +19277 8753 .if n \{\ 9278 8754 .RE … … 9282 8758 .sp 9283 8759 Default: 9284 \fI\fIshutdown script\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR9285 .sp 9286 Example: 9287 \fI\fIshutdown script\fR\fR\fI = \fR\fI \FC/usr/local/samba/sbin/shutdown %m %t %r %f\F[]\fR\fI \fR8760 \fI\fIshutdown script\fR\fR\fI = \fR\fI\fR\fI \fR 8761 .sp 8762 Example: 8763 \fI\fIshutdown script\fR\fR\fI = \fR\fI/usr/local/samba/sbin/shutdown %m %t %r %f\fR\fI \fR 9288 8764 .RE 9289 8765 … … 9309 8785 .sp 9310 8786 Default: 9311 \fI\fIsmb encrypt\fR\fR\fI = \fR\fI \FCauto\F[]\fR\fI \fR8787 \fI\fIsmb encrypt\fR\fR\fI = \fR\fIauto\fR\fI \fR 9312 8788 .RE 9313 8789 … … 9323 8799 .RS 4 9324 8800 .\} 9325 .fam C9326 .ps -19327 8801 .nf 9328 .if t \{\9329 .sp -19330 .\}9331 .BB lightgray adjust-for-leading-newline9332 .sp -19333 9334 8802 smb passwd file = /etc/samba/smbpasswd 9335 .EB lightgray adjust-for-leading-newline9336 .if t \{\9337 .sp 19338 .\}9339 8803 .fi 9340 .fam9341 .ps +19342 8804 .if n \{\ 9343 8805 .RE … … 9345 8807 .sp 9346 8808 Default: 9347 \fI\fIsmb passwd file\fR\fR\fI = \fR\fI \FC${prefix}/private/smbpasswd\F[]\fR\fI \fR8809 \fI\fIsmb passwd file\fR\fR\fI = \fR\fI${prefix}/private/smbpasswd\fR\fI \fR 9348 8810 .RE 9349 8811 … … 9355 8817 .sp 9356 8818 Default: 9357 \fI\fIsmb ports\fR\fR\fI = \fR\fI \FC445 139\F[]\fR\fI \fR8819 \fI\fIsmb ports\fR\fR\fI = \fR\fI445 139\fR\fI \fR 9358 8820 .RE 9359 8821 … … 9369 8831 .sp 9370 8832 Default: 9371 \fI\fIsocket address\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR9372 .sp 9373 Example: 9374 \fI\fIsocket address\fR\fR\fI = \fR\fI \FC192\&.168\&.2\&.20\F[]\fR\fI \fR8833 \fI\fIsocket address\fR\fR\fI = \fR\fI\fR\fI \fR 8834 .sp 8835 Example: 8836 \fI\fIsocket address\fR\fR\fI = \fR\fI192\&.168\&.2\&.20\fR\fI \fR 9375 8837 .RE 9376 8838 … … 9384 8846 .sp 9385 8847 This option will typically be used to tune your Samba server for optimal performance for your local network\&. There is no way that Samba can know what the optimal parameters are for your net, so you must experiment and choose them yourself\&. We strongly suggest you read the appropriate documentation for your operating system first (perhaps 9386 \FCman setsockopt\F[] 8848 man setsockopt 9387 8849 will help)\&. 9388 8850 .sp … … 9509 8971 .sp 9510 8972 To specify an argument use the syntax SOME_OPTION = VALUE for example 9511 \FCSO_SNDBUF = 8192\F[]\&. Note that you must not have any spaces before or after the = sign\&.8973 SO_SNDBUF = 8192\&. Note that you must not have any spaces before or after the = sign\&. 9512 8974 .sp 9513 8975 If you are on a local network then a sensible option might be: 9514 8976 .sp 9515 \FCsocket options = IPTOS_LOWDELAY\F[] 8977 socket options = IPTOS_LOWDELAY 9516 8978 .sp 9517 8979 If you have a local network then you could try: 9518 8980 .sp 9519 \FCsocket options = IPTOS_LOWDELAY TCP_NODELAY\F[] 8981 socket options = IPTOS_LOWDELAY TCP_NODELAY 9520 8982 .sp 9521 8983 If you are on a wide area network then perhaps try setting IPTOS_THROUGHPUT\&. … … 9524 8986 .sp 9525 8987 Default: 9526 \fI\fIsocket options\fR\fR\fI = \fR\fI \FCTCP_NODELAY\F[]\fR\fI \fR9527 .sp 9528 Example: 9529 \fI\fIsocket options\fR\fR\fI = \fR\fI \FCIPTOS_LOWDELAY\F[]\fR\fI \fR8988 \fI\fIsocket options\fR\fR\fI = \fR\fITCP_NODELAY\fR\fI \fR 8989 .sp 8990 Example: 8991 \fI\fIsocket options\fR\fR\fI = \fR\fIIPTOS_LOWDELAY\fR\fI \fR 9530 8992 .RE 9531 8993 … … 9539 9001 .sp 9540 9002 Default: 9541 \fI\fIstat cache\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR9003 \fI\fIstat cache\fR\fR\fI = \fR\fIyes\fR\fI \fR 9542 9004 .RE 9543 9005 … … 9558 9020 .sp 9559 9021 Default: 9560 \fI\fIstore dos attributes\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR9022 \fI\fIstore dos attributes\fR\fR\fI = \fR\fIno\fR\fI \fR 9561 9023 .RE 9562 9024 … … 9578 9040 .sp 9579 9041 Default: 9580 \fI\fIstrict allocate\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR9042 \fI\fIstrict allocate\fR\fR\fI = \fR\fIno\fR\fI \fR 9581 9043 .RE 9582 9044 … … 9593 9055 .sp 9594 9056 Well\-behaved clients always ask for lock checks when it is important\&. So in the vast majority of cases, 9595 \FCstrict locking = Auto\F[] 9057 strict locking = Auto 9596 9058 or 9597 \FCstrict locking = no\F[] 9059 strict locking = no 9598 9060 is acceptable\&. 9599 9061 .sp 9600 9062 Default: 9601 \fI\fIstrict locking\fR\fR\fI = \fR\fI \FCAuto\F[]\fR\fI \fR9063 \fI\fIstrict locking\fR\fR\fI = \fR\fIAuto\fR\fI \fR 9602 9064 .RE 9603 9065 … … 9613 9075 .sp 9614 9076 Default: 9615 \fI\fIstrict sync\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR9077 \fI\fIstrict sync\fR\fR\fI = \fR\fIno\fR\fI \fR 9616 9078 .RE 9617 9079 … … 9623 9085 .sp 9624 9086 The administrator must create a directory name 9625 \FCsvcctl\F[] 9087 svcctl 9626 9088 in Samba\'s $(libdir) and create symbolic links to the init scripts in 9627 \FC/etc/init\&.d/\F[]\&. The name of the links must match the names given as part of the9089 /etc/init\&.d/\&. The name of the links must match the names given as part of the 9628 9090 \fIsvcctl list\fR\&. 9629 9091 .sp 9630 9092 Default: 9631 \fI\fIsvcctl list\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR9632 .sp 9633 Example: 9634 \fI\fIsvcctl list\fR\fR\fI = \fR\fI \FCcups postfix portmap httpd\F[]\fR\fI \fR9093 \fI\fIsvcctl list\fR\fR\fI = \fR\fI\fR\fI \fR 9094 .sp 9095 Example: 9096 \fI\fIsvcctl list\fR\fR\fI = \fR\fIcups postfix portmap httpd\fR\fI \fR 9635 9097 .RE 9636 9098 … … 9644 9106 \fByes\fR 9645 9107 then every write will be followed by a 9646 \FCfsync() \F[] 9108 fsync() 9647 9109 call to ensure the data is written to disk\&. Note that the 9648 9110 \fIstrict sync\fR … … 9652 9114 .sp 9653 9115 Default: 9654 \fI\fIsync always\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR9116 \fI\fIsync always\fR\fR\fI = \fR\fIno\fR\fI \fR 9655 9117 .RE 9656 9118 … … 9664 9126 .sp 9665 9127 Default: 9666 \fI\fIsyslog only\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR9128 \fI\fIsyslog only\fR\fR\fI = \fR\fIno\fR\fI \fR 9667 9129 .RE 9668 9130 … … 9682 9144 .sp 9683 9145 Default: 9684 \fI\fIsyslog\fR\fR\fI = \fR\fI \FC1\F[]\fR\fI \fR9146 \fI\fIsyslog\fR\fR\fI = \fR\fI1\fR\fI \fR 9685 9147 .RE 9686 9148 … … 9698 9160 .sp 9699 9161 Default: 9700 \fI\fItemplate homedir\fR\fR\fI = \fR\fI \FC/home/%D/%U\F[]\fR\fI \fR9162 \fI\fItemplate homedir\fR\fR\fI = \fR\fI/home/%D/%U\fR\fI \fR 9701 9163 .RE 9702 9164 … … 9719 9181 .sp 9720 9182 Default: 9721 \fI\fItime offset\fR\fR\fI = \fR\fI \FC0\F[]\fR\fI \fR9722 .sp 9723 Example: 9724 \fI\fItime offset\fR\fR\fI = \fR\fI \FC60\F[]\fR\fI \fR9183 \fI\fItime offset\fR\fR\fI = \fR\fI0\fR\fI \fR 9184 .sp 9185 Example: 9186 \fI\fItime offset\fR\fR\fI = \fR\fI60\fR\fI \fR 9725 9187 .RE 9726 9188 … … 9734 9196 .sp 9735 9197 Default: 9736 \fI\fItime server\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR9198 \fI\fItime server\fR\fR\fI = \fR\fIno\fR\fI \fR 9737 9199 .RE 9738 9200 … … 9746 9208 .sp 9747 9209 Default: 9748 \fI\fIunix charset\fR\fR\fI = \fR\fI \FCUTF8\F[]\fR\fI \fR9749 .sp 9750 Example: 9751 \fI\fIunix charset\fR\fR\fI = \fR\fI \FCASCII\F[]\fR\fI \fR9210 \fI\fIunix charset\fR\fR\fI = \fR\fIUTF8\fR\fI \fR 9211 .sp 9212 Example: 9213 \fI\fIunix charset\fR\fR\fI = \fR\fIASCII\fR\fI \fR 9752 9214 .RE 9753 9215 … … 9759 9221 .sp 9760 9222 Default: 9761 \fI\fIunix extensions\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR9223 \fI\fIunix extensions\fR\fR\fI = \fR\fIyes\fR\fI \fR 9762 9224 .RE 9763 9225 … … 9775 9237 .sp 9776 9238 Default: 9777 \fI\fIunix password sync\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR9239 \fI\fIunix password sync\fR\fR\fI = \fR\fIno\fR\fI \fR 9778 9240 .RE 9779 9241 … … 9796 9258 .sp 9797 9259 Note that even when this parameter is set, a user authenticating to 9798 \FCsmbd\F[] 9260 smbd 9799 9261 must still enter a valid password in order to connect correctly, and to update their hashed (smbpasswd) passwords\&. 9800 9262 .sp 9801 9263 Default: 9802 \fI\fIupdate encrypted\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR9264 \fI\fIupdate encrypted\fR\fR\fI = \fR\fIno\fR\fI \fR 9803 9265 .RE 9804 9266 … … 9808 9270 .RS 4 9809 9271 This parameter applies only to Windows NT/2000 clients\&. It has no effect on Windows 95/98/ME clients\&. When serving a printer to Windows NT/2000 clients without first installing a valid printer driver on the Samba host, the client will be required to install a local printer driver\&. From this point on, the client will treat the print as a local printer and not a network printer connection\&. This is much the same behavior that will occur when 9810 \FCdisable spoolss = yes\F[]\&.9272 disable spoolss = yes\&. 9811 9273 .sp 9812 9274 The differentiating factor is that under normal circumstances, the NT/2000 client will attempt to open the network printer using MS\-RPC\&. The problem is that because the client considers the printer to be local, it will attempt to issue the OpenPrinterEx() call requesting access rights associated with the logged on user\&. If the user possesses local administator rights but not root privilege on the Samba host (often the case), the OpenPrinterEx() call will fail\&. The result is that the client will now display an "Access Denied; Unable to connect" message in the printer queue window (even though jobs may successfully be printed)\&. … … 9816 9278 .sp 9817 9279 Default: 9818 \fI\fIuse client driver\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR9280 \fI\fIuse client driver\fR\fR\fI = \fR\fIno\fR\fI \fR 9819 9281 .RE 9820 9282 … … 9829 9291 .sp 9830 9292 When you are using the heimdal Kerberos libraries, you must also specify the following in 9831 \FC/etc/krb5\&.conf\F[]:9293 /etc/krb5\&.conf: 9832 9294 .sp 9833 9295 .if n \{\ 9834 9296 .RS 4 9835 9297 .\} 9836 .fam C9837 .ps -19838 9298 .nf 9839 .if t \{\9840 .sp -19841 .\}9842 .BB lightgray adjust-for-leading-newline9843 .sp -19844 9845 9299 [libdefaults] 9846 9300 default_keytab_name = FILE:/etc/krb5\&.keytab 9847 .EB lightgray adjust-for-leading-newline9848 .if t \{\9849 .sp 19850 .\}9851 9301 .fi 9852 .fam9853 .ps +19854 9302 .if n \{\ 9855 9303 .RE … … 9857 9305 .sp 9858 9306 Default: 9859 \fI\fIuse kerberos keytab\fR\fR\fI = \fR\fI \FCFalse\F[]\fR\fI \fR9307 \fI\fIuse kerberos keytab\fR\fR\fI = \fR\fIFalse\fR\fI \fR 9860 9308 .RE 9861 9309 … … 9869 9317 .sp 9870 9318 Default: 9871 \fI\fIuse mmap\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR9319 \fI\fIuse mmap\fR\fR\fI = \fR\fIyes\fR\fI \fR 9872 9320 .RE 9873 9321 … … 9884 9332 .sp 9885 9333 Default: 9886 \fI\fIusername level\fR\fR\fI = \fR\fI \FC0\F[]\fR\fI \fR9887 .sp 9888 Example: 9889 \fI\fIusername level\fR\fR\fI = \fR\fI \FC5\F[]\fR\fI \fR9334 \fI\fIusername level\fR\fR\fI = \fR\fI0\fR\fI \fR 9335 .sp 9336 Example: 9337 \fI\fIusername level\fR\fR\fI = \fR\fI5\fR\fI \fR 9890 9338 .RE 9891 9339 … … 9899 9347 .sp 9900 9348 Default: 9901 \fI\fIusername map script\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR9902 .sp 9903 Example: 9904 \fI\fIusername map script\fR\fR\fI = \fR\fI \FC/etc/samba/scripts/mapusers\&.sh\F[]\fR\fI \fR9349 \fI\fIusername map script\fR\fR\fI = \fR\fI\fR\fI \fR 9350 .sp 9351 Example: 9352 \fI\fIusername map script\fR\fR\fI = \fR\fI/etc/samba/scripts/mapusers\&.sh\fR\fI \fR 9905 9353 .RE 9906 9354 … … 9912 9360 .sp 9913 9361 Please note that for user or share mode security, the username map is applied prior to validating the user credentials\&. Domain member servers (domain or ads) apply the username map after the user has been successfully authenticated by the domain controller and require fully qualified enties in the map table (e\&.g\&. biddle = 9914 \FCDOMAIN\efoo\F[])\&.9362 DOMAIN\efoo)\&. 9915 9363 .sp 9916 9364 The map file is parsed line by line\&. Each line should contain a single UNIX username on the left then a \'=\' followed by a list of usernames on the right\&. The list of usernames on the right may contain names of the form @group in which case they will match any UNIX username in that group\&. The special client name \'*\' is a wildcard and matches any name\&. Each line of the map file may be up to 1023 characters long\&. … … 9933 9381 .RS 4 9934 9382 .\} 9935 .fam C9936 .ps -19937 9383 .nf 9938 .if t \{\ 9939 .sp -1 9940 .\} 9941 .BB lightgray adjust-for-leading-newline 9942 .sp -1 9943 9944 \FCroot = admin administrator\F[] 9945 .EB lightgray adjust-for-leading-newline 9946 .if t \{\ 9947 .sp 1 9948 .\} 9384 root = admin administrator 9949 9385 .fi 9950 .fam9951 .ps +19952 9386 .if n \{\ 9953 9387 .RE … … 9963 9397 .RS 4 9964 9398 .\} 9965 .fam C9966 .ps -19967 9399 .nf 9968 .if t \{\ 9969 .sp -1 9970 .\} 9971 .BB lightgray adjust-for-leading-newline 9972 .sp -1 9973 9974 \FCsys = @system\F[] 9975 .EB lightgray adjust-for-leading-newline 9976 .if t \{\ 9977 .sp 1 9978 .\} 9400 sys = @system 9979 9401 .fi 9980 .fam9981 .ps +19982 9402 .if n \{\ 9983 9403 .RE … … 9987 9407 .sp 9988 9408 If your system supports the NIS NETGROUP option then the netgroup database is checked before the 9989 \FC/etc/group \F[] 9409 /etc/group 9990 9410 database for matching groups\&. 9991 9411 .sp … … 9995 9415 .RS 4 9996 9416 .\} 9997 .fam C9998 .ps -19999 9417 .nf 10000 .if t \{\ 10001 .sp -1 10002 .\} 10003 .BB lightgray adjust-for-leading-newline 10004 .sp -1 10005 10006 \FCtridge = "Andrew Tridgell"\F[] 10007 .EB lightgray adjust-for-leading-newline 10008 .if t \{\ 10009 .sp 1 10010 .\} 9418 tridge = "Andrew Tridgell" 10011 9419 .fi 10012 .fam10013 .ps +110014 9420 .if n \{\ 10015 9421 .RE … … 10023 9429 .RS 4 10024 9430 .\} 10025 .fam C10026 .ps -110027 9431 .nf 10028 .if t \{\10029 .sp -110030 .\}10031 .BB lightgray adjust-for-leading-newline10032 .sp -110033 10034 9432 !sys = mary fred 10035 9433 guest = * 10036 .EB lightgray adjust-for-leading-newline10037 .if t \{\10038 .sp 110039 .\}10040 9434 .fi 10041 .fam10042 .ps +110043 9435 .if n \{\ 10044 9436 .RE … … 10059 9451 .sp 10060 9452 Samba versions prior to 3\&.0\&.8 would only support reading the fully qualified username (e\&.g\&.: 10061 \FCDOMAIN\euser\F[]) from the username map when performing a kerberos login from a client\&. However, when looking up a map entry for a user authenticated by NTLM[SSP], only the login name would be used for matches\&. This resulted in inconsistent behavior sometimes even on the same server\&.9453 DOMAIN\euser) from the username map when performing a kerberos login from a client\&. However, when looking up a map entry for a user authenticated by NTLM[SSP], only the login name would be used for matches\&. This resulted in inconsistent behavior sometimes even on the same server\&. 10062 9454 .sp 10063 9455 The following functionality is obeyed in version 3\&.0\&.8 and later: … … 10066 9458 .sp 10067 9459 When relying upon a external domain controller for validating authentication requests, smbd will apply the username map to the fully qualified username (i\&.e\&. 10068 \FCDOMAIN\euser\F[]) only after the user has been successfully authenticated\&.9460 DOMAIN\euser) only after the user has been successfully authenticated\&. 10069 9461 .sp 10070 9462 An example of use is: … … 10073 9465 .RS 4 10074 9466 .\} 10075 .fam C10076 .ps -110077 9467 .nf 10078 .if t \{\10079 .sp -110080 .\}10081 .BB lightgray adjust-for-leading-newline10082 .sp -110083 10084 9468 username map = /usr/local/samba/lib/users\&.map 10085 .EB lightgray adjust-for-leading-newline10086 .if t \{\10087 .sp 110088 .\}10089 9469 .fi 10090 .fam10091 .ps +110092 9470 .if n \{\ 10093 9471 .RE … … 10095 9473 .sp 10096 9474 Default: 10097 \fI\fIusername map\fR\fR\fI = \fR\fI \FC # no username map\F[]\fR\fI \fR9475 \fI\fIusername map\fR\fR\fI = \fR\fI # no username map\fR\fI \fR 10098 9476 .RE 10099 9477 … … 10149 9527 .sp 10150 9528 Default: 10151 \fI\fIusername\fR\fR\fI = \fR\fI \FC # The guest account if a guest service, else <empty string>\&.\F[]\fR\fI \fR10152 .sp 10153 Example: 10154 \fI\fIusername\fR\fR\fI = \fR\fI \FCfred, mary, jack, jane, @users, @pcgroup\F[]\fR\fI \fR9529 \fI\fIusername\fR\fR\fI = \fR\fI # The guest account if a guest service, else <empty string>\&.\fR\fI \fR 9530 .sp 9531 Example: 9532 \fI\fIusername\fR\fR\fI = \fR\fIfred, mary, jack, jane, @users, @pcgroup\fR\fI \fR 10155 9533 .RE 10156 9534 … … 10164 9542 .sp 10165 9543 Default: 10166 \fI\fIusershare allow guests\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR9544 \fI\fIusershare allow guests\fR\fR\fI = \fR\fIno\fR\fI \fR 10167 9545 .RE 10168 9546 … … 10174 9552 .sp 10175 9553 Default: 10176 \fI\fIusershare max shares\fR\fR\fI = \fR\fI \FC0\F[]\fR\fI \fR9554 \fI\fIusershare max shares\fR\fR\fI = \fR\fI0\fR\fI \fR 10177 9555 .RE 10178 9556 … … 10184 9562 .sp 10185 9563 Default: 10186 \fI\fIusershare owner only\fR\fR\fI = \fR\fI \FCTrue\F[]\fR\fI \fR9564 \fI\fIusershare owner only\fR\fR\fI = \fR\fITrue\fR\fI \fR 10187 9565 .RE 10188 9566 … … 10200 9578 .RS 4 10201 9579 .\} 10202 .fam C10203 .ps -110204 9580 .nf 10205 .if t \{\10206 .sp -110207 .\}10208 .BB lightgray adjust-for-leading-newline10209 .sp -110210 10211 9581 ls \-ld /usr/local/samba/lib/usershares/ 10212 9582 drwxrwx\-\-T 2 root power_users 4096 2006\-05\-05 12:27 /usr/local/samba/lib/usershares/ 10213 9583 10214 .EB lightgray adjust-for-leading-newline10215 .if t \{\10216 .sp 110217 .\}10218 9584 .fi 10219 .fam10220 .ps +110221 9585 .if n \{\ 10222 9586 .RE … … 10226 9590 .sp 10227 9591 Default: 10228 \fI\fIusershare path\fR\fR\fI = \fR\fI \FCNULL\F[]\fR\fI \fR9592 \fI\fIusershare path\fR\fR\fI = \fR\fINULL\fR\fI \fR 10229 9593 .RE 10230 9594 … … 10238 9602 .sp 10239 9603 Default: 10240 \fI\fIusershare prefix allow list\fR\fR\fI = \fR\fI \FCNULL\F[]\fR\fI \fR10241 .sp 10242 Example: 10243 \fI\fIusershare prefix allow list\fR\fR\fI = \fR\fI \FC/home /data /space\F[]\fR\fI \fR9604 \fI\fIusershare prefix allow list\fR\fR\fI = \fR\fINULL\fR\fI \fR 9605 .sp 9606 Example: 9607 \fI\fIusershare prefix allow list\fR\fR\fI = \fR\fI/home /data /space\fR\fI \fR 10244 9608 .RE 10245 9609 … … 10253 9617 .sp 10254 9618 Default: 10255 \fI\fIusershare prefix deny list\fR\fR\fI = \fR\fI \FCNULL\F[]\fR\fI \fR10256 .sp 10257 Example: 10258 \fI\fIusershare prefix deny list\fR\fR\fI = \fR\fI \FC/etc /dev /private\F[]\fR\fI \fR9619 \fI\fIusershare prefix deny list\fR\fR\fI = \fR\fINULL\fR\fI \fR 9620 .sp 9621 Example: 9622 \fI\fIusershare prefix deny list\fR\fR\fI = \fR\fI/etc /dev /private\fR\fI \fR 10259 9623 .RE 10260 9624 … … 10268 9632 .sp 10269 9633 Default: 10270 \fI\fIusershare template share\fR\fR\fI = \fR\fI \FCNULL\F[]\fR\fI \fR10271 .sp 10272 Example: 10273 \fI\fIusershare template share\fR\fR\fI = \fR\fI \FCtemplate_share\F[]\fR\fI \fR9634 \fI\fIusershare template share\fR\fR\fI = \fR\fINULL\fR\fI \fR 9635 .sp 9636 Example: 9637 \fI\fIusershare template share\fR\fR\fI = \fR\fItemplate_share\fR\fI \fR 10274 9638 .RE 10275 9639 … … 10284 9648 .sp 10285 9649 Default: 10286 \fI\fIuse sendfile\fR\fR\fI = \fR\fI \FCfalse\F[]\fR\fI \fR9650 \fI\fIuse sendfile\fR\fR\fI = \fR\fIfalse\fR\fI \fR 10287 9651 .RE 10288 9652 … … 10296 9660 .sp 10297 9661 Default: 10298 \fI\fIuse spnego\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR9662 \fI\fIuse spnego\fR\fR\fI = \fR\fIyes\fR\fI \fR 10299 9663 .RE 10300 9664 … … 10304 9668 .RS 4 10305 9669 This parameter is only available if Samba has been configured and compiled with the option 10306 \ FC \-\-with\-utmp\F[]\&. It specifies a directory pathname that is used to store the utmp or utmpx files (depending on the UNIX system) that record user connections to a Samba server\&. By default this is not set, meaning the system will use whatever utmp file the native system is set to use (usually10307 \FC/var/run/utmp\F[] 9670 \-\-with\-utmp\&. It specifies a directory pathname that is used to store the utmp or utmpx files (depending on the UNIX system) that record user connections to a Samba server\&. By default this is not set, meaning the system will use whatever utmp file the native system is set to use (usually 9671 /var/run/utmp 10308 9672 on Linux)\&. 10309 9673 .sp 10310 9674 Default: 10311 \fI\fIutmp directory\fR\fR\fI = \fR\fI \FC # Determined automatically\F[]\fR\fI \fR10312 .sp 10313 Example: 10314 \fI\fIutmp directory\fR\fR\fI = \fR\fI \FC/var/run/utmp\F[]\fR\fI \fR9675 \fI\fIutmp directory\fR\fR\fI = \fR\fI # Determined automatically\fR\fI \fR 9676 .sp 9677 Example: 9678 \fI\fIutmp directory\fR\fR\fI = \fR\fI/var/run/utmp\fR\fI \fR 10315 9679 .RE 10316 9680 … … 10320 9684 .RS 4 10321 9685 This boolean parameter is only available if Samba has been configured and compiled with the option 10322 \ FC\-\-with\-utmp\F[]\&. If set to9686 \-\-with\-utmp\&. If set to 10323 9687 \fByes\fR 10324 9688 then Samba will attempt to add utmp or utmpx records (depending on the UNIX system) whenever a connection is made to a Samba server\&. Sites may use this to record the user connecting to a Samba share\&. … … 10327 9691 .sp 10328 9692 Default: 10329 \fI\fIutmp\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR9693 \fI\fIutmp\fR\fR\fI = \fR\fIno\fR\fI \fR 10330 9694 .RE 10331 9695 … … 10346 9710 .sp 10347 9711 Default: 10348 \fI\fIvalid users\fR\fR\fI = \fR\fI \FC # No valid users list (anyone can login) \F[]\fR\fI \fR10349 .sp 10350 Example: 10351 \fI\fIvalid users\fR\fR\fI = \fR\fI \FCgreg, @pcusers\F[]\fR\fI \fR9712 \fI\fIvalid users\fR\fR\fI = \fR\fI # No valid users list (anyone can login) \fR\fI \fR 9713 .sp 9714 Example: 9715 \fI\fIvalid users\fR\fR\fI = \fR\fIgreg, @pcusers\fR\fI \fR 10352 9716 .RE 10353 9717 … … 10361 9725 .sp 10362 9726 Default: 10363 \fI\fI\-valid\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR9727 \fI\fI\-valid\fR\fR\fI = \fR\fIyes\fR\fI \fR 10364 9728 .RE 10365 9729 … … 10392 9756 .RS 4 10393 9757 .\} 10394 .fam C10395 .ps -110396 9758 .nf 10397 .if t \{\10398 .sp -110399 .\}10400 .BB lightgray adjust-for-leading-newline10401 .sp -110402 10403 9759 ; Veto any files containing the word Security, 10404 9760 ; any ending in \&.tmp, and any directory containing the … … 10409 9765 ; creates\&. 10410 9766 veto files = /\&.AppleDouble/\&.bin/\&.AppleDesktop/Network Trash Folder/ 10411 .EB lightgray adjust-for-leading-newline10412 .if t \{\10413 .sp 110414 .\}10415 9767 .fi 10416 .fam10417 .ps +110418 9768 .if n \{\ 10419 9769 .RE … … 10421 9771 .sp 10422 9772 Default: 10423 \fI\fIveto files\fR\fR\fI = \fR\fI \FCNo files or directories are vetoed\&.\F[]\fR\fI \fR9773 \fI\fIveto files\fR\fR\fI = \fR\fINo files or directories are vetoed\&.\fR\fI \fR 10424 9774 .RE 10425 9775 … … 10435 9785 .sp 10436 9786 You might want to do this on files that you know will be heavily contended for by clients\&. A good example of this is in the NetBench SMB benchmark program, which causes heavy client contention for files ending in 10437 \ FC\&.SEM\F[]\&. To cause Samba not to grant oplocks on these files you would use the line (either in the [global] section or in the section for the particular NetBench share\&.9787 \&.SEM\&. To cause Samba not to grant oplocks on these files you would use the line (either in the [global] section or in the section for the particular NetBench share\&. 10438 9788 .sp 10439 9789 An example of use is: … … 10442 9792 .RS 4 10443 9793 .\} 10444 .fam C10445 .ps -110446 9794 .nf 10447 .if t \{\10448 .sp -110449 .\}10450 .BB lightgray adjust-for-leading-newline10451 .sp -110452 10453 9795 veto oplock files = /\&.*SEM/ 10454 .EB lightgray adjust-for-leading-newline10455 .if t \{\10456 .sp 110457 .\}10458 9796 .fi 10459 .fam10460 .ps +110461 9797 .if n \{\ 10462 9798 .RE … … 10464 9800 .sp 10465 9801 Default: 10466 \fI\fIveto oplock files\fR\fR\fI = \fR\fI \FC # No files are vetoed for oplock grants\F[]\fR\fI \fR9802 \fI\fIveto oplock files\fR\fR\fI = \fR\fI # No files are vetoed for oplock grants\fR\fI \fR 10467 9803 .RE 10468 9804 … … 10482 9818 .sp 10483 9819 Default: 10484 \fI\fIvfs objects\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR10485 .sp 10486 Example: 10487 \fI\fIvfs objects\fR\fR\fI = \fR\fI \FCextd_audit recycle\F[]\fR\fI \fR9820 \fI\fIvfs objects\fR\fR\fI = \fR\fI\fR\fI \fR 9821 .sp 9822 Example: 9823 \fI\fIvfs objects\fR\fR\fI = \fR\fIextd_audit recycle\fR\fI \fR 10488 9824 .RE 10489 9825 … … 10495 9831 .sp 10496 9832 Default: 10497 \fI\fIvolume\fR\fR\fI = \fR\fI \FC # the name of the share\F[]\fR\fI \fR9833 \fI\fIvolume\fR\fR\fI = \fR\fI # the name of the share\fR\fI \fR 10498 9834 .RE 10499 9835 … … 10507 9843 .sp 10508 9844 Default: 10509 \fI\fIwide links\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR9845 \fI\fIwide links\fR\fR\fI = \fR\fIyes\fR\fI \fR 10510 9846 .RE 10511 9847 … … 10523 9859 .sp 10524 9860 Default: 10525 \fI\fIwinbind cache time\fR\fR\fI = \fR\fI \FC300\F[]\fR\fI \fR9861 \fI\fIwinbind cache time\fR\fR\fI = \fR\fI300\fR\fI \fR 10526 9862 .RE 10527 9863 … … 10533 9869 \fBwinbindd\fR(8) 10534 9870 it may be necessary to suppress the enumeration of groups through the 10535 \FCsetgrent()\F[],10536 \FCgetgrent()\F[] 9871 setgrent(), 9872 getgrent() 10537 9873 and 10538 \FCendgrent()\F[] 9874 endgrent() 10539 9875 group of system calls\&. If the 10540 9876 \fIwinbind enum groups\fR 10541 9877 parameter is 10542 9878 \fBno\fR, calls to the 10543 \FCgetgrent()\F[] 9879 getgrent() 10544 9880 system call will not return any data\&. 10545 9881 .if n \{\ … … 10547 9883 .\} 10548 9884 .RS 4 10549 .BM yellow10550 9885 .it 1 an-trap 10551 9886 .nr an-no-space-flag 1 … … 10558 9893 Turning off group enumeration may cause some programs to behave oddly\&. 10559 9894 .sp .5v 10560 .EM yellow 10561 .RE 10562 Default: 10563 \fI\fIwinbind enum groups\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR 9895 .RE 9896 Default: 9897 \fI\fIwinbind enum groups\fR\fR\fI = \fR\fIno\fR\fI \fR 10564 9898 .RE 10565 9899 … … 10571 9905 \fBwinbindd\fR(8) 10572 9906 it may be necessary to suppress the enumeration of users through the 10573 \FCsetpwent()\F[],10574 \FCgetpwent()\F[] 9907 setpwent(), 9908 getpwent() 10575 9909 and 10576 \FCendpwent()\F[] 9910 endpwent() 10577 9911 group of system calls\&. If the 10578 9912 \fIwinbind enum users\fR 10579 9913 parameter is 10580 9914 \fBno\fR, calls to the 10581 \FCgetpwent\F[] 9915 getpwent 10582 9916 system call will not return any data\&. 10583 9917 .if n \{\ … … 10585 9919 .\} 10586 9920 .RS 4 10587 .BM yellow10588 9921 .it 1 an-trap 10589 9922 .nr an-no-space-flag 1 … … 10596 9929 Turning off user enumeration may cause some programs to behave oddly\&. For example, the finger program relies on having access to the full user list when searching for matching usernames\&. 10597 9930 .sp .5v 10598 .EM yellow 10599 .RE 10600 Default: 10601 \fI\fIwinbind enum users\fR\fR\fI = \fR\fI\FCno\F[]\fR\fI \fR 9931 .RE 9932 Default: 9933 \fI\fIwinbind enum users\fR\fR\fI = \fR\fIno\fR\fI \fR 10602 9934 .RE 10603 9935 … … 10613 9945 .sp 10614 9946 Default: 10615 \fI\fIwinbind expand groups\fR\fR\fI = \fR\fI \FC1\F[]\fR\fI \fR9947 \fI\fIwinbind expand groups\fR\fR\fI = \fR\fI1\fR\fI \fR 10616 9948 .RE 10617 9949 … … 10623 9955 .sp 10624 9956 Default: 10625 \fI\fIwinbind nested groups\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR9957 \fI\fIwinbind nested groups\fR\fR\fI = \fR\fIyes\fR\fI \fR 10626 9958 .RE 10627 9959 … … 10635 9967 .sp 10636 9968 Default: 10637 \fI\fIwinbind normalize names\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR10638 .sp 10639 Example: 10640 \fI\fIwinbind normalize names\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR9969 \fI\fIwinbind normalize names\fR\fR\fI = \fR\fIno\fR\fI \fR 9970 .sp 9971 Example: 9972 \fI\fIwinbind normalize names\fR\fR\fI = \fR\fIyes\fR\fI \fR 10641 9973 .RE 10642 9974 … … 10680 10012 .sp 10681 10013 Default: 10682 \fI\fIwinbind nss info\fR\fR\fI = \fR\fI \FCtemplate\F[]\fR\fI \fR10683 .sp 10684 Example: 10685 \fI\fIwinbind nss info\fR\fR\fI = \fR\fI \FCtemplate sfu\F[]\fR\fI \fR10014 \fI\fIwinbind nss info\fR\fR\fI = \fR\fItemplate\fR\fI \fR 10015 .sp 10016 Example: 10017 \fI\fIwinbind nss info\fR\fR\fI = \fR\fItemplate sfu\fR\fI \fR 10686 10018 .RE 10687 10019 … … 10695 10027 .sp 10696 10028 Default: 10697 \fI\fIwinbind offline logon\fR\fR\fI = \fR\fI \FCfalse\F[]\fR\fI \fR10698 .sp 10699 Example: 10700 \fI\fIwinbind offline logon\fR\fR\fI = \fR\fI \FCtrue\F[]\fR\fI \fR10029 \fI\fIwinbind offline logon\fR\fR\fI = \fR\fIfalse\fR\fI \fR 10030 .sp 10031 Example: 10032 \fI\fIwinbind offline logon\fR\fR\fI = \fR\fItrue\fR\fI \fR 10701 10033 .RE 10702 10034 … … 10710 10042 .sp 10711 10043 Default: 10712 \fI\fIwinbind reconnect delay\fR\fR\fI = \fR\fI \FC30\F[]\fR\fI \fR10044 \fI\fIwinbind reconnect delay\fR\fR\fI = \fR\fI30\fR\fI \fR 10713 10045 .RE 10714 10046 … … 10722 10054 .sp 10723 10055 Default: 10724 \fI\fIwinbind refresh tickets\fR\fR\fI = \fR\fI \FCfalse\F[]\fR\fI \fR10725 .sp 10726 Example: 10727 \fI\fIwinbind refresh tickets\fR\fR\fI = \fR\fI \FCtrue\F[]\fR\fI \fR10056 \fI\fIwinbind refresh tickets\fR\fR\fI = \fR\fIfalse\fR\fI \fR 10057 .sp 10058 Example: 10059 \fI\fIwinbind refresh tickets\fR\fR\fI = \fR\fItrue\fR\fI \fR 10728 10060 .RE 10729 10061 … … 10733 10065 .RS 4 10734 10066 Setting this parameter to 10735 \FCyes\F[] 10067 yes 10736 10068 forces winbindd to use RPC instead of LDAP to retrieve information from Domain Controllers\&. 10737 10069 .sp 10738 10070 Default: 10739 \fI\fIwinbind rpc only\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR10071 \fI\fIwinbind rpc only\fR\fR\fI = \fR\fIno\fR\fI \fR 10740 10072 .RE 10741 10073 … … 10746 10078 This parameter allows an admin to define the character used when listing a username of the form of 10747 10079 \fIDOMAIN \fR\e\fIuser\fR\&. This parameter is only applicable when using the 10748 \FCpam_winbind\&.so\F[] 10080 pam_winbind\&.so 10749 10081 and 10750 \FCnss_winbind\&.so\F[] 10082 nss_winbind\&.so 10751 10083 modules for UNIX services\&. 10752 10084 .sp … … 10754 10086 .sp 10755 10087 Default: 10756 \fI\fIwinbind separator\fR\fR\fI = \fR\fI\ FC\'\e\'\F[]\fR\fI \fR10757 .sp 10758 Example: 10759 \fI\fIwinbind separator\fR\fR\fI = \fR\fI \FC+\F[]\fR\fI \fR10088 \fI\fIwinbind separator\fR\fR\fI = \fR\fI\'\e\'\fR\fI \fR 10089 .sp 10090 Example: 10091 \fI\fIwinbind separator\fR\fR\fI = \fR\fI+\fR\fI \fR 10760 10092 .RE 10761 10093 … … 10765 10097 .RS 4 10766 10098 This parameter is designed to allow Samba servers that are members of a Samba controlled domain to use UNIX accounts distributed via NIS, rsync, or LDAP as the uid\'s for winbindd users in the hosts primary domain\&. Therefore, the user 10767 \FCDOMAIN\euser1\F[] 10099 DOMAIN\euser1 10768 10100 would be mapped to the account user1 in /etc/passwd instead of allocating a new uid for him or her\&. 10769 10101 .sp … … 10773 10105 .sp 10774 10106 Default: 10775 \fI\fIwinbind trusted domains only\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR10107 \fI\fIwinbind trusted domains only\fR\fR\fI = \fR\fIno\fR\fI \fR 10776 10108 .RE 10777 10109 … … 10785 10117 .sp 10786 10118 Default: 10787 \fI\fIwinbind use default domain\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR10788 .sp 10789 Example: 10790 \fI\fIwinbind use default domain\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR10119 \fI\fIwinbind use default domain\fR\fR\fI = \fR\fIno\fR\fI \fR 10120 .sp 10121 Example: 10122 \fI\fIwinbind use default domain\fR\fR\fI = \fR\fIyes\fR\fI \fR 10791 10123 .RE 10792 10124 … … 10799 10131 The wins hook parameter specifies the name of a script or executable that will be called as follows: 10800 10132 .sp 10801 \FCwins_hook operation name nametype ttl IP_list\F[] 10133 wins_hook operation name nametype ttl IP_list 10802 10134 .sp 10803 10135 .RS 4 … … 10857 10189 .RE 10858 10190 An example script that calls the BIND dynamic DNS update program 10859 \FCnsupdate\F[] 10191 nsupdate 10860 10192 is provided in the examples directory of the Samba source code\&. 10861 10193 .sp … … 10874 10206 .sp 10875 10207 Default: 10876 \fI\fIwins proxy\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR10208 \fI\fIwins proxy\fR\fR\fI = \fR\fIno\fR\fI \fR 10877 10209 .RE 10878 10210 … … 10892 10224 .\} 10893 10225 .RS 4 10894 .BM yellow10895 10226 .it 1 an-trap 10896 10227 .nr an-no-space-flag 1 … … 10903 10234 You need to set up Samba to point to a WINS server if you have multiple subnets and wish cross\-subnet browsing to work correctly\&. 10904 10235 .sp .5v 10905 .EM yellow10906 10236 .RE 10907 10237 See the chapter in the Samba3\-HOWTO on Network Browsing\&. 10908 10238 .sp 10909 10239 Default: 10910 \fI\fIwins server\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR10911 .sp 10912 Example: 10913 \fI\fIwins server\fR\fR\fI = \fR\fI \FCmary:192\&.9\&.200\&.1 fred:192\&.168\&.3\&.199 mary:192\&.168\&.2\&.61 # For this example when querying a certain name, 192\&.19\&.200\&.1 will be asked first and if that doesn\'t respond 192\&.168\&.2\&.61\&. If either of those doesn\'t know the name 192\&.168\&.3\&.199 will be queried\&.\F[]\fR\fI \fR10914 .sp 10915 Example: 10916 \fI\fIwins server\fR\fR\fI = \fR\fI \FC192\&.9\&.200\&.1 192\&.168\&.2\&.61\F[]\fR\fI \fR10240 \fI\fIwins server\fR\fR\fI = \fR\fI\fR\fI \fR 10241 .sp 10242 Example: 10243 \fI\fIwins server\fR\fR\fI = \fR\fImary:192\&.9\&.200\&.1 fred:192\&.168\&.3\&.199 mary:192\&.168\&.2\&.61 # For this example when querying a certain name, 192\&.19\&.200\&.1 will be asked first and if that doesn\'t respond 192\&.168\&.2\&.61\&. If either of those doesn\'t know the name 192\&.168\&.3\&.199 will be queried\&.\fR\fI \fR 10244 .sp 10245 Example: 10246 \fI\fIwins server\fR\fR\fI = \fR\fI192\&.9\&.200\&.1 192\&.168\&.2\&.61\fR\fI \fR 10917 10247 .RE 10918 10248 … … 10926 10256 \fByes\fR 10927 10257 unless you have a multi\-subnetted network and you wish a particular 10928 \FCnmbd\F[] 10258 nmbd 10929 10259 to be your WINS server\&. Note that you should 10930 10260 \fINEVER\fR … … 10934 10264 .sp 10935 10265 Default: 10936 \fI\fIwins support\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR10266 \fI\fIwins support\fR\fR\fI = \fR\fIno\fR\fI \fR 10937 10267 .RE 10938 10268 … … 10946 10276 .sp 10947 10277 Default: 10948 \fI\fIworkgroup\fR\fR\fI = \fR\fI \FCWORKGROUP\F[]\fR\fI \fR10949 .sp 10950 Example: 10951 \fI\fIworkgroup\fR\fR\fI = \fR\fI \FCMYGROUP\F[]\fR\fI \fR10278 \fI\fIworkgroup\fR\fR\fI = \fR\fIWORKGROUP\fR\fI \fR 10279 .sp 10280 Example: 10281 \fI\fIworkgroup\fR\fR\fI = \fR\fIMYGROUP\fR\fI \fR 10952 10282 .RE 10953 10283 … … 10968 10298 .sp 10969 10299 Default: 10970 \fI\fIwriteable\fR\fR\fI = \fR\fI \FCno\F[]\fR\fI \fR10300 \fI\fIwriteable\fR\fR\fI = \fR\fIno\fR\fI \fR 10971 10301 .RE 10972 10302 … … 10984 10314 .sp 10985 10315 Default: 10986 \fI\fIwrite cache size\fR\fR\fI = \fR\fI \FC0\F[]\fR\fI \fR10987 .sp 10988 Example: 10989 \fI\fIwrite cache size\fR\fR\fI = \fR\fI \FC262144 # for a 256k cache size per file\F[]\fR\fI \fR10316 \fI\fIwrite cache size\fR\fR\fI = \fR\fI0\fR\fI \fR 10317 .sp 10318 Example: 10319 \fI\fIwrite cache size\fR\fR\fI = \fR\fI262144 # for a 256k cache size per file\fR\fI \fR 10990 10320 .RE 10991 10321 … … 11005 10335 .sp 11006 10336 Default: 11007 \fI\fIwrite list\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR11008 .sp 11009 Example: 11010 \fI\fIwrite list\fR\fR\fI = \fR\fI \FCadmin, root, @staff\F[]\fR\fI \fR10337 \fI\fIwrite list\fR\fR\fI = \fR\fI\fR\fI \fR 10338 .sp 10339 Example: 10340 \fI\fIwrite list\fR\fR\fI = \fR\fIadmin, root, @staff\fR\fI \fR 11011 10341 .RE 11012 10342 … … 11018 10348 .sp 11019 10349 Default: 11020 \fI\fIwrite raw\fR\fR\fI = \fR\fI \FCyes\F[]\fR\fI \fR10350 \fI\fIwrite raw\fR\fR\fI = \fR\fIyes\fR\fI \fR 11021 10351 .RE 11022 10352 … … 11026 10356 .RS 4 11027 10357 This parameter is only available if Samba has been configured and compiled with the option 11028 \ FC \-\-with\-utmp\F[]\&. It specifies a directory pathname that is used to store the wtmp or wtmpx files (depending on the UNIX system) that record user connections to a Samba server\&. The difference with the utmp directory is the fact that user info is kept after a user has logged out\&.10358 \-\-with\-utmp\&. It specifies a directory pathname that is used to store the wtmp or wtmpx files (depending on the UNIX system) that record user connections to a Samba server\&. The difference with the utmp directory is the fact that user info is kept after a user has logged out\&. 11029 10359 .sp 11030 10360 By default this is not set, meaning the system will use whatever utmp file the native system is set to use (usually 11031 \FC/var/run/wtmp\F[] 10361 /var/run/wtmp 11032 10362 on Linux)\&. 11033 10363 .sp 11034 10364 Default: 11035 \fI\fIwtmp directory\fR\fR\fI = \fR\fI\ FC\F[]\fR\fI \fR11036 .sp 11037 Example: 11038 \fI\fIwtmp directory\fR\fR\fI = \fR\fI \FC/var/log/wtmp\F[]\fR\fI \fR10365 \fI\fIwtmp directory\fR\fR\fI = \fR\fI\fR\fI \fR 10366 .sp 10367 Example: 10368 \fI\fIwtmp directory\fR\fR\fI = \fR\fI/var/log/wtmp\fR\fI \fR 11039 10369 .RE 11040 10370 .SH "WARNINGS" … … 11047 10377 .PP 11048 10378 Use of the 11049 \FC[homes]\F[]10379 [homes] 11050 10380 and 11051 \FC[printers]\F[]10381 [printers] 11052 10382 special sections make life for an administrator easy, but the various combinations of default attributes can be tricky\&. Take extreme care when designing these sections\&. In particular, ensure that the permissions on spool directories are correct\&. 11053 10383 .SH "VERSION"
Note:
See TracChangeset
for help on using the changeset viewer.