1<HTML> 2<HEAD> 3<TITLE> 4[Chapter 8] 8.6 Miscellaneous Options</title><META NAME="DC.title" CONTENT=""><META NAME="DC.creator" CONTENT=""><META NAME="DC.publisher" CONTENT="O'Reilly & Associates, Inc."><META NAME="DC.date" CONTENT="1999-11-05T21:35:56Z"><META NAME="DC.type" CONTENT="Text.Monograph"><META NAME="DC.format" CONTENT="text/html" SCHEME="MIME"><META NAME="DC.source" CONTENT="" SCHEME="ISBN"><META NAME="DC.language" CONTENT="en-US"><META NAME="generator" CONTENT="Jade 1.1/O'Reilly DocBook 3.0 to HTML 4.0"></head> 5<BODY BGCOLOR="#FFFFFF" TEXT="#000000" link="#990000" vlink="#0000CC"> 6<table BORDER="0" CELLPADDING="0" CELLSPACING="0" width="90%"> 7<tr> 8<td width="25%" valign="TOP"> 9<img hspace=10 vspace=10 src="gifs/samba.s.gif" 10alt="Using Samba" align=left valign=top border=0> 11</td> 12<td height="105" valign="TOP"> 13<br> 14<H2>Using Samba</H2> 15<font size="-1"> 16Robert Eckstein, David Collier-Brown, Peter Kelly 17<br>1st Edition November 1999 18<br>1-56592-449-5, Order Number: 4495 19<br>416 pages, $34.95 20</font> 21<p> <a href="http://www.oreilly.com/catalog/samba/">Buy the hardcopy</a> 22<p><a href="index.html">Table of Contents</a> 23</td> 24</tr> 25</table> 26<hr size=1 noshade> 27<!--sample chapter begins --> 28 29<center> 30<DIV CLASS="htmlnav"> 31<TABLE WIDTH="515" BORDER="0" CELLSPACING="0" CELLPADDING="0"> 32<TR> 33<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="172"> 34<A CLASS="sect1" HREF="ch08_05.html" TITLE="8.5 Recently Added Options"> 35<IMG SRC="gifs/txtpreva.gif" ALT="Previous: 8.5 Recently Added Options" BORDER="0"></a></td><TD ALIGN="CENTER" VALIGN="TOP" WIDTH="171"> 36<B> 37<FONT FACE="ARIEL,HELVETICA,HELV,SANSERIF" SIZE="-1"> 38<A CLASS="chapter" REL="up" HREF="ch08_01.html" TITLE="8. Additional Samba Information "> 39Chapter 8<br> 40Additional Samba Information </a></font></b></td><TD ALIGN="RIGHT" VALIGN="TOP" WIDTH="172"> 41<A CLASS="sect1" HREF="ch08_07.html" TITLE="8.7 Backups with smbtar"> 42<IMG SRC="gifs/txtnexta.gif" ALT="Next: 8.7 Backups with smbtar" BORDER="0"></a></td></tr></table> <hr noshade size=1></center> 43</div> 44<blockquote> 45<div> 46<H2 CLASS="sect1"> 47<A CLASS="title" NAME="ch08-70923"> 488.6 Miscellaneous Options</a></h2><P CLASS="para">Many Samba options are present to deal with operating system issues on either Unix or Windows. The options shown in <A CLASS="xref" HREF="ch08_06.html#ch08-83566"> 49Table 8.10</a> deal specifically with some of these known problems. We usually don't change these and we recommend the same to you. </p><br> 50<TABLE CLASS="table" BORDER="1" CELLPADDING="3"> 51<CAPTION CLASS="table"> 52<A CLASS="title" NAME="ch08-83566"> 53Table 8.10: Miscellaneous Options </a></caption><THEAD CLASS="thead"> 54<TR CLASS="row" VALIGN="TOP"> 55<TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 56<P CLASS="para"> 57Option</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 58<P CLASS="para"> 59Parameters</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 60<P CLASS="para"> 61Function</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 62<P CLASS="para"> 63Default</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 64<P CLASS="para"> 65Scope</p></th></tr></thead><TBODY CLASS="tbody"> 66<TR CLASS="row" VALIGN="TOP"> 67<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 68<P CLASS="para"> 69<CODE CLASS="literal"> 70deadtime</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 71<P CLASS="para">numerical (number of minutes)</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 72<P CLASS="para"> 73Specifies the number of minutes of inactivity before a connection should be terminated.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 74<P CLASS="para"> 75<CODE CLASS="literal"> 760</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 77<P CLASS="para"> 78Global</p></td></tr><TR CLASS="row" VALIGN="TOP"> 79<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 80<P CLASS="para"> 81<CODE CLASS="literal"> 82dfree command</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 83<P CLASS="para"> 84string (command)</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 85<P CLASS="para"> 86Used to provide a command that returns disk free space in a format recognized by Samba.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 87<P CLASS="para"> 88None</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 89<P CLASS="para"> 90Global</p></td></tr><TR CLASS="row" VALIGN="TOP"> 91<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 92<P CLASS="para"> 93<CODE CLASS="literal"> 94fstype</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 95<P CLASS="para"> 96<CODE CLASS="literal"> 97NTFS</code>, <CODE CLASS="literal"> 98FAT</code>, or <CODE CLASS="literal"> 99Samba</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 100<P CLASS="para"> 101Sets the filesystem type reported by the server to the client.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 102<P CLASS="para"> 103<CODE CLASS="literal"> 104NTFS</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 105<P CLASS="para"> 106Global</p></td></tr><TR CLASS="row" VALIGN="TOP"> 107<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 108<P CLASS="para"> 109<CODE CLASS="literal"> 110keep alive</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 111<P CLASS="para"> 112seconds</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 113<P CLASS="para"> 114Sets the number of seconds between checks for an inoperative client.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 115<P CLASS="para"> 1160 (none)</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 117<P CLASS="para"> 118Global</p></td></tr><TR CLASS="row" VALIGN="TOP"> 119<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 120<P CLASS="para"> 121<CODE CLASS="literal"> 122max disk size</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 123<P CLASS="para"> 124numerical (size in MB)</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 125<P CLASS="para"> 126Sets the largest disk size to return to a client, some of which have limits. Does not affect actual operations on the disk.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 127<P CLASS="para"> 1280 (infinity)</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 129<P CLASS="para"> 130Global</p></td></tr><TR CLASS="row" VALIGN="TOP"> 131<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 132<P CLASS="para"> 133<CODE CLASS="literal"> 134max mux</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 135<P CLASS="para"> 136numerical</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 137<P CLASS="para"> 138Sets the maximum number of simultaneous SMB operations that clients may make.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 139<P CLASS="para"> 140<CODE CLASS="literal"> 14150</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 142<P CLASS="para"> 143Global</p></td></tr><TR CLASS="row" VALIGN="TOP"> 144<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 145<P CLASS="para"> 146<CODE CLASS="literal"> 147max open files</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 148<P CLASS="para"> 149numerical</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 150<P CLASS="para"> 151Limits number of open files to be below Unix limits.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 152<P CLASS="para"> 153<CODE CLASS="literal"> 15410,000</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 155<P CLASS="para"> 156Global</p></td></tr><TR CLASS="row" VALIGN="TOP"> 157<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 158<P CLASS="para"> 159<CODE CLASS="literal"> 160max xmit</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 161<P CLASS="para"> 162numerical</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 163<P CLASS="para"> 164Specifies the maximum packet size that Samba will send.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 165<P CLASS="para"> 166<CODE CLASS="literal"> 16765,535</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 168<P CLASS="para"> 169Global</p></td></tr><TR CLASS="row" VALIGN="TOP"> 170<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 171<P CLASS="para"> 172<CODE CLASS="literal"> 173nt pipe support</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 174<P CLASS="para"> 175boolean</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 176<P CLASS="para"> 177Turns off an experimental NT feature, for benchmarking or in case of an error.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 178<P CLASS="para"> 179<CODE CLASS="literal"> 180yes</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 181<P CLASS="para"> 182Global</p></td></tr><TR CLASS="row" VALIGN="TOP"> 183<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 184<P CLASS="para"> 185<CODE CLASS="literal"> 186nt smb support</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 187<P CLASS="para"> 188boolean</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 189<P CLASS="para"> 190Turns off an experimental NT feature, for benchmarking or in case of an error.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 191<P CLASS="para"> 192<CODE CLASS="literal"> 193yes</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 194<P CLASS="para"> 195Global</p></td></tr><TR CLASS="row" VALIGN="TOP"> 196<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 197<P CLASS="para"> 198<CODE CLASS="literal"> 199ole locking compatib-ility</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 200<P CLASS="para"> 201boolean</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 202<P CLASS="para"> 203Remaps out-of-range lock requests used on Windows to fit in allowable range on Unix. Turning it off causes Unix lock errors.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 204<P CLASS="para"> 205<CODE CLASS="literal"> 206yes</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 207<P CLASS="para"> 208Global</p></td></tr><TR CLASS="row" VALIGN="TOP"> 209<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 210<P CLASS="para"> 211<CODE CLASS="literal"> 212panic action</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 213<P CLASS="para"> 214command</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 215<P CLASS="para"> 216Program to run if Samba server fails; for debugging.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 217<P CLASS="para"> 218None</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 219<P CLASS="para"> 220Global</p></td></tr><TR CLASS="row" VALIGN="TOP"> 221<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 222<P CLASS="para"> 223<CODE CLASS="literal"> 224set directory</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 225<P CLASS="para"> 226boolean</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 227<P CLASS="para"> 228If <CODE CLASS="literal"> 229yes</code>, allows VMS clients to issue <CODE CLASS="literal"> 230set</code> <CODE CLASS="literal"> 231dir</code> commands.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 232<P CLASS="para"> 233<CODE CLASS="literal"> 234no</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 235<P CLASS="para"> 236Global</p></td></tr><TR CLASS="row" VALIGN="TOP"> 237<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 238<P CLASS="para"> 239<CODE CLASS="literal"> 240smbrun</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 241<P CLASS="para"> 242string (fully-qualified command)</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 243<P CLASS="para"> 244Sets the command Samba uses as a wrapper for shell commands.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 245<P CLASS="para"> 246None</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 247<P CLASS="para"> 248Global</p></td></tr><TR CLASS="row" VALIGN="TOP"> 249<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 250<P CLASS="para"> 251<CODE CLASS="literal"> 252status</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 253<P CLASS="para"> 254boolean</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 255<P CLASS="para"> 256If <CODE CLASS="literal"> 257yes</code>, allows Samba to monitor status for <CODE CLASS="literal"> 258smbstatus</code> command.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 259<P CLASS="para"> 260<CODE CLASS="literal"> 261yes</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 262<P CLASS="para"> 263Global</p></td></tr><TR CLASS="row" VALIGN="TOP"> 264<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 265<P CLASS="para"> 266<CODE CLASS="literal"> 267strict sync</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 268<P CLASS="para"> 269boolean</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 270<P CLASS="para"> 271If <CODE CLASS="literal"> 272no</code>, ignores Windows applications requests to perform a sync-to-disk.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 273<P CLASS="para"> 274<CODE CLASS="literal"> 275no</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 276<P CLASS="para"> 277Global</p></td></tr><TR CLASS="row" VALIGN="TOP"> 278<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 279<P CLASS="para"> 280<CODE CLASS="literal"> 281sync always</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 282<P CLASS="para"> 283boolean</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 284<P CLASS="para"> 285If <CODE CLASS="literal"> 286yes</code>, forces all client writes to be committed to disk before returning from the call.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 287<P CLASS="para"> 288<CODE CLASS="literal"> 289no</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 290<P CLASS="para"> 291Global</p></td></tr><TR CLASS="row" VALIGN="TOP"> 292<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 293<P CLASS="para"> 294<CODE CLASS="literal"> 295strip dot</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 296<P CLASS="para"> 297boolean</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 298<P CLASS="para"> 299If <CODE CLASS="literal"> 300yes</code>, strips trailing dots from Unix filenames. </p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 301<P CLASS="para"> 302<CODE CLASS="literal"> 303no</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 304<P CLASS="para"> 305Global</p></td></tr></tbody></table><DIV CLASS="sect2"> 306<H3 CLASS="sect2"> 307<A CLASS="title" NAME="ch08-pgfId-960795"> 3088.6.1 deadtime</a></h3><P CLASS="para"> 309This global option sets the number of minutes that Samba will wait for an inactive client before closing its session with the Samba server. A client is considered inactive when it has no open files and there is no data being sent from it. The default value for this option is 0, which means that Samba never closes any connections no matter how long they have been inactive. You can override it as follows:</p><PRE CLASS="programlisting"> 310[global] 311 deadtime = 10</pre><P CLASS="para"> 312This tells Samba to terminate any inactive client sessions after 10 minutes. For most networks, setting this option as such will work because reconnections from the client are generally performed transparently to the user.</p></div><DIV CLASS="sect2"> 313<H3 CLASS="sect2"> 314<A CLASS="title" NAME="ch08-pgfId-960118"> 3158.6.2 dfree command</a></h3><P CLASS="para">This global option is used on systems that incorrectly determine the free space left on the disk. So far, the only confirmed system that needs this option set is Ultrix. There is no default value for this option, which means that Samba already knows how to compute the free disk space on its own and the results are considered reliable. You can override it as follows:</p><PRE CLASS="programlisting"> 316[global] 317 dfree command = /usr/local/bin/dfree</pre><P CLASS="para"> 318This option should point to a script that should return the total disk space in a block, and the number of available blocks. The Samba documentation recommends the following as a usable script:</p><PRE CLASS="programlisting"> 319#!/bin/sh 320df $1 | tail -1 | awk '{print $2" "$4}'</pre><P CLASS="para"> 321On System V machines, the following will work:</p><PRE CLASS="programlisting"> 322#!/bin/sh 323/usr/bin/df $1 | tail -1 | awk '{print $3" "$5}'</pre></div><DIV CLASS="sect2"> 324<H3 CLASS="sect2"> 325<A CLASS="title" NAME="ch08-pgfId-960122"> 3268.6.3 fstype</a></h3><P CLASS="para"> 327This share-level option sets the type of filesystem that Samba reports when queried by the client. There are three strings that can be used as a value to this configuration option, as listed in <A CLASS="xref" HREF="ch08_06.html#ch08-80519"> 328Table 8.11</a>. </p><br> 329<TABLE CLASS="table" BORDER="1" CELLPADDING="3"> 330<CAPTION CLASS="table"> 331<A CLASS="title" NAME="ch08-80519"> 332Table 8.11: Filesystem Types </a></caption><THEAD CLASS="thead"> 333<TR CLASS="row" VALIGN="TOP"> 334<TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 335<P CLASS="para"> 336Variable</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 337<P CLASS="para"> 338Definition</p></th></tr></thead><TBODY CLASS="tbody"> 339<TR CLASS="row" VALIGN="TOP"> 340<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 341<P CLASS="para"> 342NTFS</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 343<P CLASS="para">Microsoft Windows NT filesystem</p></td></tr><TR CLASS="row" VALIGN="TOP"> 344<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 345<P CLASS="para"> 346FAT</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 347<P CLASS="para"> 348DOS FAT filesystem</p></td></tr><TR CLASS="row" VALIGN="TOP"> 349<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 350<P CLASS="para"> 351Samba</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 352<P CLASS="para"> 353Samba filesystem</p></td></tr></tbody></table><P CLASS="para"> 354The default value for this option is <CODE CLASS="literal"> 355NTFS</code>, which represents a Windows NT filesystem. There probably isn't a need to specify any other type of filesystem. However, if you need to, you can override it per share as follows:</p><PRE CLASS="programlisting"> 356[data] 357 fstype = FAT</pre></div><DIV CLASS="sect2"> 358<H3 CLASS="sect2"> 359<A CLASS="title" NAME="ch08-pgfId-960124"> 3608.6.4 keep alive</a></h3><P CLASS="para">This global option specifies the number of seconds that Samba waits between sending NetBIOS <EM CLASS="emphasis"> 361keep-alive packets</em>. These packets are used to ping a client to detect whether it is still alive and on the network. The default value for this option is <CODE CLASS="literal"> 3620</code>, which means that Samba will not send any such packets at all. You can override it as follows:</p><PRE CLASS="programlisting"> 363[global] 364 keep alive = 10</pre></div><DIV CLASS="sect2"> 365<H3 CLASS="sect2"> 366<A CLASS="title" NAME="ch08-pgfId-960128"> 3678.6.5 max disk size</a></h3><P CLASS="para">This global option specifies an illusory limit, in megabytes, for each of the shares that Samba is using. You would typically set this option to prevent clients with older operating systems from incorrectly processing large disk spaces, such as those over one gigabyte.</p><P CLASS="para"> 368The default value for this option is <CODE CLASS="literal"> 3690</code>, which means there is no upper limit at all. You can override it as follows:</p><PRE CLASS="programlisting"> 370[global] 371 max disk size = 1000</pre></div><DIV CLASS="sect2"> 372<H3 CLASS="sect2"> 373<A CLASS="title" NAME="ch08-pgfId-960130"> 3748.6.6 max mux</a></h3><P CLASS="para">This global option specifies the maximum number of concurrent SMB operations that Samba allows. The default value for this option is <CODE CLASS="literal"> 37550</code>. You can override it as follows:</p><PRE CLASS="programlisting"> 376[global] 377 max mux = 100</pre></div><DIV CLASS="sect2"> 378<H3 CLASS="sect2"> 379<A CLASS="title" NAME="ch08-pgfId-960132"> 3808.6.7 max open files</a></h3><P CLASS="para">This global option specifies the maximum number of open files that Samba should allow at any given time for all processes. This value must be equal to or less than the amount allowed by the operating system, which varies from system to system. The default value for this option is <CODE CLASS="literal"> 38110,000</code>. You can override it as follows:</p><PRE CLASS="programlisting"> 382[global] 383 max open files = 8000</pre></div><DIV CLASS="sect2"> 384<H3 CLASS="sect2"> 385<A CLASS="title" NAME="ch08-pgfId-960136"> 3868.6.8 max xmit</a></h3><P CLASS="para">This global option sets the maximum size of packets that Samba exchanges with a client. In some cases, setting a smaller maximum packet size can increase performance, especially with Windows for Workgroups. The default value for this option is <CODE CLASS="literal"> 38765535</code>. You can override it as follows:</p><PRE CLASS="programlisting"> 388[global] 389 max xmit = 4096</pre><P CLASS="para"> 390 391The section <a href="appb_02.html#b226"><b>Section B.2.2.6, The TCP receive window</b></a> in <a href="appb_01.html"><b>Appendix B,<CITE CLASS="appendix"> 392Samba Performance Tuning</cite></b></a>, 393 394shows some uses for this option.</p></div><DIV CLASS="sect2"> 395<H3 CLASS="sect2"> 396<A CLASS="title" NAME="ch08-pgfId-960138"> 3978.6.9 nt pipe support</a></h3><P CLASS="para">This global option is used by developers to allow or disallow Windows NT clients the ability to make connections to the NT SMB-specific IPC$ pipes. As a user, you should never need to override the default:</p><PRE CLASS="programlisting"> 398[global] 399 nt pipe support = yes</pre></div><DIV CLASS="sect2"> 400<H3 CLASS="sect2"> 401<A CLASS="title" NAME="ch08-pgfId-960140"> 4028.6.10 nt smb support</a></h3><P CLASS="para">This global option is used by developers to negotiate NT-specific SMB options with Windows NT clients. The Samba team has discovered that slightly better performance comes from setting this value to <CODE CLASS="literal"> 403no</code>. However, as a user, you should probably not override the default:</p><PRE CLASS="programlisting"> 404[global] 405 nt smb support = yes</pre></div><DIV CLASS="sect2"> 406<H3 CLASS="sect2"> 407<A CLASS="title" NAME="ch08-pgfId-960178"> 4088.6.11 ole locking compatibility</a></h3><P CLASS="para"> 409This global option turns off Samba's internal byte-range locking manipulation in files, which gives compatibility with Object Linking and Embedding (OLE) applications that use high byte-range locks as a method of interprocess communication. The default value for this option is <CODE CLASS="literal"> 410yes</code>. If you trust your Unix locking mechanisms, you can override it as follows:</p><PRE CLASS="programlisting"> 411[global] 412 ole locking compatibility = no</pre></div><DIV CLASS="sect2"> 413<H3 CLASS="sect2"> 414<A CLASS="title" NAME="ch08-pgfId-960182"> 4158.6.12 panic action</a></h3><P CLASS="para">This global option specifies a command to execute in the event that Samba itself encounters a fatal error when loading or running. There is no default value for this option. You can specify an action as follows:</p><PRE CLASS="programlisting"> 416[global] 417 panic action = /bin/csh -c 418 'xedit < "Samba has shutdown unexpectedly!'</pre></div><DIV CLASS="sect2"> 419<H3 CLASS="sect2"> 420<A CLASS="title" NAME="ch08-pgfId-960190"> 4218.6.13 set directory</a></h3><P CLASS="para"> 422This boolean share-level option allows Digital Pathworks clients to use the <CODE CLASS="literal"> 423setdir</code> command to change directories on the server. If you are not using the Digital Pathworks client, you should not need to alter this option. The default value for this option is <CODE CLASS="literal"> 424no</code>. You can override it per share as follows:</p><PRE CLASS="programlisting"> 425[data] 426 set directory = yes</pre></div><DIV CLASS="sect2"> 427<H3 CLASS="sect2"> 428<A CLASS="title" NAME="ch08-pgfId-960192"> 4298.6.14 smbrun</a></h3><P CLASS="para"> 430This option sets the location of the <EM CLASS="emphasis"> 431smbrun</em> executable, which Samba uses as a wrapper to run shell commands. The default value for this option is automatically configured by Samba when it is compiled. If you did not install Samba to the standard directory, you can specify where the binary is as follows:</p><PRE CLASS="programlisting"> 432[global] 433 smbrun = /usr/local/bin/smbrun</pre></div><DIV CLASS="sect2"> 434<H3 CLASS="sect2"> 435<A CLASS="title" NAME="ch08-pgfId-960194"> 4368.6.15 status</a></h3><P CLASS="para"> 437This global option indicates whether Samba should log all active connections to a status file. This file is used only by the <EM CLASS="emphasis"> 438smbstatus</em> command. If you have no intentions of using this command, you can set this option to <CODE CLASS="literal"> 439no</code>, which can result in a small increase of speed on the server. The default value for this option is <CODE CLASS="literal"> 440yes</code>. You can override it as follows:</p><PRE CLASS="programlisting"> 441[global] 442 status = no</pre></div><DIV CLASS="sect2"> 443<H3 CLASS="sect2"> 444<A CLASS="title" NAME="ch08-pgfId-960196"> 4458.6.16 strict sync</a></h3><P CLASS="para"> 446This share-level option determines whether Samba honors all requests to perform a disk sync when requested to do so by a client. Many clients request a disk sync when they are really just trying to flush data to their own open files. As a result, this can substantially slow a Samba server down. The default value for this option is <CODE CLASS="literal"> 447no</code>. You can override it as follows:</p><PRE CLASS="programlisting"> 448[data] 449 strict sync = yes</pre></div><DIV CLASS="sect2"> 450<H3 CLASS="sect2"> 451<A CLASS="title" NAME="ch08-pgfId-960202"> 4528.6.17 sync always</a></h3><P CLASS="para"> 453This share-level option decides whether every write to disk should be followed by a disk synchronization before the write call returns control to the client. Even if the value of this option is <CODE CLASS="literal"> 454no</code>, clients can request a disk synchronization; see the <CODE CLASS="literal"> 455strict</code> <CODE CLASS="literal"> 456sync</code> option above. The default value for this option is <CODE CLASS="literal"> 457no</code>. You can override it per share as follows:</p><PRE CLASS="programlisting"> 458[data] 459 sync always = yes</pre></div><DIV CLASS="sect2"> 460<H3 CLASS="sect2"> 461<A CLASS="title" NAME="ch08-pgfId-960204"> 4628.6.18 strip dot</a></h3><P CLASS="para"> 463This global option determines whether to remove the trailing dot from Unix filenames that are formatted with a dot at the end. The default value for this option is <CODE CLASS="literal"> 464no</code>. You can override it per share as follows:</p><PRE CLASS="programlisting"> 465[global] 466 strip dot = yes</pre><P CLASS="para"> 467This option is now considered obsolete; the user should use the <CODE CLASS="literal"> 468mangled</code> <CODE CLASS="literal"> 469map</code> option insead. </p></div></div></blockquote> 470<div> 471<center> 472<hr noshade size=1><TABLE WIDTH="515" BORDER="0" CELLSPACING="0" CELLPADDING="0"> 473<TR> 474<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="172"> 475<A CLASS="sect1" HREF="ch08_05.html" TITLE="8.5 Recently Added Options"> 476<IMG SRC="gifs/txtpreva.gif" ALT="Previous: 8.5 Recently Added Options" BORDER="0"></a></td><TD ALIGN="CENTER" VALIGN="TOP" WIDTH="171"> 477<A CLASS="book" HREF="index.html" TITLE=""> 478<IMG SRC="gifs/txthome.gif" ALT="" BORDER="0"></a></td><TD ALIGN="RIGHT" VALIGN="TOP" WIDTH="172"> 479<A CLASS="sect1" HREF="ch08_07.html" TITLE="8.7 Backups with smbtar"> 480<IMG SRC="gifs/txtnexta.gif" ALT="Next: 8.7 Backups with smbtar" BORDER="0"></a></td></tr><TR> 481<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="172"> 4828.5 Recently Added Options</td><TD ALIGN="CENTER" VALIGN="TOP" WIDTH="171"> 483<A CLASS="index" HREF="inx.html" TITLE="Book Index"> 484<IMG SRC="gifs/index.gif" ALT="Book Index" BORDER="0"></a></td><TD ALIGN="RIGHT" VALIGN="TOP" WIDTH="172"> 4858.7 Backups with smbtar</td></tr></table><hr noshade size=1></center> 486</div> 487 488<!-- End of sample chapter --> 489<CENTER> 490<FONT SIZE="1" FACE="Verdana, Arial, Helvetica"> 491<A HREF="http://www.oreilly.com/"> 492<B>O'Reilly Home</B></A> <B> | </B> 493<A HREF="http://www.oreilly.com/sales/bookstores"> 494<B>O'Reilly Bookstores</B></A> <B> | </B> 495<A HREF="http://www.oreilly.com/order_new/"> 496<B>How to Order</B></A> <B> | </B> 497<A HREF="http://www.oreilly.com/oreilly/contact.html"> 498<B>O'Reilly Contacts<BR></B></A> 499<A HREF="http://www.oreilly.com/international/"> 500<B>International</B></A> <B> | </B> 501<A HREF="http://www.oreilly.com/oreilly/about.html"> 502<B>About O'Reilly</B></A> <B> | </B> 503<A HREF="http://www.oreilly.com/affiliates.html"> 504<B>Affiliated Companies</B></A><p> 505<EM>© 1999, O'Reilly & Associates, Inc.</EM> 506</FONT> 507</CENTER> 508</BODY> 509</html> 510