Ignore:
Timestamp:
May 27, 2009, 9:08:03 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.8 docs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/docs/htmldocs/Samba3-HOWTO/classicalprinting.html

    r226 r231  
    1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 21. Classical Printing Support</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.1"><link rel="start" href="index.html" title="The Official Samba 3.2.x HOWTO and Reference Guide"><link rel="up" href="optional.html" title="Part III. Advanced Configuration"><link rel="prev" href="msdfs.html" title="Chapter 20. Hosting a Microsoft Distributed File System Tree"><link rel="next" href="CUPS-printing.html" title="Chapter 22. CUPS Printing Support"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 21. Classical Printing Support</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="msdfs.html">Prev</a> </td><th width="60%" align="center">Part III. Advanced Configuration</th><td width="20%" align="right"> <a accesskey="n" href="CUPS-printing.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="classicalprinting"></a>Chapter 21. Classical Printing Support</h2></div><div><div class="author"><h3 class="author"><span class="firstname">Kurt</span> <span class="surname">Pfeifle</span></h3><div class="affiliation"><span class="orgname">Danka Deutschland GmbH<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:kpfeifle@danka.de">kpfeifle@danka.de</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Gerald</span> <span class="othername">(Jerry)</span> <span class="surname">Carter</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:jerry@samba.org">jerry@samba.org</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">John</span> <span class="othername">H.</span> <span class="surname">Terpstra</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:jht@samba.org">jht@samba.org</a>&gt;</code></p></div></div></div></div><div><p class="pubdate">May 31, 2003</p></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="classicalprinting.html#id2615079">Features and Benefits</a></span></dt><dt><span class="sect1"><a href="classicalprinting.html#id2615303">Technical Introduction</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2615454">Client to Samba Print Job Processing</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2615513">Printing-Related Configuration Parameters</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2615614">Simple Print Configuration</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2615897">Verifying Configuration with <code class="literal">testparm</code></a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2616094">Rapid Configuration Validation</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2616494">Extended Printing Configuration</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2616949">Detailed Explanation Settings</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#cups-msrpc">Printing Developments Since Samba-2.2</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2619662">Point'n'Print Client Drivers on Samba Servers</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2619832">The Obsoleted [printer$] Section</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2619953">Creating the [print$] Share</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2620170">[print$] Stanza Parameters</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2620490">The [print$] Share Directory</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2620633">Installing Drivers into [print$]</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2620726">Add Printer Wizard Driver Installation</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#inst-rpc">Installing Print Drivers Using <code class="literal">rpcclient</code></a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2622662">Client Driver Installation Procedure</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2622678">First Client Driver Installation</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#prt-modeset">Setting Device Modes on New Printers</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2623255">Additional Client Driver Installation</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2623374">Always Make First Client Connection as root or &#8220;<span class="quote">printer admin</span>&#8221;</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2623547">Other Gotchas</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2623568">Setting Default Print Options for Client Drivers</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2623935">Supporting Large Numbers of Printers</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2624191">Adding New Printers with the Windows NT APW</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2624451">Error Message: &#8220;<span class="quote">Cannot connect under a different Name</span>&#8221;</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2624564">Take Care When Assembling Driver Files</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2624873">Samba and Printer Ports</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2624983">Avoiding Common Client Driver Misconfiguration</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2625020">The Imprints Toolset</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2625077">What Is Imprints?</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2625111">Creating Printer Driver Packages</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2625127">The Imprints Server</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2625144">The Installation Client</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2625278">Adding Network Printers without User Interaction</a></span></dt><dt><span class="sect1"><a href="classicalprinting.html#id2625549">The <code class="literal">addprinter</code> Command</a></span></dt><dt><span class="sect1"><a href="classicalprinting.html#id2625587">Migration of Classical Printing to Samba</a></span></dt><dt><span class="sect1"><a href="classicalprinting.html#id2625736">Publishing Printer Information in Active Directory or LDAP</a></span></dt><dt><span class="sect1"><a href="classicalprinting.html#id2625765">Common Errors</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2625771">I Give My Root Password but I Do Not Get Access</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2625812">My Print Jobs Get Spooled into the Spooling Directory, but Then Get Lost</a></span></dt></dl></dd></dl></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2615079"></a>Features and Benefits</h2></div></div></div><p>
    2 <a class="indexterm" name="id2615087"></a>
     1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 21. Classical Printing Support</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.74.0"><link rel="home" href="index.html" title="The Official Samba 3.2.x HOWTO and Reference Guide"><link rel="up" href="optional.html" title="Part III. Advanced Configuration"><link rel="prev" href="msdfs.html" title="Chapter 20. Hosting a Microsoft Distributed File System Tree"><link rel="next" href="CUPS-printing.html" title="Chapter 22. CUPS Printing Support"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 21. Classical Printing Support</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="msdfs.html">Prev</a> </td><th width="60%" align="center">Part III. Advanced Configuration</th><td width="20%" align="right"> <a accesskey="n" href="CUPS-printing.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="classicalprinting"></a>Chapter 21. Classical Printing Support</h2></div><div><div class="author"><h3 class="author"><span class="firstname">Kurt</span> <span class="orgname">Danka Deutschland GmbH</span> <span class="surname">Pfeifle</span></h3><div class="affiliation"><span class="orgname">Danka Deutschland GmbH<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:kpfeifle@danka.de">kpfeifle@danka.de</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">Gerald</span> <span class="othername">(Jerry)</span> <span class="orgname">Samba Team</span> <span class="surname">Carter</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:jerry@samba.org">jerry@samba.org</a>&gt;</code></p></div></div></div></div><div><div class="author"><h3 class="author"><span class="firstname">John</span> <span class="othername">H.</span> <span class="orgname">Samba Team</span> <span class="surname">Terpstra</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:jht@samba.org">jht@samba.org</a>&gt;</code></p></div></div></div></div><div><p class="pubdate">May 31, 2003</p></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="classicalprinting.html#id2622046">Features and Benefits</a></span></dt><dt><span class="sect1"><a href="classicalprinting.html#id2622269">Technical Introduction</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2622420">Client to Samba Print Job Processing</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2622480">Printing-Related Configuration Parameters</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2622580">Simple Print Configuration</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2622864">Verifying Configuration with testparm</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2623061">Rapid Configuration Validation</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2623461">Extended Printing Configuration</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2623916">Detailed Explanation Settings</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#cups-msrpc">Printing Developments Since Samba-2.2</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2626632">Point'n'Print Client Drivers on Samba Servers</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2626801">The Obsoleted [printer$] Section</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2626923">Creating the [print$] Share</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2627139">[print$] Stanza Parameters</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2627460">The [print$] Share Directory</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2627603">Installing Drivers into [print$]</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2627696">Add Printer Wizard Driver Installation</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#inst-rpc">Installing Print Drivers Using rpcclient</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2629628">Client Driver Installation Procedure</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2629645">First Client Driver Installation</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#prt-modeset">Setting Device Modes on New Printers</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2630216">Additional Client Driver Installation</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2630335">Always Make First Client Connection as root or printer admin</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2630508">Other Gotchas</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2630529">Setting Default Print Options for Client Drivers</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2630896">Supporting Large Numbers of Printers</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2631152">Adding New Printers with the Windows NT APW</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2631412">Error Message: Cannot connect under a different Name</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2631526">Take Care When Assembling Driver Files</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2631835">Samba and Printer Ports</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2631945">Avoiding Common Client Driver Misconfiguration</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2631982">The Imprints Toolset</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2632038">What Is Imprints?</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2632072">Creating Printer Driver Packages</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2632088">The Imprints Server</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2632106">The Installation Client</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2632239">Adding Network Printers without User Interaction</a></span></dt><dt><span class="sect1"><a href="classicalprinting.html#id2632512">The addprinter Command</a></span></dt><dt><span class="sect1"><a href="classicalprinting.html#id2632551">Migration of Classical Printing to Samba</a></span></dt><dt><span class="sect1"><a href="classicalprinting.html#id2632700">Publishing Printer Information in Active Directory or LDAP</a></span></dt><dt><span class="sect1"><a href="classicalprinting.html#id2632729">Common Errors</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2632735">I Give My Root Password but I Do Not Get Access</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2632776">My Print Jobs Get Spooled into the Spooling Directory, but Then Get Lost</a></span></dt></dl></dd></dl></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2622046"></a>Features and Benefits</h2></div></div></div><p>
     2<a class="indexterm" name="id2622054"></a>
    33Printing is often a mission-critical service for the users. Samba can provide this service reliably and
    44seamlessly for a client network consisting of Windows workstations.
    55</p><p>
    6 <a class="indexterm" name="id2615101"></a>
    7 <a class="indexterm" name="id2615108"></a>
    8 <a class="indexterm" name="id2615115"></a>
    9 <a class="indexterm" name="id2615122"></a>
    10 <a class="indexterm" name="id2615128"></a>
    11 <a class="indexterm" name="id2615136"></a>
    12 <a class="indexterm" name="id2615142"></a>
    13 <a class="indexterm" name="id2615149"></a>
    14 <a class="indexterm" name="id2615156"></a>
    15 <a class="indexterm" name="id2615163"></a>
    16 <a class="indexterm" name="id2615170"></a>
    17 <a class="indexterm" name="id2615177"></a>
    18 <a class="indexterm" name="id2615184"></a>
    19 <a class="indexterm" name="id2615191"></a>
     6<a class="indexterm" name="id2622067"></a>
     7<a class="indexterm" name="id2622074"></a>
     8<a class="indexterm" name="id2622081"></a>
     9<a class="indexterm" name="id2622088"></a>
     10<a class="indexterm" name="id2622095"></a>
     11<a class="indexterm" name="id2622102"></a>
     12<a class="indexterm" name="id2622109"></a>
     13<a class="indexterm" name="id2622116"></a>
     14<a class="indexterm" name="id2622122"></a>
     15<a class="indexterm" name="id2622129"></a>
     16<a class="indexterm" name="id2622136"></a>
     17<a class="indexterm" name="id2622143"></a>
     18<a class="indexterm" name="id2622150"></a>
     19<a class="indexterm" name="id2622157"></a>
    2020A Samba print service may be run on a standalone or domain member server, side by side with file serving
    2121functions, or on a dedicated print server.  It can be made as tightly or as loosely secured as needs dictate.
     
    3131supported by the newer Common UNIX Printing System (CUPS) as the print subsystem underneath the Samba hood.
    3232</p><p>
    33 <a class="indexterm" name="id2615242"></a>
    34 <a class="indexterm" name="id2615248"></a>
     33<a class="indexterm" name="id2622208"></a>
     34<a class="indexterm" name="id2622214"></a>
    3535This chapter outlines the fundamentals of Samba printing as implemented by the more traditional UNIX
    3636BSD- and System V-style printing systems. Much of the information in this chapter applies also to CUPS.  If
     
    3838do. For further information refer to <a class="link" href="CUPS-printing.html" title="Chapter 22. CUPS Printing Support">CUPS Printing Support</a>.
    3939</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
    40 <a class="indexterm" name="id2615274"></a>
    41 <a class="indexterm" name="id2615281"></a>
    42 <a class="indexterm" name="id2615288"></a>
     40<a class="indexterm" name="id2622240"></a>
     41<a class="indexterm" name="id2622247"></a>
     42<a class="indexterm" name="id2622254"></a>
    4343Most of the following examples have been verified on Windows XP Professional clients. Where this document
    4444describes the responses to commands given, bear in mind that Windows 200x/XP clients are quite similar but may
    4545differ in minor details. Windows NT4 is somewhat different again.
    46 </p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2615303"></a>Technical Introduction</h2></div></div></div><p>
    47 <a class="indexterm" name="id2615311"></a>
    48 <a class="indexterm" name="id2615318"></a>
    49 <a class="indexterm" name="id2615324"></a>
     46</p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2622269"></a>Technical Introduction</h2></div></div></div><p>
     47<a class="indexterm" name="id2622277"></a>
     48<a class="indexterm" name="id2622284"></a>
     49<a class="indexterm" name="id2622291"></a>
    5050Samba's printing support always relies on the installed print subsystem of the UNIX OS it runs on. Samba is a
    5151<code class="literal">middleman.</code> It takes print files from Windows (or other SMB) clients and passes them to the real
     
    5555features and are accessed differently.
    5656</p><p>
    57 <a class="indexterm" name="id2615350"></a>
    58 <a class="indexterm" name="id2615357"></a>
     57<a class="indexterm" name="id2622316"></a>
     58<a class="indexterm" name="id2622323"></a>
    5959This chapter deals with the traditional way of UNIX printing. The next chapter covers in great detail the more
    6060modern CUPS.
    6161</p><div class="important" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Important</h3><p>
    62 <a class="indexterm" name="id2615370"></a>
     62<a class="indexterm" name="id2622336"></a>
    6363CUPS users, be warned: do not just jump on to the next chapter. You might miss important information only found here!
    6464</p></div><p>
    65 <a class="indexterm" name="id2615382"></a>
    66 <a class="indexterm" name="id2615389"></a>
    67 <a class="indexterm" name="id2615396"></a>
    68 <a class="indexterm" name="id2615403"></a>
     65<a class="indexterm" name="id2622348"></a>
     66<a class="indexterm" name="id2622355"></a>
     67<a class="indexterm" name="id2622362"></a>
     68<a class="indexterm" name="id2622369"></a>
    6969It is apparent from postings on the Samba mailing list that print configuration is one of the most problematic
    7070aspects of Samba administration today. Many new Samba administrators have the impression that Samba performs
     
    7272do any form of print filtering.
    7373</p><p>
    74 <a class="indexterm" name="id2615419"></a>
    75 <a class="indexterm" name="id2615426"></a>
    76 <a class="indexterm" name="id2615433"></a>
    77 <a class="indexterm" name="id2615440"></a>
     74<a class="indexterm" name="id2622386"></a>
     75<a class="indexterm" name="id2622392"></a>
     76<a class="indexterm" name="id2622399"></a>
     77<a class="indexterm" name="id2622406"></a>
    7878Samba obtains from its clients a data stream (print job) that it spools to a local spool area. When the entire
    7979print job has been received, Samba invokes a local UNIX/Linux print command and passes the spooled file to it.
    8080It is up to the local system printing subsystems to correctly process the print job and to submit it to the
    8181printer.
    82 </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2615454"></a>Client to Samba Print Job Processing</h3></div></div></div><p>
     82</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2622420"></a>Client to Samba Print Job Processing</h3></div></div></div><p>
    8383Successful printing from a Windows client via a Samba print server to a UNIX
    8484printer involves six (potentially seven) stages:
     
    8787        to the UNIX print subsystem's spooling area.</p></li><li><p>The UNIX print subsystem processes the print job.</p></li><li><p>The print file may need to be explicitly deleted
    8888        from the Samba spooling area. This item depends on your print spooler
    89         configuration settings.</p></li></ol></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2615513"></a>Printing-Related Configuration Parameters</h3></div></div></div><p>
    90 <a class="indexterm" name="id2615522"></a>
    91 <a class="indexterm" name="id2615529"></a>
    92 <a class="indexterm" name="id2615536"></a>
     89        configuration settings.</p></li></ol></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2622480"></a>Printing-Related Configuration Parameters</h3></div></div></div><p>
     90<a class="indexterm" name="id2622488"></a>
     91<a class="indexterm" name="id2622495"></a>
     92<a class="indexterm" name="id2622502"></a>
    9393There are a number of configuration parameters to control Samba's printing behavior. Please refer to the man
    9494page for <code class="filename">smb.conf</code> for an overview of these. As with other parameters, there are global-level (tagged with a
     
    104104                setting defined for the same parameter, thus overriding the
    105105                global default).
    106                 </p></dd></dl></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2615614"></a>Simple Print Configuration</h2></div></div></div><p>
    107 <a class="indexterm" name="id2615622"></a>
    108 <a class="indexterm" name="id2615629"></a>
    109 <a class="indexterm" name="id2615636"></a>
    110 <a class="indexterm" name="id2615643"></a>
     106                </p></dd></dl></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2622580"></a>Simple Print Configuration</h2></div></div></div><p>
     107<a class="indexterm" name="id2622588"></a>
     108<a class="indexterm" name="id2622595"></a>
     109<a class="indexterm" name="id2622602"></a>
     110<a class="indexterm" name="id2622609"></a>
    111111<a class="link" href="classicalprinting.html#simpleprc" title="Example 21.1. Simple Configuration with BSD Printing">Simple Configuration with BSD Printing</a> shows a simple printing configuration.
    112112If you compare this with your own, you may find additional parameters that have been preconfigured by your OS
     
    114114parameters.  However, in many environments these are enough to provide a valid <code class="filename">smb.conf</code> file that enables
    115115all clients to print.
    116 </p><div class="example"><a name="simpleprc"></a><p class="title"><b>Example 21.1. Simple Configuration with BSD Printing</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id2615695"></a><em class="parameter"><code>printing = bsd</code></em></td></tr><tr><td><a class="indexterm" name="id2615706"></a><em class="parameter"><code>load printers = yes</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[printers]</code></em></td></tr><tr><td><a class="indexterm" name="id2615727"></a><em class="parameter"><code>path = /var/spool/samba</code></em></td></tr><tr><td><a class="indexterm" name="id2615739"></a><em class="parameter"><code>printable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2615750"></a><em class="parameter"><code>public = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2615762"></a><em class="parameter"><code>writable = no</code></em></td></tr></table></div></div><br class="example-break"><p>
    117 <a class="indexterm" name="id2615777"></a>
    118 <a class="indexterm" name="id2615784"></a>
    119 <a class="indexterm" name="id2615791"></a>
     116</p><div class="example"><a name="simpleprc"></a><p class="title"><b>Example 21.1. Simple Configuration with BSD Printing</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id2622661"></a><em class="parameter"><code>printing = bsd</code></em></td></tr><tr><td><a class="indexterm" name="id2622672"></a><em class="parameter"><code>load printers = yes</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[printers]</code></em></td></tr><tr><td><a class="indexterm" name="id2622693"></a><em class="parameter"><code>path = /var/spool/samba</code></em></td></tr><tr><td><a class="indexterm" name="id2622705"></a><em class="parameter"><code>printable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2622716"></a><em class="parameter"><code>public = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2622728"></a><em class="parameter"><code>writable = no</code></em></td></tr></table></div></div><br class="example-break"><p>
     117<a class="indexterm" name="id2622743"></a>
     118<a class="indexterm" name="id2622750"></a>
     119<a class="indexterm" name="id2622757"></a>
    120120This is only an example configuration. Samba assigns default values to all configuration parameters. The
    121121defaults are conservative and sensible. When a parameter is specified in the <code class="filename">smb.conf</code> file, this overwrites
     
    125125pager program.
    126126</p><p> 
    127 <a class="indexterm" name="id2615832"></a>
    128 <a class="indexterm" name="id2615840"></a>
    129 <a class="indexterm" name="id2615847"></a>
     127<a class="indexterm" name="id2622799"></a>
     128<a class="indexterm" name="id2622806"></a>
     129<a class="indexterm" name="id2622813"></a>
    130130The syntax for the configuration file is easy to grasp. You should know that  is not very picky about its
    131131syntax. As has been explained elsewhere in this book, Samba tolerates some spelling errors (such as
    132 <a class="link" href="smb.conf.5.html#BROWSEABLE">browseable</a> instead of <a class="link" href="smb.conf.5.html#BROWSABLE">browsable</a>), and spelling is
     132<a class="link" href="smb.conf.5.html#BROWSEABLE" target="_top">browseable</a> instead of <a class="link" href="smb.conf.5.html#BROWSABLE" target="_top">browsable</a>), and spelling is
    133133case-insensitive. It is permissible to use <em class="parameter"><code>Yes/No</code></em> or <em class="parameter"><code>True/False</code></em>
    134134for Boolean settings. Lists of names may be separated by commas, spaces, or tabs.
    135 </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2615897"></a>Verifying Configuration with <code class="literal">testparm</code></h3></div></div></div><p>
    136 <a class="indexterm" name="id2615910"></a>
    137 <a class="indexterm" name="id2615917"></a>
    138 <a class="indexterm" name="id2615924"></a>
    139 <a class="indexterm" name="id2615930"></a>
    140 <a class="indexterm" name="id2615937"></a>
    141 <a class="indexterm" name="id2615944"></a>
    142 <a class="indexterm" name="id2615951"></a>
    143 <a class="indexterm" name="id2615958"></a>
    144 <a class="indexterm" name="id2615964"></a>
    145 <a class="indexterm" name="id2615971"></a>
    146 <a class="indexterm" name="id2615978"></a>
     135</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2622864"></a>Verifying Configuration with <code class="literal">testparm</code></h3></div></div></div><p>
     136<a class="indexterm" name="id2622877"></a>
     137<a class="indexterm" name="id2622884"></a>
     138<a class="indexterm" name="id2622891"></a>
     139<a class="indexterm" name="id2622897"></a>
     140<a class="indexterm" name="id2622904"></a>
     141<a class="indexterm" name="id2622911"></a>
     142<a class="indexterm" name="id2622918"></a>
     143<a class="indexterm" name="id2622925"></a>
     144<a class="indexterm" name="id2622931"></a>
     145<a class="indexterm" name="id2622938"></a>
     146<a class="indexterm" name="id2622945"></a>
    147147To see all (or at least most) printing-related settings in Samba, including the implicitly used ones, try the
    148148command outlined below. This command greps for all occurrences of <code class="constant">lp</code>,
     
    195195&#8220;<span class="quote">-v</span>&#8221; switch, it only shows you the settings actually written into! To see the complete
    196196configuration used, add the &#8220;<span class="quote">-v</span>&#8221; parameter to testparm.
    197 </p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2616094"></a>Rapid Configuration Validation</h3></div></div></div><p>
    198 <a class="indexterm" name="id2616102"></a>
    199 <a class="indexterm" name="id2616109"></a>
    200 <a class="indexterm" name="id2616116"></a>
    201 <a class="indexterm" name="id2616123"></a>
     197</p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2623061"></a>Rapid Configuration Validation</h3></div></div></div><p>
     198<a class="indexterm" name="id2623070"></a>
     199<a class="indexterm" name="id2623077"></a>
     200<a class="indexterm" name="id2623084"></a>
     201<a class="indexterm" name="id2623090"></a>
    202202Should you need to troubleshoot at any stage, please always come back to this point first and verify if
    203203<code class="literal">testparm</code> shows the parameters you expect. To give you a warning from personal experience,
    204 try to just comment out the <a class="link" href="smb.conf.5.html#LOADPRINTERS">load printers</a> parameter. If your 2.2.x system behaves like
     204try to just comment out the <a class="link" href="smb.conf.5.html#LOADPRINTERS" target="_top">load printers</a> parameter. If your 2.2.x system behaves like
    205205mine, you'll see this:
    206206</p><pre class="screen">
     
    212212        load printers = Yes
    213213</pre><p>
    214 <a class="indexterm" name="id2616179"></a>
    215 <a class="indexterm" name="id2616186"></a>
     214<a class="indexterm" name="id2623146"></a>
     215<a class="indexterm" name="id2623153"></a>
    216216I assumed that commenting out of this setting should prevent Samba from
    217217publishing my printers, but it still did. It took some time to figure out
     
    227227        load printers = No
    228228</pre><p>
    229 <a class="indexterm" name="id2616230"></a>
    230 Only when the parameter is explicitly set to <a class="link" href="smb.conf.5.html#LOADPRINTERS">load printers = No</a> would
     229<a class="indexterm" name="id2623197"></a>
     230Only when the parameter is explicitly set to <a class="link" href="smb.conf.5.html#LOADPRINTERS" target="_top">load printers = No</a> would
    231231Samba conform with my intentions. So, my strong advice is:
    232232</p><div class="itemizedlist"><ul type="disc"><li><p>Never rely on commented-out parameters.</p></li><li><p>Always set parameters explicitly as you intend them to
     
    238238        [printers]
    239239</pre><p>
    240 <a class="indexterm" name="id2616298"></a>
    241 <a class="indexterm" name="id2616304"></a>
     240<a class="indexterm" name="id2623265"></a>
     241<a class="indexterm" name="id2623272"></a>
    242242This example should show that you can use <code class="literal">testparm</code> to test any Samba configuration file.
    243243Actually, we encourage you <span class="emphasis"><em>not</em></span> to change your working system (unless you know exactly
     
    277277<code class="literal">testparm</code> issued two warnings:
    278278</p><div class="itemizedlist"><ul type="disc"><li><p>We did not specify the <em class="parameter"><code>[printers]</code></em> section as printable.</p></li><li><p>We did not tell Samba which spool directory to use.</p></li></ul></div><p>
    279 <a class="indexterm" name="id2616409"></a>
    280 <a class="indexterm" name="id2616416"></a>
    281 <a class="indexterm" name="id2616421"></a>
    282 <a class="indexterm" name="id2616427"></a>
     279<a class="indexterm" name="id2623376"></a>
     280<a class="indexterm" name="id2623383"></a>
     281<a class="indexterm" name="id2623389"></a>
     282<a class="indexterm" name="id2623394"></a>
    283283However, this was not fatal, and Samba will default to values that will work. Please, do not rely on this and
    284284do not use this example. This was included to encourage you to be careful to design and specify your setup to
     
    289289clearly says: <code class="literal">Internal whitespace in a parameter value is retained verbatim.</code> This means
    290290that a line consisting of, for example,
    291 </p><table class="simplelist" border="0" summary="Simple list"><tr><td># This defines LPRng as the printing system</td></tr><tr><td><a class="indexterm" name="id2616467"></a><em class="parameter"><code>printing =  lprng</code></em></td></tr></table><p>
     291</p><table class="simplelist" border="0" summary="Simple list"><tr><td># This defines LPRng as the printing system</td></tr><tr><td><a class="indexterm" name="id2623434"></a><em class="parameter"><code>printing =  lprng</code></em></td></tr></table><p>
    292292</p><p>
    293293will regard the whole of the string after the <code class="literal">=</code> sign as the value you want to define. This
    294294is an invalid value that will be ignored, and a default value will be used in its place.
    295 </p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2616494"></a>Extended Printing Configuration</h2></div></div></div><p>
    296 <a class="indexterm" name="id2616502"></a>
    297 <a class="indexterm" name="id2616509"></a>
    298 <a class="indexterm" name="id2616516"></a>
    299 <a class="indexterm" name="id2616522"></a>
     295</p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2623461"></a>Extended Printing Configuration</h2></div></div></div><p>
     296<a class="indexterm" name="id2623469"></a>
     297<a class="indexterm" name="id2623476"></a>
     298<a class="indexterm" name="id2623483"></a>
     299<a class="indexterm" name="id2623490"></a>
    300300<a class="link" href="classicalprinting.html#extbsdpr" title="Example 21.2. Extended BSD Printing Configuration">Extended BSD Printing Configuration</a> shows a more verbose configuration for
    301301print-related settings in a BSD-style printing environment. What follows is a discussion and explanation of
     
    305305are set by default. You could use a much leaner <code class="filename">smb.conf</code> file, or you can use <code class="literal">testparm</code> or
    306306<code class="literal">SWAT</code> to optimize the <code class="filename">smb.conf</code> file to remove all parameters that are set at default.
    307 </p><div class="example"><a name="extbsdpr"></a><p class="title"><b>Example 21.2. Extended BSD Printing Configuration</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id2616596"></a><em class="parameter"><code>printing = bsd</code></em></td></tr><tr><td><a class="indexterm" name="id2616608"></a><em class="parameter"><code>load printers = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2616620"></a><em class="parameter"><code>show add printer wizard = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2616632"></a><em class="parameter"><code>printcap name = /etc/printcap</code></em></td></tr><tr><td><a class="indexterm" name="id2616644"></a><em class="parameter"><code>printer admin = @ntadmin, root</code></em></td></tr><tr><td><a class="indexterm" name="id2616656"></a><em class="parameter"><code>max print jobs = 100</code></em></td></tr><tr><td><a class="indexterm" name="id2616668"></a><em class="parameter"><code>lpq cache time = 20</code></em></td></tr><tr><td><a class="indexterm" name="id2616679"></a><em class="parameter"><code>use client driver = no</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[printers]</code></em></td></tr><tr><td><a class="indexterm" name="id2616700"></a><em class="parameter"><code>comment = All Printers</code></em></td></tr><tr><td><a class="indexterm" name="id2616712"></a><em class="parameter"><code>printable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2616724"></a><em class="parameter"><code>path = /var/spool/samba</code></em></td></tr><tr><td><a class="indexterm" name="id2616735"></a><em class="parameter"><code>browseable = no</code></em></td></tr><tr><td><a class="indexterm" name="id2616747"></a><em class="parameter"><code>guest ok = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2616758"></a><em class="parameter"><code>public = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2616770"></a><em class="parameter"><code>read only = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2616782"></a><em class="parameter"><code>writable = no       </code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[my_printer_name]</code></em></td></tr><tr><td><a class="indexterm" name="id2616802"></a><em class="parameter"><code>comment = Printer with Restricted Access</code></em></td></tr><tr><td><a class="indexterm" name="id2616814"></a><em class="parameter"><code>path = /var/spool/samba_my_printer</code></em></td></tr><tr><td><a class="indexterm" name="id2616826"></a><em class="parameter"><code>printer admin = kurt</code></em></td></tr><tr><td><a class="indexterm" name="id2616838"></a><em class="parameter"><code>browseable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2616850"></a><em class="parameter"><code>printable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2616861"></a><em class="parameter"><code>writable = no</code></em></td></tr><tr><td><a class="indexterm" name="id2616873"></a><em class="parameter"><code>hosts allow = 0.0.0.0</code></em></td></tr><tr><td><a class="indexterm" name="id2616885"></a><em class="parameter"><code>hosts deny = turbo_xp, 10.160.50.23, 10.160.51.60</code></em></td></tr><tr><td><a class="indexterm" name="id2616897"></a><em class="parameter"><code>guest ok = no</code></em></td></tr></table></div></div><br class="example-break"><p>
    308 <a class="indexterm" name="id2616911"></a>
    309 <a class="indexterm" name="id2616916"></a>
    310 <a class="indexterm" name="id2616922"></a>
     307</p><div class="example"><a name="extbsdpr"></a><p class="title"><b>Example 21.2. Extended BSD Printing Configuration</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id2623564"></a><em class="parameter"><code>printing = bsd</code></em></td></tr><tr><td><a class="indexterm" name="id2623576"></a><em class="parameter"><code>load printers = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623587"></a><em class="parameter"><code>show add printer wizard = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623600"></a><em class="parameter"><code>printcap name = /etc/printcap</code></em></td></tr><tr><td><a class="indexterm" name="id2623612"></a><em class="parameter"><code>printer admin = @ntadmin, root</code></em></td></tr><tr><td><a class="indexterm" name="id2623624"></a><em class="parameter"><code>max print jobs = 100</code></em></td></tr><tr><td><a class="indexterm" name="id2623635"></a><em class="parameter"><code>lpq cache time = 20</code></em></td></tr><tr><td><a class="indexterm" name="id2623647"></a><em class="parameter"><code>use client driver = no</code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[printers]</code></em></td></tr><tr><td><a class="indexterm" name="id2623668"></a><em class="parameter"><code>comment = All Printers</code></em></td></tr><tr><td><a class="indexterm" name="id2623680"></a><em class="parameter"><code>printable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623691"></a><em class="parameter"><code>path = /var/spool/samba</code></em></td></tr><tr><td><a class="indexterm" name="id2623703"></a><em class="parameter"><code>browseable = no</code></em></td></tr><tr><td><a class="indexterm" name="id2623715"></a><em class="parameter"><code>guest ok = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623726"></a><em class="parameter"><code>public = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623738"></a><em class="parameter"><code>read only = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623749"></a><em class="parameter"><code>writable = no       </code></em></td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[my_printer_name]</code></em></td></tr><tr><td><a class="indexterm" name="id2623770"></a><em class="parameter"><code>comment = Printer with Restricted Access</code></em></td></tr><tr><td><a class="indexterm" name="id2623782"></a><em class="parameter"><code>path = /var/spool/samba_my_printer</code></em></td></tr><tr><td><a class="indexterm" name="id2623794"></a><em class="parameter"><code>printer admin = kurt</code></em></td></tr><tr><td><a class="indexterm" name="id2623806"></a><em class="parameter"><code>browseable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623818"></a><em class="parameter"><code>printable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623829"></a><em class="parameter"><code>writable = no</code></em></td></tr><tr><td><a class="indexterm" name="id2623841"></a><em class="parameter"><code>hosts allow = 0.0.0.0</code></em></td></tr><tr><td><a class="indexterm" name="id2623852"></a><em class="parameter"><code>hosts deny = turbo_xp, 10.160.50.23, 10.160.51.60</code></em></td></tr><tr><td><a class="indexterm" name="id2623865"></a><em class="parameter"><code>guest ok = no</code></em></td></tr></table></div></div><br class="example-break"><p>
     308<a class="indexterm" name="id2623878"></a>
     309<a class="indexterm" name="id2623884"></a>
     310<a class="indexterm" name="id2623889"></a>
    311311This is an example configuration. You may not find all the settings that are in the configuration file that
    312312was provided by the OS vendor. Samba configuration parameters, if not explicitly set, default to a sensible
    313313value.  To see all settings, as <code class="constant">root</code> use the <code class="literal">testparm</code> utility.
    314314<code class="literal">testparm</code> gives warnings for misconfigured settings.
    315 </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2616949"></a>Detailed Explanation Settings</h3></div></div></div><p>
     315</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2623916"></a>Detailed Explanation Settings</h3></div></div></div><p>
    316316The following is a discussion of the settings from <a class="link" href="classicalprinting.html#extbsdpr" title="Example 21.2. Extended BSD Printing Configuration">Extended BSD Printing
    317317Configuration</a> <a class="link" href="classicalprinting.html#extbsdpr" title="Example 21.2. Extended BSD Printing Configuration">Extended BSD Printing Configuration</a>.
    318 </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2616973"></a>The [global] Section</h4></div></div></div><p>
    319 <a class="indexterm" name="id2616981"></a>
    320 <a class="indexterm" name="id2616988"></a>
    321 <a class="indexterm" name="id2616995"></a>
    322 <a class="indexterm" name="id2617002"></a>
     318</p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2623941"></a>The [global] Section</h4></div></div></div><p>
     319<a class="indexterm" name="id2623949"></a>
     320<a class="indexterm" name="id2623956"></a>
     321<a class="indexterm" name="id2623963"></a>
     322<a class="indexterm" name="id2623970"></a>
    323323The <em class="parameter"><code>[global]</code></em> section is one of four special sections (along with <em class="parameter"><code>[homes]</code></em>, <em class="parameter"><code>[printers]</code></em>, and <em class="parameter"><code>[print$]</code></em>). The
    324324<em class="parameter"><code>[global]</code></em> contains all parameters that apply to the server as a whole. It is the place
     
    327327setting the same value repeatedly. (Within each individual section or share, you may, however, override these
    328328globally set share settings and specify other values).
    329 </p><div class="variablelist"><dl><dt><span class="term"><a class="link" href="smb.conf.5.html#PRINTING">printing = bsd </a></span></dt><dd><p>
    330 <a class="indexterm" name="id2617069"></a>
    331 <a class="indexterm" name="id2617076"></a>
    332 <a class="indexterm" name="id2617082"></a>
    333 <a class="indexterm" name="id2617089"></a>
    334 <a class="indexterm" name="id2617096"></a>
    335 <a class="indexterm" name="id2617102"></a>
    336 <a class="indexterm" name="id2617109"></a>
    337 <a class="indexterm" name="id2617116"></a>
    338 <a class="indexterm" name="id2617123"></a>
    339 <a class="indexterm" name="id2617129"></a>
    340 <a class="indexterm" name="id2617136"></a>
    341 <a class="indexterm" name="id2617143"></a>
     329</p><div class="variablelist"><dl><dt><span class="term"><a class="link" href="smb.conf.5.html#PRINTING" target="_top">printing = bsd </a></span></dt><dd><p>
     330<a class="indexterm" name="id2624037"></a>
     331<a class="indexterm" name="id2624044"></a>
     332<a class="indexterm" name="id2624050"></a>
     333<a class="indexterm" name="id2624057"></a>
     334<a class="indexterm" name="id2624064"></a>
     335<a class="indexterm" name="id2624071"></a>
     336<a class="indexterm" name="id2624078"></a>
     337<a class="indexterm" name="id2624084"></a>
     338<a class="indexterm" name="id2624091"></a>
     339<a class="indexterm" name="id2624098"></a>
     340<a class="indexterm" name="id2624105"></a>
     341<a class="indexterm" name="id2624112"></a>
    342342                Causes Samba to use default print commands applicable for the BSD (also known as RFC 1179 style or LPR/LPD)
    343343                printing system. In general, the <em class="parameter"><code>printing</code></em> parameter informs Samba about the print
    344344                subsystem it should expect. Samba supports CUPS, LPD, LPRNG, SYSV, HPUX, AIX, QNX, and PLP. Each of these
    345                 systems defaults to a different <a class="link" href="smb.conf.5.html#PRINTCOMMAND">print command</a> (and other queue control commands).
     345                systems defaults to a different <a class="link" href="smb.conf.5.html#PRINTCOMMAND" target="_top">print command</a> (and other queue control commands).
    346346                </p><div class="caution" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Caution</h3><p>
    347 <a class="indexterm" name="id2617179"></a>
    348 <a class="indexterm" name="id2617186"></a>
    349                 The <a class="link" href="smb.conf.5.html#PRINTING">printing</a> parameter is normally a service-level parameter. Since it is included
     347<a class="indexterm" name="id2624147"></a>
     348<a class="indexterm" name="id2624154"></a>
     349                The <a class="link" href="smb.conf.5.html#PRINTING" target="_top">printing</a> parameter is normally a service-level parameter. Since it is included
    350350                here in the <em class="parameter"><code>[global]</code></em> section, it will take effect for all printer shares that are not
    351351                defined differently. Samba-3 no longer supports the SOFTQ printing system.
    352                 </p></div></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#LOADPRINTERS">load printers = yes </a></span></dt><dd><p>
    353 <a class="indexterm" name="id2617234"></a>
    354 <a class="indexterm" name="id2617240"></a>
    355 <a class="indexterm" name="id2617246"></a>
    356 <a class="indexterm" name="id2617253"></a>
     352                </p></div></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#LOADPRINTERS" target="_top">load printers = yes </a></span></dt><dd><p>
     353<a class="indexterm" name="id2624202"></a>
     354<a class="indexterm" name="id2624208"></a>
     355<a class="indexterm" name="id2624215"></a>
     356<a class="indexterm" name="id2624222"></a>
    357357                Tells Samba to create automatically all available printer shares. Available printer shares are discovered by
    358358                scanning the printcap file. All created printer shares are also loaded for browsing. If you use this
     
    361361                <em class="parameter"><code>load printers = no</code></em> setting will allow you to specify each UNIX printer you want to
    362362                share separately, leaving out some you do not want to be publicly visible and available).
    363                 </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#SHOWADDPRINTERWIZARD">show add printer wizard = yes </a></span></dt><dd><p>
    364 <a class="indexterm" name="id2617302"></a>
    365 <a class="indexterm" name="id2617308"></a>
    366 <a class="indexterm" name="id2617315"></a>
    367 <a class="indexterm" name="id2617322"></a>
    368 <a class="indexterm" name="id2617328"></a>
     363                </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#SHOWADDPRINTERWIZARD" target="_top">show add printer wizard = yes </a></span></dt><dd><p>
     364<a class="indexterm" name="id2624270"></a>
     365<a class="indexterm" name="id2624277"></a>
     366<a class="indexterm" name="id2624284"></a>
     367<a class="indexterm" name="id2624290"></a>
     368<a class="indexterm" name="id2624297"></a>
    369369                Setting is normally enabled by default (even if the parameter is not specified in <code class="filename">smb.conf</code>).  It causes the
    370370                <span class="guiicon">Add Printer Wizard</span> icon to appear in the <span class="guiicon">Printers</span> folder of the Samba
     
    374374                the <em class="parameter"><code>[print$]</code></em> share and associate it with a printer (if the respective queue exists
    375375                before the action), or exchange a printer's driver for any other previously uploaded driver.
    376                 </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#MAXPRINTJOBS">max print jobs = 100 </a></span></dt><dd><p>
    377 <a class="indexterm" name="id2617411"></a>
     376                </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#MAXPRINTJOBS" target="_top">max print jobs = 100 </a></span></dt><dd><p>
     377<a class="indexterm" name="id2624379"></a>
    378378                Sets the upper limit to 100 print jobs being active on the Samba server at any one time. Should a client
    379379                submit a job that exceeds this number, a "no more space available on server" type of error message will be
    380380                returned by Samba to the client. A setting of zero (the default) means there is <span class="emphasis"><em>no</em></span> limit
    381381                at all.
    382                 </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#PRINTCAPNAME">printcap name = /etc/printcap </a></span></dt><dd><p>
    383 <a class="indexterm" name="id2617447"></a>
    384 <a class="indexterm" name="id2617453"></a>
    385 <a class="indexterm" name="id2617460"></a>
     382                </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#PRINTCAPNAME" target="_top">printcap name = /etc/printcap </a></span></dt><dd><p>
     383<a class="indexterm" name="id2624415"></a>
     384<a class="indexterm" name="id2624422"></a>
     385<a class="indexterm" name="id2624428"></a>
    386386                Tells Samba where to look for a list of available printer names. Where CUPS is used, make sure that a printcap
    387387                file is written. This is controlled by the <code class="constant">Printcap</code> directive in the
    388388                <code class="filename">cupsd.conf</code> file.
    389         </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#PRINTERADMIN">printer admin = @ntadmin </a></span></dt><dd><p>
    390 <a class="indexterm" name="id2617498"></a>
    391 <a class="indexterm" name="id2617504"></a>
    392 <a class="indexterm" name="id2617511"></a>
    393 <a class="indexterm" name="id2617517"></a>
     389        </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#PRINTERADMIN" target="_top">printer admin = @ntadmin </a></span></dt><dd><p>
     390<a class="indexterm" name="id2624466"></a>
     391<a class="indexterm" name="id2624473"></a>
     392<a class="indexterm" name="id2624479"></a>
     393<a class="indexterm" name="id2624486"></a>
    394394                Members of the ntadmin group should be able to add drivers and set printer properties
    395395                (<code class="constant">ntadmin</code> is only an example name; it needs to be a valid UNIX group name); root is
    396                 implicitly always a <a class="link" href="smb.conf.5.html#PRINTERADMIN">printer admin</a>. The <code class="literal">@</code> sign precedes group names
     396                implicitly always a <a class="link" href="smb.conf.5.html#PRINTERADMIN" target="_top">printer admin</a>. The <code class="literal">@</code> sign precedes group names
    397397                in the <code class="filename">/etc/group</code>. A printer admin can do anything to printers via the remote
    398398                administration interfaces offered by MS-RPC (see <a class="link" href="classicalprinting.html#cups-msrpc" title="Printing Developments Since Samba-2.2">Printing Developments Since
    399                 Samba-2.2</a>).  In larger installations, the <a class="link" href="smb.conf.5.html#PRINTERADMIN">printer admin</a> parameter is normally a
     399                Samba-2.2</a>).  In larger installations, the <a class="link" href="smb.conf.5.html#PRINTERADMIN" target="_top">printer admin</a> parameter is normally a
    400400                per-share parameter. This permits different groups to administer each printer share.
    401         </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#LPQCACHETIME">lpq cache time = 20 </a></span></dt><dd><p>
    402 <a class="indexterm" name="id2617599"></a>
    403 <a class="indexterm" name="id2617605"></a>
     401        </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#LPQCACHETIME" target="_top">lpq cache time = 20 </a></span></dt><dd><p>
     402<a class="indexterm" name="id2624567"></a>
     403<a class="indexterm" name="id2624573"></a>
    404404                Controls the cache time for the results of the lpq command. It prevents the lpq command being called too often
    405405                and reduces the load on a heavily used print server.
    406         </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#USECLIENTDRIVER">use client driver = no </a></span></dt><dd><p>
    407 <a class="indexterm" name="id2617634"></a>
     406        </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#USECLIENTDRIVER" target="_top">use client driver = no </a></span></dt><dd><p>
     407<a class="indexterm" name="id2624602"></a>
    408408                If set to <code class="constant">yes</code>, only takes effect for Windows NT/200x/XP clients (and not for Win
    409409                95/98/ME). Its default value is <code class="constant">No</code> (or <code class="constant">False</code>).  It must
     
    412412                explanations, see the <code class="filename">smb.conf</code> man page.
    413413        </p></dd></dl></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="ptrsect"></a>The [printers] Section</h4></div></div></div><p>
    414 <a class="indexterm" name="id2617686"></a>
    415 <a class="indexterm" name="id2617692"></a>
     414<a class="indexterm" name="id2624654"></a>
     415<a class="indexterm" name="id2624661"></a>
    416416The printers section is the second special section. If a section with this name appears in the <code class="filename">smb.conf</code>,
    417417users are able to connect to any printer specified in the Samba host's printcap file, because Samba on startup
     
    420420settings that should apply as default to all printers. (For more details, see the <code class="filename">smb.conf</code> man page.)
    421421Settings inside this container must be share-level parameters.
    422 </p><div class="variablelist"><dl><dt><span class="term"><a class="link" href="smb.conf.5.html#COMMENT">comment = All printers </a></span></dt><dd><p>
    423                 The <a class="link" href="smb.conf.5.html#COMMENT">comment</a> is shown next to the share if
     422</p><div class="variablelist"><dl><dt><span class="term"><a class="link" href="smb.conf.5.html#COMMENT" target="_top">comment = All printers </a></span></dt><dd><p>
     423                The <a class="link" href="smb.conf.5.html#COMMENT" target="_top">comment</a> is shown next to the share if
    424424                a client queries the server, either via <span class="guiicon">Network Neighborhood</span> or with
    425425                the <code class="literal">net view</code> command, to list available shares.
    426                 </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#PRINTABLE">printable = yes </a></span></dt><dd><p>
     426                </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#PRINTABLE" target="_top">printable = yes </a></span></dt><dd><p>
    427427                The <em class="parameter"><code>[printers]</code></em> service <span class="emphasis"><em>must</em></span>
    428428                be declared as printable. If you specify otherwise, smbd will refuse to load  at
    429429                startup. This parameter allows connected clients to open, write to, and submit spool files
    430                 into the directory specified with the <a class="link" href="smb.conf.5.html#PATH">path</a>
     430                into the directory specified with the <a class="link" href="smb.conf.5.html#PATH" target="_top">path</a>
    431431                parameter for this service. It is used by Samba to differentiate printer shares from
    432432                file shares.
    433                 </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#PATH">path = /var/spool/samba </a></span></dt><dd><p>
     433                </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#PATH" target="_top">path = /var/spool/samba </a></span></dt><dd><p>
    434434                Must point to a directory used by Samba to spool incoming print files. <span class="emphasis"><em>It
    435435                must not be the same as the spool directory specified in the configuration of your UNIX
    436436                print subsystem!</em></span> The path typically points to a directory that is world
    437437                writable, with the <span class="emphasis"><em>sticky</em></span> bit set to it.
    438                 </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#BROWSEABLE">browseable = no </a></span></dt><dd><p>
     438                </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#BROWSEABLE" target="_top">browseable = no </a></span></dt><dd><p>
    439439                Is always set to <code class="constant">no</code> if
    440                 <a class="link" href="smb.conf.5.html#PRINTABLE">printable = yes</a>. It makes
     440                <a class="link" href="smb.conf.5.html#PRINTABLE" target="_top">printable = yes</a>. It makes
    441441                the <em class="parameter"><code>[printer]</code></em> share itself invisible in the list of
    442442                available shares in a <code class="literal">net view</code> command or in the Explorer browse
    443443                list. (You will of course see the individual printers.)
    444                 </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#GUESTOK">guest ok = yes </a></span></dt><dd><p>
     444                </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#GUESTOK" target="_top">guest ok = yes </a></span></dt><dd><p>
    445445                If this parameter is set to <code class="constant">yes</code>, no password is required to
    446446                connect to the printer's service. Access will be granted with the privileges of the
    447                 <a class="link" href="smb.conf.5.html#GUESTACCOUNT">guest account</a>. On many systems the guest
     447                <a class="link" href="smb.conf.5.html#GUESTACCOUNT" target="_top">guest account</a>. On many systems the guest
    448448                account will map to a user named "nobody." This user will usually be found
    449449                in the UNIX passwd file with an empty password, but with no valid UNIX login. On some
     
    453453                </p><p>
    454454                <strong class="userinput"><code>lpr -P printername /etc/motd</code></strong>
    455                 </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#PUBLIC">public = yes </a></span></dt><dd><p>
    456                 Is a synonym for <a class="link" href="smb.conf.5.html#GUESTOK">guest ok = yes</a>.
    457                 Since we have <a class="link" href="smb.conf.5.html#GUESTOK">guest ok = yes</a>, it
     455                </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#PUBLIC" target="_top">public = yes </a></span></dt><dd><p>
     456                Is a synonym for <a class="link" href="smb.conf.5.html#GUESTOK" target="_top">guest ok = yes</a>.
     457                Since we have <a class="link" href="smb.conf.5.html#GUESTOK" target="_top">guest ok = yes</a>, it
    458458                really does not need to be here. (This leads to the interesting question, &#8220;<span class="quote">What if I
    459459                by accident have two contradictory settings for the same share?</span>&#8221; The answer is that the
     
    462462                lines for the <em class="parameter"><code>guest account</code></em> parameter with different usernames,
    463463                and then run testparm to see which one is actually used by Samba.)
    464                 </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#READONLY">read only = yes </a></span></dt><dd><p>
     464                </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#READONLY" target="_top">read only = yes </a></span></dt><dd><p>
    465465                Normally (for other types of shares) prevents users from creating or modifying files
    466466                in the service's directory. However, in a <span class="emphasis"><em>printable</em></span> service, it is
    467467                <span class="emphasis"><em>always</em></span> allowed to write to the directory (if user privileges allow the
    468468                connection), but only via print spooling operations. Normal write operations are not permitted.
    469                 </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#WRITABLE">writable = no </a></span></dt><dd><p>
    470                 Is a synonym for <a class="link" href="smb.conf.5.html#READONLY">read only = yes</a>.
    471                 </p></dd></dl></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2618079"></a>Any [my_printer_name] Section</h4></div></div></div><p>
    472 <a class="indexterm" name="id2618087"></a>
    473 <a class="indexterm" name="id2618094"></a>
     469                </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#WRITABLE" target="_top">writable = no </a></span></dt><dd><p>
     470                Is a synonym for <a class="link" href="smb.conf.5.html#READONLY" target="_top">read only = yes</a>.
     471                </p></dd></dl></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2625047"></a>Any [my_printer_name] Section</h4></div></div></div><p>
     472<a class="indexterm" name="id2625056"></a>
     473<a class="indexterm" name="id2625062"></a>
    474474If a <em class="parameter"><code>[my_printer_name]</code></em> section appears in the <code class="filename">smb.conf</code> file, which includes the
    475 parameter <a class="link" href="smb.conf.5.html#PRINTABLE">printable = yes</a> Samba will configure it as a printer share.
     475parameter <a class="link" href="smb.conf.5.html#PRINTABLE" target="_top">printable = yes</a> Samba will configure it as a printer share.
    476476Windows 9x/Me clients may have problems with connecting or loading printer drivers if the share name has more
    477477than eight characters. Do not name a printer share with a name that may conflict with an existing user or file
    478478share name. On client connection requests, Samba always tries to find file shares with that name first. If it
    479479finds one, it will connect to this and will not connect to a printer with the same name!
    480 </p><div class="variablelist"><dl><dt><span class="term"><a class="link" href="smb.conf.5.html#COMMENT">comment = Printer with Restricted Access </a></span></dt><dd><p>
     480</p><div class="variablelist"><dl><dt><span class="term"><a class="link" href="smb.conf.5.html#COMMENT" target="_top">comment = Printer with Restricted Access </a></span></dt><dd><p>
    481481                The comment says it all.
    482                 </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#PATH">path = /var/spool/samba_my_printer </a></span></dt><dd><p>
     482                </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#PATH" target="_top">path = /var/spool/samba_my_printer </a></span></dt><dd><p>
    483483                Sets the spooling area for this printer to a directory other than the default. It is not
    484484                necessary to set it differently, but the option is available.
    485                 </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#PRINTERADMIN">printer admin = kurt </a></span></dt><dd><p>
     485                </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#PRINTERADMIN" target="_top">printer admin = kurt </a></span></dt><dd><p>
    486486                The printer admin definition is different for this explicitly defined printer share from the general
    487487                <em class="parameter"><code>[printers]</code></em> share. It is not a requirement; we did it to show that it is possible.
    488                 </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#BROWSEABLE">browseable = yes </a></span></dt><dd><p>
     488                </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#BROWSEABLE" target="_top">browseable = yes </a></span></dt><dd><p>
    489489                This makes the printer browseable so the clients may conveniently find it when browsing the
    490490                <span class="guiicon">Network Neighborhood</span>.
    491                 </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#PRINTABLE">printable = yes </a></span></dt><dd><p>
     491                </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#PRINTABLE" target="_top">printable = yes </a></span></dt><dd><p>
    492492                See <a class="link" href="classicalprinting.html#ptrsect" title="The [printers] Section">Section 20.4.1.2</a>.
    493                 </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#WRITABLE">writable = no </a></span></dt><dd><p>
     493                </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#WRITABLE" target="_top">writable = no </a></span></dt><dd><p>
    494494                See <a class="link" href="classicalprinting.html#ptrsect" title="The [printers] Section">Section 20.4.1.2</a>.
    495                 </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#HOSTSALLOW">hosts allow = 10.160.50.,10.160.51. </a></span></dt><dd><p>
    496                 Here we exercise a certain degree of access control by using the <a class="link" href="smb.conf.5.html#HOSTSALLOW">hosts allow</a>
    497                 and <a class="link" href="smb.conf.5.html#HOSTSDENY">hosts deny</a> parameters. This is not by any means a safe bet. It is not a
     495                </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#HOSTSALLOW" target="_top">hosts allow = 10.160.50.,10.160.51. </a></span></dt><dd><p>
     496                Here we exercise a certain degree of access control by using the <a class="link" href="smb.conf.5.html#HOSTSALLOW" target="_top">hosts allow</a>
     497                and <a class="link" href="smb.conf.5.html#HOSTSDENY" target="_top">hosts deny</a> parameters. This is not by any means a safe bet. It is not a
    498498                way to secure your printers. This line accepts all clients from a certain subnet in a first evaluation of
    499499                access control.
    500                 </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#HOSTSDENY">hosts deny = turbo_xp,10.160.50.23,10.160.51.60 </a></span></dt><dd><p>
     500                </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#HOSTSDENY" target="_top">hosts deny = turbo_xp,10.160.50.23,10.160.51.60 </a></span></dt><dd><p>
    501501                All listed hosts are not allowed here (even if they belong to the allowed subnets). As
    502502                you can see, you could name IP addresses as well as NetBIOS hostnames here.
    503                 </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#GUESTOK">guest ok = no </a></span></dt><dd><p>
     503                </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#GUESTOK" target="_top">guest ok = no </a></span></dt><dd><p>
    504504                This printer is not open for the guest account.
    505                 </p></dd></dl></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2618374"></a>Print Commands</h4></div></div></div><p>
    506 <a class="indexterm" name="id2618382"></a>
    507 <a class="indexterm" name="id2618388"></a>
    508 <a class="indexterm" name="id2618395"></a>
    509 <a class="indexterm" name="id2618402"></a>
     505                </p></dd></dl></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2625342"></a>Print Commands</h4></div></div></div><p>
     506<a class="indexterm" name="id2625350"></a>
     507<a class="indexterm" name="id2625356"></a>
     508<a class="indexterm" name="id2625363"></a>
     509<a class="indexterm" name="id2625370"></a>
    510510In each section defining a printer (or in the <em class="parameter"><code>[printers]</code></em> section),
    511511a <em class="parameter"><code>print command</code></em> parameter may be defined. It sets a command to process the files
    512512that have been placed into the Samba print spool directory for that printer. (That spool directory was,
    513 if you remember, set up with the <a class="link" href="smb.conf.5.html#PATH">path</a> parameter). Typically,
     513if you remember, set up with the <a class="link" href="smb.conf.5.html#PATH" target="_top">path</a> parameter). Typically,
    514514this command will submit the spool file to the Samba host's print subsystem, using the suitable system
    515515print command. But there is no requirement that this needs to be the case. For debugging or
     
    519519make sure you pay attention to the need to remove the files from the Samba spool directory. Otherwise,
    520520your hard disk may soon suffer from shortage of free space.
    521 </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2618450"></a>Default UNIX System Printing Commands</h4></div></div></div><p>
    522 <a class="indexterm" name="id2618457"></a>
     521</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2625418"></a>Default UNIX System Printing Commands</h4></div></div></div><p>
     522<a class="indexterm" name="id2625426"></a>
    523523You learned earlier that Samba, in most cases, uses its built-in settings for many parameters if it cannot
    524 find an explicitly stated one in its configuration file. The same is true for the <a class="link" href="smb.conf.5.html#PRINTCOMMAND">print command</a>. The default print command varies depending on the <a class="link" href="smb.conf.5.html#PRINTING">printing</a> parameter
     524find an explicitly stated one in its configuration file. The same is true for the <a class="link" href="smb.conf.5.html#PRINTCOMMAND" target="_top">print command</a>. The default print command varies depending on the <a class="link" href="smb.conf.5.html#PRINTING" target="_top">printing</a> parameter
    525525setting. In the commands listed in <a class="link" href="classicalprinting.html#printOptions" title="Table 21.1. Default Printing Settings">Default Printing Settings</a> , you will
    526526notice some parameters of the form <span class="emphasis"><em>%X</em></span> where <span class="emphasis"><em>X</em></span> is <span class="emphasis"><em>p, s,
     
    528528explained in more detail in <a class="link" href="classicalprinting.html#printOptions" title="Table 21.1. Default Printing Settings">Default Printing Settings</a> presents an overview
    529529of key printing options but excludes the special case of CUPS, is discussed in <a class="link" href="CUPS-printing.html" title="Chapter 22. CUPS Printing Support">CUPS Printing Support</a>.
    530 </p><div class="table"><a name="printOptions"></a><p class="title"><b>Table 21.1. Default Printing Settings</b></p><div class="table-contents"><table summary="Default Printing Settings" border="1"><colgroup><col align="left"><col align="left"></colgroup><thead><tr><th align="left">Setting</th><th align="left">Default Printing Commands</th></tr></thead><tbody><tr><td align="left"><a class="link" href="smb.conf.5.html#PRINTING">printing = bsd|aix|lprng|plp</a></td><td align="left">print command is <code class="literal">lpr -r -P%p %s</code></td></tr><tr><td align="left"><a class="link" href="smb.conf.5.html#PRINTING">printing = sysv|hpux</a></td><td align="left">print command is <code class="literal">lp -c -P%p %s; rm %s</code></td></tr><tr><td align="left"> <a class="link" href="smb.conf.5.html#PRINTING">printing = qnx</a></td><td align="left">print command is <code class="literal">lp -r -P%p -s %s</code></td></tr><tr><td align="left"><a class="link" href="smb.conf.5.html#PRINTING">printing = bsd|aix|lprng|plp</a></td><td align="left">lpq command is <code class="literal">lpq -P%p</code></td></tr><tr><td align="left"><a class="link" href="smb.conf.5.html#PRINTING">printing = sysv|hpux</a></td><td align="left">lpq command is <code class="literal">lpstat -o%p</code></td></tr><tr><td align="left"><a class="link" href="smb.conf.5.html#PRINTING">printing = qnx</a></td><td align="left">lpq command is <code class="literal">lpq -P%p</code></td></tr><tr><td align="left"><a class="link" href="smb.conf.5.html#PRINTING">printing = bsd|aix|lprng|plp</a></td><td align="left">lprm command is <code class="literal">lprm -P%p %j</code></td></tr><tr><td align="left"><a class="link" href="smb.conf.5.html#PRINTING">printing = sysv|hpux</a></td><td align="left">lprm command is <code class="literal">cancel %p-%j</code></td></tr><tr><td align="left"><a class="link" href="smb.conf.5.html#PRINTING">printing = qnx</a></td><td align="left">lprm command is <code class="literal">cancel %p-%j</code></td></tr><tr><td align="left"><a class="link" href="smb.conf.5.html#PRINTING">printing = bsd|aix|lprng|plp</a></td><td align="left">lppause command is <code class="literal">lp -i %p-%j -H hold</code></td></tr><tr><td align="left"><a class="link" href="smb.conf.5.html#PRINTING">printing = sysv|hpux</a></td><td align="left">lppause command   (...is empty)</td></tr><tr><td align="left"><a class="link" href="smb.conf.5.html#PRINTING">printing = qnx</a></td><td align="left">lppause command   (...is empty)</td></tr><tr><td align="left"><a class="link" href="smb.conf.5.html#PRINTING">printing = bsd|aix|lprng|plp</a></td><td align="left">lpresume command is <code class="literal">lp -i %p-%j -H resume</code></td></tr><tr><td align="left"><a class="link" href="smb.conf.5.html#PRINTING">printing = sysv|hpux</a></td><td align="left">lpresume command   (...is empty)</td></tr><tr><td align="left"><a class="link" href="smb.conf.5.html#PRINTING">printing = qnx</a></td><td align="left">lpresume command   (...is empty)</td></tr></tbody></table></div></div><br class="table-break"><p>
    531 <a class="indexterm" name="id2618921"></a>
    532 <a class="indexterm" name="id2618928"></a>
    533 <a class="indexterm" name="id2618934"></a>
    534 <a class="indexterm" name="id2618941"></a>
     530</p><div class="table"><a name="printOptions"></a><p class="title"><b>Table 21.1. Default Printing Settings</b></p><div class="table-contents"><table summary="Default Printing Settings" border="1"><colgroup><col align="left"><col align="left"></colgroup><thead><tr><th align="left">Setting</th><th align="left">Default Printing Commands</th></tr></thead><tbody><tr><td align="left"><a class="link" href="smb.conf.5.html#PRINTING" target="_top">printing = bsd|aix|lprng|plp</a></td><td align="left">print command is <code class="literal">lpr -r -P%p %s</code></td></tr><tr><td align="left"><a class="link" href="smb.conf.5.html#PRINTING" target="_top">printing = sysv|hpux</a></td><td align="left">print command is <code class="literal">lp -c -P%p %s; rm %s</code></td></tr><tr><td align="left"> <a class="link" href="smb.conf.5.html#PRINTING" target="_top">printing = qnx</a></td><td align="left">print command is <code class="literal">lp -r -P%p -s %s</code></td></tr><tr><td align="left"><a class="link" href="smb.conf.5.html#PRINTING" target="_top">printing = bsd|aix|lprng|plp</a></td><td align="left">lpq command is <code class="literal">lpq -P%p</code></td></tr><tr><td align="left"><a class="link" href="smb.conf.5.html#PRINTING" target="_top">printing = sysv|hpux</a></td><td align="left">lpq command is <code class="literal">lpstat -o%p</code></td></tr><tr><td align="left"><a class="link" href="smb.conf.5.html#PRINTING" target="_top">printing = qnx</a></td><td align="left">lpq command is <code class="literal">lpq -P%p</code></td></tr><tr><td align="left"><a class="link" href="smb.conf.5.html#PRINTING" target="_top">printing = bsd|aix|lprng|plp</a></td><td align="left">lprm command is <code class="literal">lprm -P%p %j</code></td></tr><tr><td align="left"><a class="link" href="smb.conf.5.html#PRINTING" target="_top">printing = sysv|hpux</a></td><td align="left">lprm command is <code class="literal">cancel %p-%j</code></td></tr><tr><td align="left"><a class="link" href="smb.conf.5.html#PRINTING" target="_top">printing = qnx</a></td><td align="left">lprm command is <code class="literal">cancel %p-%j</code></td></tr><tr><td align="left"><a class="link" href="smb.conf.5.html#PRINTING" target="_top">printing = bsd|aix|lprng|plp</a></td><td align="left">lppause command is <code class="literal">lp -i %p-%j -H hold</code></td></tr><tr><td align="left"><a class="link" href="smb.conf.5.html#PRINTING" target="_top">printing = sysv|hpux</a></td><td align="left">lppause command   (...is empty)</td></tr><tr><td align="left"><a class="link" href="smb.conf.5.html#PRINTING" target="_top">printing = qnx</a></td><td align="left">lppause command   (...is empty)</td></tr><tr><td align="left"><a class="link" href="smb.conf.5.html#PRINTING" target="_top">printing = bsd|aix|lprng|plp</a></td><td align="left">lpresume command is <code class="literal">lp -i %p-%j -H resume</code></td></tr><tr><td align="left"><a class="link" href="smb.conf.5.html#PRINTING" target="_top">printing = sysv|hpux</a></td><td align="left">lpresume command   (...is empty)</td></tr><tr><td align="left"><a class="link" href="smb.conf.5.html#PRINTING" target="_top">printing = qnx</a></td><td align="left">lpresume command   (...is empty)</td></tr></tbody></table></div></div><br class="table-break"><p>
     531<a class="indexterm" name="id2625890"></a>
     532<a class="indexterm" name="id2625896"></a>
     533<a class="indexterm" name="id2625903"></a>
     534<a class="indexterm" name="id2625910"></a>
    535535For <em class="parameter"><code>printing = CUPS</code></em>, if Samba is compiled against libcups, it uses the CUPS API to
    536 submit jobs. (It is a good idea also to set <a class="link" href="smb.conf.5.html#PRINTCAP">printcap = cups</a> in case your
     536submit jobs. (It is a good idea also to set <a class="link" href="smb.conf.5.html#PRINTCAP" target="_top">printcap = cups</a> in case your
    537537<code class="filename">cupsd.conf</code> is set to write its autogenerated printcap file to an unusual place).
    538538Otherwise, Samba maps to the System V printing commands with the -oraw option for printing; that is, it uses
    539539<code class="literal">lp -c -d%p -oraw; rm %s</code>. With <em class="parameter"><code>printing = cups</code></em>, and if Samba is
    540540compiled against libcups, any manually set print command will be ignored!
    541 </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2618994"></a>Custom Print Commands</h4></div></div></div><p>
    542 <a class="indexterm" name="id2619002"></a>
    543 <a class="indexterm" name="id2619008"></a>
    544 After a print job has finished spooling to a service, the <a class="link" href="smb.conf.5.html#PRINTCOMMAND">print command</a> will be used
     541</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2625962"></a>Custom Print Commands</h4></div></div></div><p>
     542<a class="indexterm" name="id2625970"></a>
     543<a class="indexterm" name="id2625977"></a>
     544After a print job has finished spooling to a service, the <a class="link" href="smb.conf.5.html#PRINTCOMMAND" target="_top">print command</a> will be used
    545545by Samba via a system() call to process the spool file. Usually the command specified will submit the spool
    546546file to the host's printing subsystem. But there is no requirement at all that this must be the case. The
     
    548548that the spool file is deleted after it has been processed.
    549549</p><p>
    550 <a class="indexterm" name="id2619038"></a>
    551 <a class="indexterm" name="id2619045"></a>
    552 <a class="indexterm" name="id2619052"></a>
    553 <a class="indexterm" name="id2619058"></a>
     550<a class="indexterm" name="id2626007"></a>
     551<a class="indexterm" name="id2626014"></a>
     552<a class="indexterm" name="id2626020"></a>
     553<a class="indexterm" name="id2626027"></a>
    554554There is no difficulty with using your own customized print commands with the traditional printing systems.
    555555However, if you do not wish to roll your own, you should be well informed about the default built-in commands
     
    561561printing, the following ones do have special relevance:
    562562</p><div class="itemizedlist"><ul type="disc"><li><p><em class="parameter"><code>%s, %f</code></em>  the path to the spool file name.</p></li><li><p><em class="parameter"><code>%p</code></em>  the appropriate printer name.</p></li><li><p><em class="parameter"><code>%J</code></em>  the job name as transmitted by the client.</p></li><li><p><em class="parameter"><code>%c</code></em>  the number of printed pages of the spooled job (if known).</p></li><li><p><em class="parameter"><code>%z</code></em>  the size of the spooled print job (in bytes).</p></li></ul></div><p>
    563 <a class="indexterm" name="id2619157"></a>
     563<a class="indexterm" name="id2626127"></a>
    564564The print command must contain at least one occurrence of <em class="parameter"><code>%s</code></em> or
    565565<em class="parameter"><code>%f</code></em>. The <em class="parameter"><code>%p</code></em> is optional. If no printer name is supplied,
     
    567567sent to the default printer.
    568568</p><p>
    569 <a class="indexterm" name="id2619193"></a>
    570 <a class="indexterm" name="id2619200"></a>
     569<a class="indexterm" name="id2626162"></a>
     570<a class="indexterm" name="id2626170"></a>
    571571If specified in the <em class="parameter"><code>[global]</code></em> section, the print command given will be
    572572used for any printable service that does not have its own print command specified. If there is neither a
     
    574574but not processed! Most importantly, print files will not be removed, so they will consume disk space.
    575575</p><p>
    576 <a class="indexterm" name="id2619222"></a>
    577 <a class="indexterm" name="id2619229"></a>
     576<a class="indexterm" name="id2626192"></a>
     577<a class="indexterm" name="id2626199"></a>
    578578Printing may fail on some UNIX systems when using the <span class="emphasis"><em>nobody</em></span> account. If this happens, create an
    579579alternative guest account and give it the privilege to print. Set up this guest account in the
    580580<em class="parameter"><code>[global]</code></em> section with the <em class="parameter"><code>guest account</code></em> parameter.
    581581</p><p>
    582 <a class="indexterm" name="id2619259"></a>
    583 <a class="indexterm" name="id2619266"></a>
    584 <a class="indexterm" name="id2619273"></a>
     582<a class="indexterm" name="id2626228"></a>
     583<a class="indexterm" name="id2626235"></a>
     584<a class="indexterm" name="id2626242"></a>
    585585You can form quite complex print commands. You need to realize that print commands are just
    586586passed to a UNIX shell. The shell is able to expand the included environment variables as
    587587usual. (The syntax to include a UNIX environment variable <em class="parameter"><code>$variable</code></em>
    588588in the Samba print command is <em class="parameter"><code>%$variable</code></em>.) To give you a working
    589 <a class="link" href="smb.conf.5.html#PRINTCOMMAND">print command</a> example, the following will log a print job
     589<a class="link" href="smb.conf.5.html#PRINTCOMMAND" target="_top">print command</a> example, the following will log a print job
    590590to <code class="filename">/tmp/print.log</code>, print the file, then remove it. The semicolon (&#8220;<span class="quote">;</span>&#8221;
    591591is the usual separator for commands in shell scripts:
    592 </p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id2619328"></a><em class="parameter"><code>print command = echo Printing %s &gt;&gt; /tmp/print.log; lpr -P %p %s; rm %s</code></em></td></tr></table><p>
     592</p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id2626297"></a><em class="parameter"><code>print command = echo Printing %s &gt;&gt; /tmp/print.log; lpr -P %p %s; rm %s</code></em></td></tr></table><p>
    593593You may have to vary your own command considerably from this example depending on how you normally print
    594 files on your system. The default for the <a class="link" href="smb.conf.5.html#PRINTCOMMAND">print command</a>
    595 parameter varies depending on the setting of the <a class="link" href="smb.conf.5.html#PRINTING">printing</a>
     594files on your system. The default for the <a class="link" href="smb.conf.5.html#PRINTCOMMAND" target="_top">print command</a>
     595parameter varies depending on the setting of the <a class="link" href="smb.conf.5.html#PRINTING" target="_top">printing</a>
    596596parameter. Another example is:
    597 </p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id2619379"></a><em class="parameter"><code>print command = /usr/local/samba/bin/myprintscript %p %s</code></em></td></tr></table></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="cups-msrpc"></a>Printing Developments Since Samba-2.2</h2></div></div></div><p>
    598 <a class="indexterm" name="id2619405"></a>
    599 <a class="indexterm" name="id2619412"></a>
    600 <a class="indexterm" name="id2619418"></a>
     597</p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id2626348"></a><em class="parameter"><code>print command = /usr/local/samba/bin/myprintscript %p %s</code></em></td></tr></table></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="cups-msrpc"></a>Printing Developments Since Samba-2.2</h2></div></div></div><p>
     598<a class="indexterm" name="id2626375"></a>
     599<a class="indexterm" name="id2626381"></a>
     600<a class="indexterm" name="id2626388"></a>
    601601Prior to Samba-2.2.x, print server support for Windows clients was limited to <span class="emphasis"><em>LanMan</em></span>
    602602printing calls. This is the same protocol level as Windows 9x/Me PCs offer when they share printers.
     
    607607The additional functionality provided by the new SPOOLSS support includes:
    608608</p><div class="itemizedlist"><ul type="disc"><li><p>
    609 <a class="indexterm" name="id2619454"></a>
     609<a class="indexterm" name="id2626423"></a>
    610610        Support for downloading printer driver files to Windows 95/98/NT/2000 clients upon
    611611        demand (<span class="emphasis"><em>Point'n'Print</em></span>).
    612612        </p></li><li><p>
    613 <a class="indexterm" name="id2619470"></a>
     613<a class="indexterm" name="id2626440"></a>
    614614        Uploading of printer drivers via the Windows NT <span class="emphasis"><em>Add Printer Wizard</em></span> (APW)
    615615        or the <a class="ulink" href="http://imprints.sourceforge.net/" target="_top">Imprints</a> tool set.
    616616        </p></li><li><p>       
    617 <a class="indexterm" name="id2619493"></a>
    618 <a class="indexterm" name="id2619500"></a>
    619 <a class="indexterm" name="id2619507"></a>
    620 <a class="indexterm" name="id2619514"></a>
    621 <a class="indexterm" name="id2619521"></a>
     617<a class="indexterm" name="id2626463"></a>
     618<a class="indexterm" name="id2626470"></a>
     619<a class="indexterm" name="id2626477"></a>
     620<a class="indexterm" name="id2626484"></a>
     621<a class="indexterm" name="id2626490"></a>
    622622        Support for the native MS-RPC printing calls such as StartDocPrinter, EnumJobs(), and so on. (See the
    623623        <a class="ulink" href="http://msdn.microsoft.com/" target="_top">MSDN documentation</a> for more information on the
    624624        Win32 printing API).
    625625        </p></li><li><p>
    626 <a class="indexterm" name="id2619541"></a>
    627 <a class="indexterm" name="id2619547"></a>
     626<a class="indexterm" name="id2626511"></a>
     627<a class="indexterm" name="id2626517"></a>
    628628        Support for NT Access Control Lists (ACL) on printer objects.
    629629        </p></li><li><p>
    630 <a class="indexterm" name="id2619560"></a>
     630<a class="indexterm" name="id2626530"></a>
    631631        Improved support for printer queue manipulation through the use of internal databases for spooled
    632632        job information (implemented by various <code class="filename">*.tdb</code> files).
    633633        </p></li></ul></div><p>
    634 <a class="indexterm" name="id2619580"></a>
    635 <a class="indexterm" name="id2619586"></a>
     634<a class="indexterm" name="id2626549"></a>
     635<a class="indexterm" name="id2626556"></a>
    636636A benefit of updating is that Samba-3 is able to publish its printers to Active Directory (or LDAP).
    637637</p><p>
    638 <a class="indexterm" name="id2619598"></a>
     638<a class="indexterm" name="id2626568"></a>
    639639A fundamental difference exists between MS Windows NT print servers and Samba operation. Windows NT
    640640permits the installation of local printers that are not shared. This is an artifact of the fact that
     
    642642printers that are made available, either by default or by specific declaration via printer-specific shares.
    643643</p><p>
    644 <a class="indexterm" name="id2619615"></a>
    645 <a class="indexterm" name="id2619622"></a>
    646 <a class="indexterm" name="id2619628"></a>
    647 <a class="indexterm" name="id2619635"></a>
    648 <a class="indexterm" name="id2619642"></a>
     644<a class="indexterm" name="id2626585"></a>
     645<a class="indexterm" name="id2626592"></a>
     646<a class="indexterm" name="id2626598"></a>
     647<a class="indexterm" name="id2626605"></a>
     648<a class="indexterm" name="id2626612"></a>
    649649Windows NT/200x/XP Professional clients do not have to use the standard SMB printer share; they can
    650650print directly to any printer on another Windows NT host using MS-RPC. This, of course, assumes that
     
    653653<span class="emphasis"><em>Everyone</em></span> group. (The older clients of type Windows 9x/Me can only print to shared
    654654printers.)
    655 </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2619662"></a>Point'n'Print Client Drivers on Samba Servers</h3></div></div></div><p>
    656 <a class="indexterm" name="id2619671"></a>
     655</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2626632"></a>Point'n'Print Client Drivers on Samba Servers</h3></div></div></div><p>
     656<a class="indexterm" name="id2626640"></a>
    657657There is much confusion about what all this means. The question is often asked, &#8220;<span class="quote">Is it or is
    658658it not necessary for printer drivers to be installed on a Samba host in order to support printing from
    659659Windows clients?</span>&#8221; The answer to this is no, it is not necessary.
    660660</p><p>
    661 <a class="indexterm" name="id2619689"></a>
    662 <a class="indexterm" name="id2619696"></a>
     661<a class="indexterm" name="id2626658"></a>
     662<a class="indexterm" name="id2626665"></a>
    663663Windows NT/2000 clients can, of course, also run their APW to install drivers <span class="emphasis"><em>locally</em></span>
    664664(which then connect to a Samba-served print queue). This is the same method used by Windows 9x/Me
     
    666666require that the Samba server possess a valid driver for the printer. This was fixed in Samba 2.2.1).
    667667</p><p>
    668 <a class="indexterm" name="id2619715"></a>
    669 <a class="indexterm" name="id2619722"></a>
     668<a class="indexterm" name="id2626685"></a>
     669<a class="indexterm" name="id2626692"></a>
    670670But it is a new capability to install the printer drivers into the <em class="parameter"><code>[print$]</code></em>
    671671share of the Samba server, and a big convenience, too. Then <span class="emphasis"><em>all</em></span> clients
     
    683683        Using <span class="emphasis"><em>cupsaddsmb</em></span> (only works for the CUPS printing system, not for LPR/LPD, LPRng, and so on).
    684684        </p></li></ul></div><p>
    685 <a class="indexterm" name="id2619804"></a>
    686 <a class="indexterm" name="id2619811"></a>
     685<a class="indexterm" name="id2626774"></a>
     686<a class="indexterm" name="id2626781"></a>
    687687Samba does not use these uploaded drivers in any way to process spooled files. These drivers are utilized
    688688entirely by the clients who download and install them via the &#8220;<span class="quote">Point'n'Print</span>&#8221; mechanism
     
    690690(or the UNIX print system) requires. Print files received by Samba are handed over to the UNIX printing
    691691system, which is responsible for all further processing, as needed.
    692 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2619832"></a>The Obsoleted [printer$] Section</h3></div></div></div><p>
    693 <a class="indexterm" name="id2619840"></a>
    694 <a class="indexterm" name="id2619847"></a>
     692</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2626801"></a>The Obsoleted [printer$] Section</h3></div></div></div><p>
     693<a class="indexterm" name="id2626809"></a>
     694<a class="indexterm" name="id2626816"></a>
    695695        Versions of Samba prior to 2.2 made it possible to use a share named <em class="parameter"><code>[printer$]</code></em>. This
    696696        name was taken from the same named service created by Windows 9x/Me clients when a printer was shared by them.
     
    702702        be sent to the client.
    703703        </p><p>
    704 <a class="indexterm" name="id2619891"></a>
    705 <a class="indexterm" name="id2619898"></a>
    706 <a class="indexterm" name="id2619905"></a>
     704<a class="indexterm" name="id2626861"></a>
     705<a class="indexterm" name="id2626868"></a>
     706<a class="indexterm" name="id2626875"></a>
    707707        These parameters, including the <em class="parameter"><code>printer driver file</code></em> parameter,
    708708        are now removed and cannot be used in installations of Samba-3. The share name
     
    714714        9x/Me clients are now thrown aside. They can use Samba's <em class="parameter"><code>[print$]</code></em>
    715715        share support just fine.
    716         </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2619953"></a>Creating the [print$] Share</h3></div></div></div><p>
    717 <a class="indexterm" name="id2619961"></a>
     716        </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2626923"></a>Creating the [print$] Share</h3></div></div></div><p>
     717<a class="indexterm" name="id2626931"></a>
    718718In order to support the uploading and downloading of printer driver files, you must first configure a
    719719file share named <em class="parameter"><code>[print$]</code></em>. The public name of this share is hard coded
     
    723723You should modify the server's file to add the global parameters and create the
    724724<em class="parameter"><code>[print$]</code></em> file share (of course, some of the parameter values, such
    725 as <a class="link" href="smb.conf.5.html#PATH">path</a>, are arbitrary and should be replaced with appropriate values for your
     725as <a class="link" href="smb.conf.5.html#PATH" target="_top">path</a>, are arbitrary and should be replaced with appropriate values for your
    726726site). See <a class="link" href="classicalprinting.html#prtdollar" title="Example 21.3. [print$] Example">[print\$] Example</a>.
    727 </p><div class="example"><a name="prtdollar"></a><p class="title"><b>Example 21.3. [print$] Example</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td># members of the ntadmin group should be able to add drivers and set</td></tr><tr><td># printer properties. root is implicitly always a 'printer admin'.</td></tr><tr><td><a class="indexterm" name="id2620045"></a><em class="parameter"><code>printer admin = @ntadmin</code></em></td></tr><tr><td># ...</td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[printers]</code></em></td></tr><tr><td># ...</td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[print$]</code></em></td></tr><tr><td><a class="indexterm" name="id2620082"></a><em class="parameter"><code>comment = Printer Driver Download Area</code></em></td></tr><tr><td><a class="indexterm" name="id2620093"></a><em class="parameter"><code>path = /etc/samba/drivers</code></em></td></tr><tr><td><a class="indexterm" name="id2620105"></a><em class="parameter"><code>browseable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2620117"></a><em class="parameter"><code>guest ok = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2620128"></a><em class="parameter"><code>read only = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2620140"></a><em class="parameter"><code>write list = @ntadmin, root</code></em></td></tr></table></div></div><br class="example-break"><p>
     727</p><div class="example"><a name="prtdollar"></a><p class="title"><b>Example 21.3. [print$] Example</b></p><div class="example-contents"><table class="simplelist" border="0" summary="Simple list"><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td># members of the ntadmin group should be able to add drivers and set</td></tr><tr><td># printer properties. root is implicitly always a 'printer admin'.</td></tr><tr><td><a class="indexterm" name="id2627015"></a><em class="parameter"><code>printer admin = @ntadmin</code></em></td></tr><tr><td># ...</td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[printers]</code></em></td></tr><tr><td># ...</td></tr><tr><td> </td></tr><tr><td><em class="parameter"><code>[print$]</code></em></td></tr><tr><td><a class="indexterm" name="id2627052"></a><em class="parameter"><code>comment = Printer Driver Download Area</code></em></td></tr><tr><td><a class="indexterm" name="id2627063"></a><em class="parameter"><code>path = /etc/samba/drivers</code></em></td></tr><tr><td><a class="indexterm" name="id2627074"></a><em class="parameter"><code>browseable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2627086"></a><em class="parameter"><code>guest ok = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2627098"></a><em class="parameter"><code>read only = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2627109"></a><em class="parameter"><code>write list = @ntadmin, root</code></em></td></tr></table></div></div><br class="example-break"><p>
    728728Of course, you also need to ensure that the directory named by the
    729 <a class="link" href="smb.conf.5.html#PATH">path</a> parameter exists on the UNIX file system.
    730 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2620170"></a>[print$] Stanza Parameters</h3></div></div></div><p>
    731 <a class="indexterm" name="id2620178"></a>
    732 <a class="indexterm" name="id2620185"></a>
    733 <a class="indexterm" name="id2620192"></a>
    734 <a class="indexterm" name="id2620198"></a>
    735 <a class="indexterm" name="id2620205"></a>
     729<a class="link" href="smb.conf.5.html#PATH" target="_top">path</a> parameter exists on the UNIX file system.
     730</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2627139"></a>[print$] Stanza Parameters</h3></div></div></div><p>
     731<a class="indexterm" name="id2627147"></a>
     732<a class="indexterm" name="id2627154"></a>
     733<a class="indexterm" name="id2627161"></a>
     734<a class="indexterm" name="id2627168"></a>
     735<a class="indexterm" name="id2627175"></a>
    736736The <em class="parameter"><code>[print$]</code></em> is a special section in <code class="filename">smb.conf</code>. It contains settings relevant to
    737737potential printer driver download and is used by Windows clients for local print driver installation.
    738738The following parameters are frequently needed in this share section:
    739 </p><div class="variablelist"><dl><dt><span class="term"><a class="link" href="smb.conf.5.html#COMMENT">comment = Printer Driver Download Area </a></span></dt><dd><p>
     739</p><div class="variablelist"><dl><dt><span class="term"><a class="link" href="smb.conf.5.html#COMMENT" target="_top">comment = Printer Driver Download Area </a></span></dt><dd><p>
    740740                The comment appears next to the share name if it is listed in a share list (usually Windows
    741741                clients will not see it, but it will also appear up in a <code class="literal">smbclient -L sambaserver
    742742                </code> output).
    743                 </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#PATH">path = /etc/samba/printers </a></span></dt><dd><p>
     743                </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#PATH" target="_top">path = /etc/samba/printers </a></span></dt><dd><p>
    744744                The path to the location of the Windows driver file deposit from the UNIX point of view.
    745                 </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#BROWSEABLE">browseable = no </a></span></dt><dd><p>
     745                </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#BROWSEABLE" target="_top">browseable = no </a></span></dt><dd><p>
    746746                Makes the <em class="parameter"><code>[print$]</code></em> share invisible to clients from the
    747747                <span class="guimenu">Network Neighborhood</span>. By excuting from a <code class="literal">cmd</code> shell:
     
    751751                 you can still mount it from any client. This can also be done from the
    752752                <span class="guimenu">Connect network drive menu&gt;</span> from Windows Explorer.
    753                 </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#GUESTOK">guest ok = yes </a></span></dt><dd><p>
     753                </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#GUESTOK" target="_top">guest ok = yes </a></span></dt><dd><p>
    754754                Gives read-only access to this share for all guest users. Access may be granted to
    755755                download and install printer drivers on clients. The requirement for <em class="parameter"><code>guest ok
     
    762762                access is not necessary. Of course, in a workgroup environment where you just want
    763763                to print without worrying about silly accounts and security, then configure the share for
    764                 guest access. You should consider adding <a class="link" href="smb.conf.5.html#MAPTOGUEST">map to guest = Bad   User</a>
     764                guest access. You should consider adding <a class="link" href="smb.conf.5.html#MAPTOGUEST" target="_top">map to guest = Bad     User</a>
    765765                in the <em class="parameter"><code>[global]</code></em> section as well. Make sure you understand what this
    766766                parameter does before using it.
    767                 </p></div></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#READONLY">read only = yes </a></span></dt><dd><p>
     767                </p></div></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#READONLY" target="_top">read only = yes </a></span></dt><dd><p>
    768768                Because we do not want everybody to upload driver files (or even change driver settings),
    769769                we tagged this share as not writable.
    770                 </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#WRITELIST">write list = @ntadmin, root </a></span></dt><dd><p>
     770                </p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#WRITELIST" target="_top">write list = @ntadmin, root </a></span></dt><dd><p>
    771771                The <em class="parameter"><code>[print$]</code></em> was made read-only by the previous
    772772                setting so we should create a <em class="parameter"><code>write list</code></em> entry also. UNIX
     
    776776                account in this setting. Check the file system permissions to make sure these accounts
    777777                can copy files to the share. If this is a non-root account, then the account should also
    778                 be mentioned in the global <a class="link" href="smb.conf.5.html#PRINTERADMIN">printer admin</a>
     778                be mentioned in the global <a class="link" href="smb.conf.5.html#PRINTERADMIN" target="_top">printer admin</a>
    779779                parameter. See the <code class="filename">smb.conf</code> man page for more information on configuring file shares.
    780                 </p></dd></dl></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2620490"></a>The [print$] Share Directory</h3></div></div></div><p>
     780                </p></dd></dl></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2627460"></a>The [print$] Share Directory</h3></div></div></div><p>
    781781In order for a Windows NT print server to support the downloading of driver files by multiple client
    782782architectures, you must create several subdirectories within the <em class="parameter"><code>[print$]</code></em>
    783 service (i.e., the UNIX directory named by the <a class="link" href="smb.conf.5.html#PATH">path</a>
     783service (i.e., the UNIX directory named by the <a class="link" href="smb.conf.5.html#PATH" target="_top">path</a>
    784784parameter). These correspond to each of the supported client architectures. Samba follows this model as
    785785well. Just like the name of the <em class="parameter"><code>[print$]</code></em> share itself, the subdirectories
     
    813813have located the server, navigate to its <span class="guiicon">Printers and Faxes</span> folder. You should see
    814814an initial listing of printers that matches the printer shares defined on your Samba host.
    815 </p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2620633"></a>Installing Drivers into [print$]</h2></div></div></div><p>
     815</p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2627603"></a>Installing Drivers into [print$]</h2></div></div></div><p>
    816816Have you successfully created the <em class="parameter"><code>[print$]</code></em> share in <code class="filename">smb.conf</code>, and have you forced
    817817Samba to reread its <code class="filename">smb.conf</code> file? Good. But you are not yet ready to use the new facility. The client
     
    829829        </p></li></ul></div><p>
    830830The latter option is probably the easier one (even if the process may seem a little bit weird at first).
    831 </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2620726"></a>Add Printer Wizard Driver Installation</h3></div></div></div><p>
     831</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2627696"></a>Add Printer Wizard Driver Installation</h3></div></div></div><p>
    832832The printers initially listed in the Samba host's <span class="guiicon">Printers</span> folder accessed from a
    833833client's Explorer will have no real printer driver assigned to them. By default this driver name is set
     
    855855Once the APW is started, the procedure is exactly the same as the one you are familiar with in Windows (we
    856856assume here that you are familiar with the printer driver installations procedure on Windows NT). Make sure
    857 your connection is, in fact, set up as a user with <a class="link" href="smb.conf.5.html#PRINTERADMIN">printer admin</a>
     857your connection is, in fact, set up as a user with <a class="link" href="smb.conf.5.html#PRINTERADMIN" target="_top">printer admin</a>
    858858privileges (if in doubt, use <code class="literal">smbstatus</code> to check for this). If you wish to install
    859859printer drivers for client operating systems other than <span class="application">Windows NT x86</span>,
     
    861861</p><p>
    862862Assuming you have connected with an administrative (or root) account (as named by the
    863 <a class="link" href="smb.conf.5.html#PRINTERADMIN">printer admin</a> parameter), you will also be able to modify
     863<a class="link" href="smb.conf.5.html#PRINTERADMIN" target="_top">printer admin</a> parameter), you will also be able to modify
    864864other printer properties such as ACLs and default device settings using this dialog. For the default
    865865device settings, please consider the advice given further in <a class="link" href="classicalprinting.html#inst-rpc" title="Installing Print Drivers Using rpcclient">Installing
     
    880880        </p></li></ol></div><p>
    881881We provide detailed hints for each of these steps in the paragraphs that follow.
    882 </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2621002"></a>Identifying Driver Files</h4></div></div></div><p>
    883 <a class="indexterm" name="id2621010"></a>
    884 <a class="indexterm" name="id2621017"></a>
    885 <a class="indexterm" name="id2621024"></a>
     882</p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2627972"></a>Identifying Driver Files</h4></div></div></div><p>
     883<a class="indexterm" name="id2627980"></a>
     884<a class="indexterm" name="id2627987"></a>
     885<a class="indexterm" name="id2627994"></a>
    886886To find out about the driver files, you have two options. You can check the contents of the driver
    887887CDROM that came with your printer. Study the <code class="filename">*.inf</code> files located on the CD-ROM. This
     
    891891extremely difficult to identify the driver files required.
    892892</p><p>
    893 <a class="indexterm" name="id2621054"></a>
     893<a class="indexterm" name="id2628024"></a>
    894894Then you have the second option. Install the driver locally on a Windows client and
    895895investigate which filenames and paths it uses after they are installed. (You need to repeat
     
    898898clients.)
    899899</p><p>
    900 <a class="indexterm" name="id2621081"></a>
     900<a class="indexterm" name="id2628046"></a>
    901901A good method to recognize the driver files is to print the test page from the driver's
    902902<span class="guilabel">Properties</span> dialog (<span class="guilabel">General</span> tab). Then look at the list of
     
    906906(this may vary slightly for Windows NT). You need to note all filenames for the next steps.
    907907</p><p>
    908 <a class="indexterm" name="id2621138"></a>
    909 <a class="indexterm" name="id2621144"></a>
    910 <a class="indexterm" name="id2621151"></a>
     908<a class="indexterm" name="id2628103"></a>
     909<a class="indexterm" name="id2628110"></a>
     910<a class="indexterm" name="id2628117"></a>
    911911Another method to quickly test the driver filenames and related paths is provided by the
    912912<code class="literal">rpcclient</code> utility. Run it with <code class="literal">enumdrivers</code> or with the
     
    949949  Defaultdatatype: []
    950950</pre><p>
    951 <a class="indexterm" name="id2621267"></a>
    952 <a class="indexterm" name="id2621273"></a>
    953 <a class="indexterm" name="id2621280"></a>
    954 <a class="indexterm" name="id2621287"></a>
     951<a class="indexterm" name="id2628232"></a>
     952<a class="indexterm" name="id2628239"></a>
     953<a class="indexterm" name="id2628246"></a>
     954<a class="indexterm" name="id2628253"></a>
    955955You may notice that this driver has quite a large number of <span class="guilabel">Dependent files</span>
    956956(there are worse cases, however). Also, strangely, the
     
    962962Windows PC. This PC can also host the Windows 9x/Me drivers, even if it runs on Windows NT, 2000, or XP.
    963963</p><p>
    964 <a class="indexterm" name="id2621335"></a>
    965 <a class="indexterm" name="id2621342"></a>
    966 <a class="indexterm" name="id2621349"></a>
     964<a class="indexterm" name="id2628301"></a>
     965<a class="indexterm" name="id2628308"></a>
     966<a class="indexterm" name="id2628315"></a>
    967967Since the <em class="parameter"><code>[print$]</code></em> share is usually accessible through the <span class="guiicon">Network
    968968Neighborhood</span>, you can also use the UNC notation from Windows Explorer to poke at it. The Windows
     
    975975the Admin), its native mode for printer drivers is user mode execution. This requires drivers designed
    976976for this purpose. These types of drivers install into the &#8220;<span class="quote">3</span>&#8221; subdirectory.
    977 </p></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2621413"></a>Obtaining Driver Files from Windows Client [print$] Shares</h4></div></div></div><p>
     977</p></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2628378"></a>Obtaining Driver Files from Windows Client [print$] Shares</h4></div></div></div><p>
    978978Now we need to collect all the driver files we identified in our previous step. Where do we get them
    979979from? Well, why not retrieve them from the very PC and the same <em class="parameter"><code>[print$]</code></em>
     
    10001000<code class="literal">smbclient</code> exits again.
    10011001</p><p>
    1002 <a class="indexterm" name="id2621520"></a>
     1002<a class="indexterm" name="id2628487"></a>
    10031003Remember to repeat the procedure for the <span class="application">WIN40</span> architecture should you need to
    10041004support Windows 9x/Me/XP clients. Remember too, the files for these architectures are in the
    10051005<code class="filename">WIN40/0/</code> subdirectory. Once this is complete, we can run <code class="literal">smbclient. .
    10061006.put</code> to store the collected files on the Samba server's <em class="parameter"><code>[print$]</code></em> share.
    1007 </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2621558"></a>Installing Driver Files into [print$]</h4></div></div></div><p>
     1007</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2628524"></a>Installing Driver Files into [print$]</h4></div></div></div><p>
    10081008We are now going to locate the driver files into the <em class="parameter"><code>[print$]</code></em> share. Remember, the
    10091009UNIX path to this share has been defined previously in your <code class="filename">smb.conf</code> file. You also have created
     
    10181018        (yet) into the <code class="filename">0</code> subdirectory.
    10191019        </p></li></ul></div><p>
    1020 <a class="indexterm" name="id2621637"></a>
    1021 <a class="indexterm" name="id2621644"></a>
     1020<a class="indexterm" name="id2628604"></a>
     1021<a class="indexterm" name="id2628610"></a>
    10221022We again use smbclient to transfer the driver files across the network. We specify the same files
    10231023and paths as were leaked to us by running <code class="literal">getdriver</code> against the original
     
    10561056putting file HDNIS01_de.NTF as \W32X86\HDNIS01_de.NTF
    10571057</pre><p>
    1058 <a class="indexterm" name="id2621716"></a>
    1059 <a class="indexterm" name="id2621723"></a>
    1060 <a class="indexterm" name="id2621730"></a>
     1058<a class="indexterm" name="id2628683"></a>
     1059<a class="indexterm" name="id2628690"></a>
     1060<a class="indexterm" name="id2628697"></a>
    10611061Whew  that was a lot of typing! Most drivers are a lot smaller  many have only three generic
    10621062PostScript driver files plus one PPD. While we did retrieve the files from the <code class="filename">2</code>
     
    10651065<code class="literal">adddriver</code> command, which we will run shortly (and do not forget to also put the files
    10661066for the Windows 9x/Me architecture into the <code class="filename">WIN40/</code> subdirectory should you need them).
    1067 </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2621776"></a><code class="literal">smbclient</code> to Confirm Driver Installation</h4></div></div></div><p>
    1068 <a class="indexterm" name="id2621789"></a>
    1069 <a class="indexterm" name="id2621796"></a>
     1067</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2628743"></a><code class="literal">smbclient</code> to Confirm Driver Installation</h4></div></div></div><p>
     1068<a class="indexterm" name="id2628756"></a>
     1069<a class="indexterm" name="id2628763"></a>
    10701070For now we verify that our files are there. This can be done with <code class="literal">smbclient</code>, too
    10711071(but, of course, you can log in via SSH also and do this through a standard UNIX shell access):
     
    11081108              40976 blocks of size 262144. 709 blocks available
    11091109</pre><p>
    1110 <a class="indexterm" name="id2621870"></a>
    1111 <a class="indexterm" name="id2621877"></a>
    1112 <a class="indexterm" name="id2621884"></a>
     1110<a class="indexterm" name="id2628837"></a>
     1111<a class="indexterm" name="id2628844"></a>
     1112<a class="indexterm" name="id2628851"></a>
    11131113Notice that there are already driver files present in the <code class="filename">2</code> subdirectory (probably from a
    11141114previous installation). Once the files for the new driver are there too, you are still a few steps away from
     
    11181118special, namely <span class="emphasis"><em>printer driver files</em></span>, and it does not know to which print queue(s) these
    11191119driver files belong.
    1120 </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2621913"></a>Running <code class="literal">rpcclient</code> with <code class="literal">adddriver</code></h4></div></div></div><p>
    1121 <a class="indexterm" name="id2621932"></a>
    1122 <a class="indexterm" name="id2621938"></a>
    1123 <a class="indexterm" name="id2621945"></a>
     1120</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2628880"></a>Running <code class="literal">rpcclient</code> with <code class="literal">adddriver</code></h4></div></div></div><p>
     1121<a class="indexterm" name="id2628898"></a>
     1122<a class="indexterm" name="id2628905"></a>
     1123<a class="indexterm" name="id2628912"></a>
    11241124Next, you must tell Samba about the special category of the files you just uploaded into the
    11251125<em class="parameter"><code>[print$]</code></em> share. This is done by the <code class="literal">adddriver</code>
     
    11451145Printer Driver dm9110 successfully installed.
    11461146</pre><p>
    1147 <a class="indexterm" name="id2622000"></a>
    1148 <a class="indexterm" name="id2622007"></a>
    1149 <a class="indexterm" name="id2622014"></a>
     1147<a class="indexterm" name="id2628967"></a>
     1148<a class="indexterm" name="id2628974"></a>
     1149<a class="indexterm" name="id2628981"></a>
    11501150After this step, the driver should be recognized by Samba on the print server. You need to be very
    11511151careful when typing the command. Don't exchange the order of the fields. Some changes would lead to
     
    11541154Hints about the syntax of the adddriver command are in the man page.
    11551155provides a more detailed description, should you need it.
    1156 </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2622037"></a>Checking <code class="literal">adddriver</code> Completion</h4></div></div></div><p>
     1156</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2629004"></a>Checking <code class="literal">adddriver</code> Completion</h4></div></div></div><p>
    11571157One indication for Samba's recognition of the files as driver files is the <code class="computeroutput">successfully
    11581158installed</code> message. Another one is the fact that our files have been moved by the
     
    11991199Another verification is that the timestamp of the printing TDB files is now updated
    12001200(and possibly their file size has increased).
    1201 </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2622179"></a>Check Samba for Driver Recognition</h4></div></div></div><p>
    1202 <a class="indexterm" name="id2622187"></a>
     1201</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2629146"></a>Check Samba for Driver Recognition</h4></div></div></div><p>
     1202<a class="indexterm" name="id2629154"></a>
    12031203Now the driver should be registered with Samba. We can easily verify this and will do so in a
    12041204moment. However, this driver is not yet associated with a particular printer. We may check the driver
    12051205status of the files by at least three methods:
    12061206</p><div class="itemizedlist"><ul type="disc"><li><p>
    1207 <a class="indexterm" name="id2622205"></a>
    1208 <a class="indexterm" name="id2622212"></a>
    1209 <a class="indexterm" name="id2622219"></a>
    1210 <a class="indexterm" name="id2622226"></a>
    1211 <a class="indexterm" name="id2622232"></a>
     1207<a class="indexterm" name="id2629171"></a>
     1208<a class="indexterm" name="id2629178"></a>
     1209<a class="indexterm" name="id2629185"></a>
     1210<a class="indexterm" name="id2629192"></a>
     1211<a class="indexterm" name="id2629199"></a>
    12121212        From any Windows client browse Network Neighborhood, find the Samba host, and open the Samba
    12131213        <span class="guiicon">Printers and Faxes</span> folder. Select any printer icon, right-click and select
     
    12191219        the list will differ if you look at it from Windows95/98/ME or Windows NT/2000/XP.)
    12201220        </p></li><li><p>
    1221 <a class="indexterm" name="id2622272"></a>
     1221<a class="indexterm" name="id2629239"></a>
    12221222        From a Windows 200x/XP client (not Windows NT) browse <span class="guiicon">Network Neighborhood</span>,
    12231223        search for the Samba server, open the server's <span class="guiicon">Printers</span> folder,
     
    12481248        95, 98, and Me</span>, you'll have to repeat the whole procedure with the WIN40 architecture
    12491249        and subdirectory.
    1250         </p></li></ul></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2622406"></a>Specific Driver Name Flexibility</h4></div></div></div><p>
    1251 <a class="indexterm" name="id2622415"></a>
     1250        </p></li></ul></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2629373"></a>Specific Driver Name Flexibility</h4></div></div></div><p>
     1251<a class="indexterm" name="id2629381"></a>
    12521252You can name the driver as you like. If you repeat the <code class="literal">adddriver</code> step with the same
    12531253files as before but with a different driver name, it will work the same:
     
    12721272Printer Driver mydrivername successfully installed.
    12731273</pre><p>
    1274 <a class="indexterm" name="id2622462"></a>
    1275 <a class="indexterm" name="id2622469"></a>
    1276 <a class="indexterm" name="id2622476"></a>
     1274<a class="indexterm" name="id2629429"></a>
     1275<a class="indexterm" name="id2629436"></a>
     1276<a class="indexterm" name="id2629442"></a>
    12771277You will be able to bind that driver to any print queue (however, you are responsible that
    12781278you associate drivers to queues that make sense with respect to target printers). You cannot run the
     
    12811281respective subdirectories, so you must execute an <code class="literal">smbclient ... put</code> command before
    12821282each <code class="literal">rpcclient ... adddriver</code> command.
    1283 </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2622521"></a>Running <code class="literal">rpcclient</code> with <code class="literal">setdriver</code></h4></div></div></div><p>
    1284 <a class="indexterm" name="id2622539"></a>
    1285 <a class="indexterm" name="id2622546"></a>
     1283</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2629487"></a>Running <code class="literal">rpcclient</code> with <code class="literal">setdriver</code></h4></div></div></div><p>
     1284<a class="indexterm" name="id2629506"></a>
     1285<a class="indexterm" name="id2629513"></a>
    12861286Samba needs to know which printer owns which driver. Create a mapping of the driver to a printer, and
    12871287store this information in Samba's memory, the TDB files. The <code class="literal">rpcclient setdriver</code> command
     
    13101310or at least send an HUP signal to all running smbd processes to work around this: <strong class="userinput"><code>kill -HUP
    13111311`pidof smbd`</code></strong>.
    1312 </p></div></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2622662"></a>Client Driver Installation Procedure</h2></div></div></div><p>
     1312</p></div></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2629628"></a>Client Driver Installation Procedure</h2></div></div></div><p>
    13131313As Don Quixote said, &#8220;<span class="quote">The proof of the pudding is in the eating.</span>&#8221; The proof
    13141314for our setup lies in the printing. So let's install the printer driver onto the client PCs. This is
    13151315not as straightforward as it may seem. Read on.
    1316 </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2622678"></a>First Client Driver Installation</h3></div></div></div><p>
     1316</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2629645"></a>First Client Driver Installation</h3></div></div></div><p>
    13171317Especially important is the installation onto the first client PC (for each architectural platform
    13181318separately). Once this is done correctly, all further clients are easy to set up and shouldn't need further
     
    13211321user</em></span> nobody. In a DOS box type:
    13221322</p><p><strong class="userinput"><code>net use \\<em class="replaceable"><code>SAMBA-SERVER</code></em>\print$ /user:root</code></strong></p><p>
    1323 Replace root, if needed, by another valid <a class="link" href="smb.conf.5.html#PRINTERADMIN">printer admin</a> user as given in
     1323Replace root, if needed, by another valid <a class="link" href="smb.conf.5.html#PRINTERADMIN" target="_top">printer admin</a> user as given in
    13241324the definition. Should you already be connected as a different user, you will get an error message. There
    13251325is no easy way to get rid of that connection, because Windows does not seem to know a concept of logging
     
    13481348and Faxes</span>).
    13491349</p><p>
    1350 <a class="indexterm" name="id2622855"></a>
     1350<a class="indexterm" name="id2629822"></a>
    13511351Most likely you are tempted to try to print a test page. After all, you now can open the printer
    13521352properties, and on the <span class="guimenu">General</span> tab there is a button offering to do just that. But
     
    13601360For a printer to be truly usable by a Windows NT/200x/XP client, it must possess:
    13611361</p><div class="itemizedlist"><ul type="disc"><li><p>
    1362 <a class="indexterm" name="id2622916"></a>
     1362<a class="indexterm" name="id2629883"></a>
    13631363        A valid <span class="emphasis"><em>device mode</em></span> generated by the driver for the printer (defining things
    13641364        like paper size, orientation and duplex settings).
    13651365        </p></li><li><p>
    1366 <a class="indexterm" name="id2622933"></a>
     1366<a class="indexterm" name="id2629899"></a>
    13671367        A complete set of <span class="emphasis"><em>printer driver data</em></span> generated by the driver.
    13681368        </p></li></ul></div><p>
    1369 <a class="indexterm" name="id2622949"></a>
    1370 <a class="indexterm" name="id2622956"></a>
    1371 <a class="indexterm" name="id2622963"></a>
    1372 <a class="indexterm" name="id2622970"></a>
    1373 <a class="indexterm" name="id2622976"></a>
     1369<a class="indexterm" name="id2629915"></a>
     1370<a class="indexterm" name="id2629922"></a>
     1371<a class="indexterm" name="id2629929"></a>
     1372<a class="indexterm" name="id2629936"></a>
     1373<a class="indexterm" name="id2629943"></a>
    13741374If either of these is incomplete, the clients can produce less than optimal output at best. In the
    13751375worst cases, unreadable garbage or nothing at all comes from the printer, or it produces a harvest of
     
    13851385in the following paragraphs.
    13861386</p><p>
    1387 Be aware that a valid device mode can only be initiated by a <a class="link" href="smb.conf.5.html#PRINTERADMIN">printer admin</a> or root
     1387Be aware that a valid device mode can only be initiated by a <a class="link" href="smb.conf.5.html#PRINTERADMIN" target="_top">printer admin</a> or root
    13881388(the reason should be obvious). Device modes can be correctly set only by executing the printer driver program
    13891389itself. Since Samba cannot execute this Win32 platform driver code, it sets this field initially to NULL
     
    13971397effect to happen and feeds back the new device mode to our Samba server. You can use the native Windows
    13981398NT/200x/XP printer properties page from a Window client for this:
    1399 </p><div class="procedure"><a name="id2623075"></a><p class="title"><b>Procedure 21.1. Procedure to Initialize the Printer Driver Settings</b></p><ol type="1"><li><p>
     1399</p><div class="procedure"><a name="id2630041"></a><p class="title"><b>Procedure 21.1. Procedure to Initialize the Printer Driver Settings</b></p><ol type="1"><li><p>
    14001400        Browse the <span class="guiicon">Network Neighborhood</span>.
    14011401        </p></li><li><p>
     
    14271427folder, too, if you are a Samba printer admin user. From now on, printing should work as expected.
    14281428</p><p>
    1429 <a class="indexterm" name="id2623229"></a>
     1429<a class="indexterm" name="id2630195"></a>
    14301430Samba includes a service-level parameter name <em class="parameter"><code>default devmode</code></em> for generating a default
    14311431device mode for a printer. Some drivers function well with Samba's default set of properties. Others
    14321432may crash the client's spooler service. So use this parameter with caution. It is always better to have
    14331433the client generate a valid device mode for the printer and store it on the server for you.
    1434 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2623255"></a>Additional Client Driver Installation</h3></div></div></div><p>
    1435 <a class="indexterm" name="id2623264"></a>
     1434</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2630216"></a>Additional Client Driver Installation</h3></div></div></div><p>
     1435<a class="indexterm" name="id2630224"></a>
    14361436Every additional driver may be installed in the same way as just described.  Browse <code class="literal">Network
    14371437Neighborhood</code>, open the <span class="guiicon">Printers</span> folder on Samba server, right-click on
     
    14461446</pre><p>
    14471447or this command on Windows NT 4.0 workstations:
    1448 <a class="indexterm" name="id2623331"></a>
     1448<a class="indexterm" name="id2630291"></a>
    14491449</p><pre class="screen">
    14501450<strong class="userinput"><code>rundll32 shell32.dll,Control_RunDLL MAIN.CPL @2</code></strong>
     
    14531453You can enter the commands either inside a <span class="guilabel">DOS box</span> window or in the <span class="guimenuitem">Run
    14541454command...</span> field from the <span class="guimenu">Start</span> menu.
    1455 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2623374"></a>Always Make First Client Connection as root or &#8220;<span class="quote">printer admin</span>&#8221;</h3></div></div></div><p>
     1455</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2630335"></a>Always Make First Client Connection as root or &#8220;<span class="quote">printer admin</span>&#8221;</h3></div></div></div><p>
    14561456After you installed the driver on the Samba server (in its <em class="parameter"><code>[print$]</code></em> share), you
    14571457should always make sure that your first client installation completes correctly. Make it a habit for yourself
    1458 to build the very first connection from a client as <a class="link" href="smb.conf.5.html#PRINTERADMIN">printer admin</a>. This is to make
     1458to build the very first connection from a client as <a class="link" href="smb.conf.5.html#PRINTERADMIN" target="_top">printer admin</a>. This is to make
    14591459sure that:
    14601460</p><div class="itemizedlist"><ul type="disc"><li><p>
     
    14681468printer for <span class="guiicon">duplex</span> as the default, and so on).
    14691469</p><p>
    1470 <a class="indexterm" name="id2623468"></a>
     1470<a class="indexterm" name="id2630429"></a>
    14711471To connect as root to a Samba printer, try this command from a Windows 200x/XP DOS box command prompt:
    14721472</p><pre class="screen">
     
    14771477You will be prompted for <code class="constant">root</code>'s Samba password; type it, wait a few seconds, click on
    14781478<span class="guibutton">Printing Defaults</span>, and proceed to set the job options that should be used as defaults
    1479 by all clients. Alternatively, instead of root you can name one other member of the <a class="link" href="smb.conf.5.html#PRINTERADMIN">printer admin</a> from the setting.
     1479by all clients. Alternatively, instead of root you can name one other member of the <a class="link" href="smb.conf.5.html#PRINTERADMIN" target="_top">printer admin</a> from the setting.
    14801480</p><p>
    14811481Now all the other users downloading and installing the driver the same way (using
    14821482<code class="literal">Point'n'Print</code>) will have the same defaults set for them. If you miss this step, you'll get a
    14831483lot of help desk calls from your users, but maybe you like to talk to people.
    1484 </p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2623547"></a>Other Gotchas</h2></div></div></div><p>
     1484</p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2630508"></a>Other Gotchas</h2></div></div></div><p>
    14851485Your driver is installed. It is now ready for Point'n'Print installation by the clients. You may have tried to
    14861486download and use it on your first client machine, but wait. Let's make sure you are acquainted first with a
     
    14881488advised in the preceding paragraphs. Your users complain about various issues (such as, &#8220;<span class="quote">We need to set
    14891489the paper size for each job from Letter to A4 and it will not store it</span>&#8221;).
    1490 </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2623568"></a>Setting Default Print Options for Client Drivers</h3></div></div></div><p>
     1490</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2630529"></a>Setting Default Print Options for Client Drivers</h3></div></div></div><p>
    14911491The last sentence might be viewed with mixed feelings by some users and Admins. They have struggled for hours
    14921492and could not arrive at a point where their settings seemed to be saved. It is not their fault. The confusing
     
    15251525arrived at with steps C.1 through C.6 will permanently save any settings which will then become the defaults
    15261526for new users. If you want all clients to have the same defaults, you need to conduct these steps as
    1527 administrator (<a class="link" href="smb.conf.5.html#PRINTERADMIN">printer admin</a>) before a client downloads the driver (the clients can
     1527administrator (<a class="link" href="smb.conf.5.html#PRINTERADMIN" target="_top">printer admin</a>) before a client downloads the driver (the clients can
    15281528later set their own per-user defaults by following procedures A or B above). Windows 200x/XP allow per-user
    15291529default settings and the ones the administrator gives them before they set up their own. The parents of the
     
    15371537defaults for all users.
    15381538</p><div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Tip</h3><p>Try (on Windows 200x/XP) to run this command (as a user with the right privileges):
    1539 <a class="indexterm" name="id2623861"></a>
     1539<a class="indexterm" name="id2630823"></a>
    15401540</p><p><strong class="userinput"><code>
    15411541rundll32 printui.dll,PrintUIEntry /p /t3 /n\\<em class="replaceable"><code>SAMBA-SERVER</code></em>\<em class="replaceable"><code>printersharename</code></em>
     
    15481548button (the one that does not set systemwide defaults), you can
    15491549start the commands from inside a DOS box or from <span class="guimenu">Start</span> -&gt; <span class="guimenuitem">Run</span>.
    1550 </p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2623935"></a>Supporting Large Numbers of Printers</h3></div></div></div><p>
     1550</p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2630896"></a>Supporting Large Numbers of Printers</h3></div></div></div><p>
    15511551One issue that has arisen during the recent development phase of Samba is the need to support driver
    15521552downloads for hundreds of printers. Using Windows NT APW for this task is somewhat awkward (to say the least). If
     
    16311631the two commas in the description field). After the <code class="literal">setdriver</code> command
    16321632succeeds, all is well.
    1633 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2624191"></a>Adding New Printers with the Windows NT APW</h3></div></div></div><p>
     1633</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2631152"></a>Adding New Printers with the Windows NT APW</h3></div></div></div><p>
    16341634By default, Samba exhibits all printer shares defined in <code class="filename">smb.conf</code> in the <span class="guiicon">Printers</span>
    16351635folder. Also located in this folder is the Windows NT Add Printer Wizard icon. The APW will be shown only if:
    16361636</p><div class="itemizedlist"><ul type="disc"><li><p>
    16371637        The connected user is able to successfully execute an <code class="literal">OpenPrinterEx(\\server)</code> with
    1638         administrative privileges (i.e., root or <a class="link" href="smb.conf.5.html#PRINTERADMIN">printer admin</a>).
     1638        administrative privileges (i.e., root or <a class="link" href="smb.conf.5.html#PRINTERADMIN" target="_top">printer admin</a>).
    16391639        </p><div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Tip</h3><p> Try this from a Windows 200x/XP DOS box command prompt:
    16401640        </p><p><strong class="userinput"><code>
     
    16431643        Click on <span class="guibutton">Printing Preferences</span>.
    16441644        </p></div></li><li><p>... contains the setting
    1645         <a class="link" href="smb.conf.5.html#SHOWADDPRINTERWIZARD">show add printer wizard = yes</a> (the
     1645        <a class="link" href="smb.conf.5.html#SHOWADDPRINTERWIZARD" target="_top">show add printer wizard = yes</a> (the
    16461646        default).</p></li></ul></div><p>
    16471647The APW can do various things:
     
    16541654        </p></li><li><p>
    16551655        Add an entirely new printer to the Samba host (only in conjunction with a working
    1656         <a class="link" href="smb.conf.5.html#ADDPRINTERCOMMAND">add printer command</a>. A corresponding
    1657         <a class="link" href="smb.conf.5.html#DELETEPRINTERCOMMAND">delete printer command</a> for removing entries from the
     1656        <a class="link" href="smb.conf.5.html#ADDPRINTERCOMMAND" target="_top">add printer command</a>. A corresponding
     1657        <a class="link" href="smb.conf.5.html#DELETEPRINTERCOMMAND" target="_top">delete printer command</a> for removing entries from the
    16581658        <span class="guiicon">Printers</span> folder may also be provided).
    16591659        </p></li></ul></div><p>
    16601660The last one (add a new printer) requires more effort than the previous ones. To use the APW to successfully
    1661 add a printer to a Samba server, the <a class="link" href="smb.conf.5.html#ADDPRINTERCOMMAND">add printer command</a> must have a defined value.
     1661add a printer to a Samba server, the <a class="link" href="smb.conf.5.html#ADDPRINTERCOMMAND" target="_top">add printer command</a> must have a defined value.
    16621662The program hook must successfully add the printer to the UNIX print system (i.e., to
    16631663<code class="filename">/etc/printcap</code>, <code class="filename">/etc/cups/printers.conf</code> or other appropriate files)
     
    16651665</p><p>
    16661666When using the APW from a client, if the named printer share does not exist, smbd will execute the
    1667 <a class="link" href="smb.conf.5.html#ADDPRINTERCOMMAND">add printer command</a> and reparse to attempt to locate the new printer share. If the
     1667<a class="link" href="smb.conf.5.html#ADDPRINTERCOMMAND" target="_top">add printer command</a> and reparse to attempt to locate the new printer share. If the
    16681668share is still not defined, an error of "<span class="errorname">Access Denied"</span> is returned to the client. The
    1669 <a class="link" href="smb.conf.5.html#ADDPRINTERCOMMAND">add printer command</a> is executed under the context of the connected user, not
    1670 necessarily a root account. A <a class="link" href="smb.conf.5.html#MAPTOGUEST">map to guest = bad user</a> may have connected
     1669<a class="link" href="smb.conf.5.html#ADDPRINTERCOMMAND" target="_top">add printer command</a> is executed under the context of the connected user, not
     1670necessarily a root account. A <a class="link" href="smb.conf.5.html#MAPTOGUEST" target="_top">map to guest = bad user</a> may have connected
    16711671you unwittingly under the wrong privilege. You should check it by using the <code class="literal">smbstatus</code>
    16721672command.
    1673 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2624451"></a>Error Message: &#8220;<span class="quote">Cannot connect under a different Name</span>&#8221;</h3></div></div></div><p>
     1673</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2631412"></a>Error Message: &#8220;<span class="quote">Cannot connect under a different Name</span>&#8221;</h3></div></div></div><p>
    16741674Once you are connected with the wrong credentials, there is no means to reverse the situation other than
    16751675to close all Explorer windows, and perhaps reboot.
    16761676</p><div class="itemizedlist"><ul type="disc"><li><p>
    1677 <a class="indexterm" name="id2624470"></a>
     1677<a class="indexterm" name="id2631432"></a>
    16781678        The <code class="literal">net use \\SAMBA-SERVER\sharename /user:root</code> gives you an error message:
    16791679        &#8220;<span class="quote">Multiple connections to a server or a shared resource by the same user utilizing
     
    17011701</pre><p>
    17021702This will also disconnect all mapped drives and will allow you create fresh connection as required.
    1703 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2624564"></a>Take Care When Assembling Driver Files</h3></div></div></div><p>
     1703</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2631526"></a>Take Care When Assembling Driver Files</h3></div></div></div><p>
    17041704You need to be extremely careful when you take notes about the files belonging to a particular
    17051705driver. Don't confuse the files for driver version &#8220;<span class="quote">0</span>&#8221; (for Windows 9x/Me, going into
     
    18321832correct driver files for each driver version. Don't rely on the names alone, and don't interchange files
    18331833belonging to different driver versions.
    1834 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2624873"></a>Samba and Printer Ports</h3></div></div></div><p>
    1835 <a class="indexterm" name="id2624881"></a>
    1836 <a class="indexterm" name="id2624888"></a>
    1837 <a class="indexterm" name="id2624895"></a>
    1838 <a class="indexterm" name="id2624902"></a>
     1834</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2631835"></a>Samba and Printer Ports</h3></div></div></div><p>
     1835<a class="indexterm" name="id2631843"></a>
     1836<a class="indexterm" name="id2631850"></a>
     1837<a class="indexterm" name="id2631857"></a>
     1838<a class="indexterm" name="id2631864"></a>
    18391839Windows NT/2000 print servers associate a port with each printer. These normally take the form of
    18401840<code class="filename">LPT1:</code>, <code class="filename">COM1:</code>, <code class="filename">FILE:</code>, and so on. Samba must also
     
    18451845information to keep the Windows clients happy.
    18461846</p><p>
    1847 <a class="indexterm" name="id2624946"></a>
     1847<a class="indexterm" name="id2631908"></a>
    18481848Samba does not support the concept of <code class="constant">Printer Pooling</code> internally either. Printer
    18491849pooling assigns a logical printer to multiple ports as a form of load balancing or failover.
    18501850</p><p>
    18511851If you require multiple ports to be defined for some reason or another (my users and my boss should not know
    1852 that they are working with Samba), configure the <a class="link" href="smb.conf.5.html#ENUMPORTSCOMMAND">enumports command</a>,
     1852that they are working with Samba), configure the <a class="link" href="smb.conf.5.html#ENUMPORTSCOMMAND" target="_top">enumports command</a>,
    18531853which can be used to define an external program that generates a listing of ports on a system.
    1854 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2624983"></a>Avoiding Common Client Driver Misconfiguration</h3></div></div></div><p>
     1854</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2631945"></a>Avoiding Common Client Driver Misconfiguration</h3></div></div></div><p>
    18551855So now the printing works, but there are still problems. Most jobs print well, some do not print at
    18561856all. Some jobs have problems with fonts, which do not look good. Some jobs print fast and some
     
    18591859Chapter</a>, <a class="link" href="CUPS-printing.html#cups-avoidps1" title="Avoiding Critical PostScript Driver Settings on the Client">Avoiding Critical PostScript Driver Settings on the
    18601860Client</a>.
    1861 </p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2625020"></a>The Imprints Toolset</h2></div></div></div><p>
    1862 <a class="indexterm" name="id2625028"></a>
     1861</p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2631982"></a>The Imprints Toolset</h2></div></div></div><p>
     1862<a class="indexterm" name="id2631990"></a>
    18631863The Imprints tool set provides a UNIX equivalent of the Windows NT APW.  For complete information, please
    18641864refer to the <a class="ulink" href="http://imprints.sourceforge.net/" target="_top">Imprints</a> Web site as well as the
     
    18721872there are prepared packages to use. Packages for more up-to-date print devices are needed if Imprints
    18731873should have a future. Information regarding the Imprints toolset can be obtained from the <a class="ulink" href="http://imprints.sourceforge.net/" target="_top">Imprints</a> home page.
    1874 </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2625077"></a>What Is Imprints?</h3></div></div></div><p>
     1874</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2632038"></a>What Is Imprints?</h3></div></div></div><p>
    18751875Imprints is a collection of tools for supporting these goals:
    18761876</p><div class="itemizedlist"><ul type="disc"><li><p>
     
    18811881        Providing an installation client that will obtain printer drivers from a central Internet (or intranet) Imprints Server
    18821882        repository and install them on remote Samba and Windows NT4 print servers.
    1883         </p></li></ul></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2625111"></a>Creating Printer Driver Packages</h3></div></div></div><p>
     1883        </p></li></ul></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2632072"></a>Creating Printer Driver Packages</h3></div></div></div><p>
    18841884The process of creating printer driver packages is beyond the scope of this document (refer to Imprints.txt,
    18851885included with the Samba distribution for more information). In short, an Imprints driver package
    18861886is a gzipped tarball containing the driver files, related INF files, and a control file needed by the
    18871887installation client.
    1888 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2625127"></a>The Imprints Server</h3></div></div></div><p>
     1888</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2632088"></a>The Imprints Server</h3></div></div></div><p>
    18891889The Imprints server is really a database server that may be queried via standard HTTP mechanisms. Each
    18901890printer entry in the database has an associated URL for the actual downloading of the package. Each
     
    18931893the one referred in the Imprints database. It is strongly recommended that this security check
    18941894not be disabled.
    1895 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2625144"></a>The Installation Client</h3></div></div></div><p>
     1895</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2632106"></a>The Installation Client</h3></div></div></div><p>
    18961896More information regarding the Imprints installation client is available from the documentation file
    18971897<code class="filename">Imprints-Client-HOWTO.ps</code> that is included with the Imprints source package. The Imprints
     
    19231923The way of sidestepping this limitation is to require that all Imprints printer driver packages include both the Intel Windows NT and
    1924192495/98 printer drivers and that the NT driver is installed first.
    1925 </p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2625278"></a>Adding Network Printers without User Interaction</h2></div></div></div><p>
     1925</p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2632239"></a>Adding Network Printers without User Interaction</h2></div></div></div><p>
    19261926The following MS Knowledge Base article may be of some help if you need to handle Windows 2000 clients:
    19271927<span class="emphasis"><em>How to Add Printers with No User Interaction in Windows 2000,</em></span> (<a class="ulink" href="http://support.microsoft.com/default.aspx?scid=kb;en-us;189105" target="_top">Microsoft KB 189105</a>).  It also
     
    19821982added, changed, and deleted at will on the server with no user intervention required from the clients
    19831983(you just need to keep the logon scripts up to date).
    1984 </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2625549"></a>The <code class="literal">addprinter</code> Command</h2></div></div></div><p>
     1984</p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2632512"></a>The <code class="literal">addprinter</code> Command</h2></div></div></div><p>
    19851985The <code class="literal">addprinter</code> command can be configured to be a shell script or program executed by
    19861986Samba. It is triggered by running the APW from a client against the Samba print server. The APW asks
     
    19901990by executing the <code class="literal">lpadmin</code> command on more modern systems) and create the associated share,
    19911991then the APW will in effect really create a new printer on Samba and the UNIX print subsystem!
    1992 </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2625587"></a>Migration of Classical Printing to Samba</h2></div></div></div><p>
     1992</p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2632551"></a>Migration of Classical Printing to Samba</h2></div></div></div><p>
    19931993The basic NT-style printer driver management has not changed considerably in 3.0 over the 2.2.x releases
    19941994(apart from many small improvements). Here migration should be quite easy, especially if you followed
     
    20202020        using smbclient and rpcclient. See the Imprints installation client on the <a class="ulink" href="http://imprints.sourceforge.net/" target="_top">Imprints</a> web site for example. See also the discussion of
    20212021        rpcclient usage in <a class="link" href="CUPS-printing.html" title="Chapter 22. CUPS Printing Support">CUPS Printing</a>.
    2022         </p></li></ul></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2625736"></a>Publishing Printer Information in Active Directory or LDAP</h2></div></div></div><p>
     2022        </p></li></ul></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2632700"></a>Publishing Printer Information in Active Directory or LDAP</h2></div></div></div><p>
    20232023This topic has also been addressed in <a class="link" href="NetCommand.html" title="Chapter 13. Remote and Local Management: The Net Command">Remote and Local Management  The
    20242024Net Command</a>. If you wish to volunteer your services to help document this further, please contact
    20252025<a class="ulink" href="mail://jht@samba.org" target="_top">John H. Terpstra</a>.
    2026 </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2625765"></a>Common Errors</h2></div></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2625771"></a>I Give My Root Password but I Do Not Get Access</h3></div></div></div><p>
     2026</p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2632729"></a>Common Errors</h2></div></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2632735"></a>I Give My Root Password but I Do Not Get Access</h3></div></div></div><p>
    20272027Do not confuse the root password, which is valid for the UNIX system (and in most cases stored in the
    20282028form of a one-way hash in a file named <code class="filename">/etc/shadow</code>), with the password used to
     
    20352035Retype new SMB password: secret
    20362036</pre><p>
    2037 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2625812"></a>My Print Jobs Get Spooled into the Spooling Directory, but Then Get Lost</h3></div></div></div><p>
     2037</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2632776"></a>My Print Jobs Get Spooled into the Spooling Directory, but Then Get Lost</h3></div></div></div><p>
    20382038Do not use the existing UNIX print system spool directory for the Samba spool directory. It may seem
    20392039convenient and a savings of space, but it only leads to problems. The two must be separate. The UNIX/Linux
Note: See TracChangeset for help on using the changeset viewer.