diff options
Diffstat (limited to 'docs/htmldocs/Samba3-HOWTO/classicalprinting.html')
-rw-r--r-- | docs/htmldocs/Samba3-HOWTO/classicalprinting.html | 100 |
1 files changed, 50 insertions, 50 deletions
diff --git a/docs/htmldocs/Samba3-HOWTO/classicalprinting.html b/docs/htmldocs/Samba3-HOWTO/classicalprinting.html index 8487120ca7..e2896ae8f0 100644 --- a/docs/htmldocs/Samba3-HOWTO/classicalprinting.html +++ b/docs/htmldocs/Samba3-HOWTO/classicalprinting.html @@ -1,11 +1,11 @@ -<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.4.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"><<a class="email" href="mailto:kpfeifle@danka.de">kpfeifle@danka.de</a>></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"><<a class="email" href="mailto:jerry@samba.org">jerry@samba.org</a>></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"><<a class="email" href="mailto:jht@samba.org">jht@samba.org</a>></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#id2622106">Features and Benefits</a></span></dt><dt><span class="sect1"><a href="classicalprinting.html#id2622329">Technical Introduction</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2622481">Client to Samba Print Job Processing</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2622540">Printing-Related Configuration Parameters</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2622641">Simple Print Configuration</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2622925">Verifying Configuration with testparm</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2623122">Rapid Configuration Validation</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2623522">Extended Printing Configuration</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2623977">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#id2626693">Point'n'Print Client Drivers on Samba Servers</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2626862">The Obsoleted [printer$] Section</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2626983">Creating the [print$] Share</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2627200">[print$] Stanza Parameters</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2627521">The [print$] Share Directory</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2627663">Installing Drivers into [print$]</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2627756">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#id2629689">Client Driver Installation Procedure</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2629706">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#id2630271">Additional Client Driver Installation</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2630389">Always Make First Client Connection as root or printer admin</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2630563">Other Gotchas</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2630583">Setting Default Print Options for Client Drivers</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2630951">Supporting Large Numbers of Printers</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2631207">Adding New Printers with the Windows NT APW</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2631467">Error Message: Cannot connect under a different Name</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2631580">Take Care When Assembling Driver Files</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2631890">Samba and Printer Ports</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2631999">Avoiding Common Client Driver Misconfiguration</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2632036">The Imprints Toolset</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2632082">What Is Imprints?</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2632116">Creating Printer Driver Packages</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2632132">The Imprints Server</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2632150">The Installation Client</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2632283">Adding Network Printers without User Interaction</a></span></dt><dt><span class="sect1"><a href="classicalprinting.html#id2632557">The addprinter Command</a></span></dt><dt><span class="sect1"><a href="classicalprinting.html#id2632596">Migration of Classical Printing to Samba</a></span></dt><dt><span class="sect1"><a href="classicalprinting.html#id2632744">Publishing Printer Information in Active Directory or LDAP</a></span></dt><dt><span class="sect1"><a href="classicalprinting.html#id2632774">Common Errors</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2632779">I Give My Root Password but I Do Not Get Access</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2632821">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="id2622106"></a>Features and Benefits</h2></div></div></div><p> +<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.4.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"><<a class="email" href="mailto:kpfeifle@danka.de">kpfeifle@danka.de</a>></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"><<a class="email" href="mailto:jerry@samba.org">jerry@samba.org</a>></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"><<a class="email" href="mailto:jht@samba.org">jht@samba.org</a>></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#id2622106">Features and Benefits</a></span></dt><dt><span class="sect1"><a href="classicalprinting.html#id2622330">Technical Introduction</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2622481">Client to Samba Print Job Processing</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2622540">Printing-Related Configuration Parameters</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2622641">Simple Print Configuration</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2622925">Verifying Configuration with testparm</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2623122">Rapid Configuration Validation</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2623522">Extended Printing Configuration</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2623977">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#id2626693">Point'n'Print Client Drivers on Samba Servers</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2626862">The Obsoleted [printer$] Section</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2626984">Creating the [print$] Share</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2627200">[print$] Stanza Parameters</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2627521">The [print$] Share Directory</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2627663">Installing Drivers into [print$]</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2627756">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#id2629689">Client Driver Installation Procedure</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2629706">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#id2630271">Additional Client Driver Installation</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2630390">Always Make First Client Connection as root or printer admin</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2630563">Other Gotchas</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2630584">Setting Default Print Options for Client Drivers</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2630951">Supporting Large Numbers of Printers</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2631207">Adding New Printers with the Windows NT APW</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2631467">Error Message: Cannot connect under a different Name</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2631581">Take Care When Assembling Driver Files</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2631890">Samba and Printer Ports</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2631999">Avoiding Common Client Driver Misconfiguration</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2632036">The Imprints Toolset</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2632082">What Is Imprints?</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2632117">Creating Printer Driver Packages</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2632132">The Imprints Server</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2632150">The Installation Client</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2632283">Adding Network Printers without User Interaction</a></span></dt><dt><span class="sect1"><a href="classicalprinting.html#id2632557">The addprinter Command</a></span></dt><dt><span class="sect1"><a href="classicalprinting.html#id2632596">Migration of Classical Printing to Samba</a></span></dt><dt><span class="sect1"><a href="classicalprinting.html#id2632744">Publishing Printer Information in Active Directory or LDAP</a></span></dt><dt><span class="sect1"><a href="classicalprinting.html#id2632774">Common Errors</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2632780">I Give My Root Password but I Do Not Get Access</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2632821">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="id2622106"></a>Features and Benefits</h2></div></div></div><p> <a class="indexterm" name="id2622114"></a> Printing is often a mission-critical service for the users. Samba can provide this service reliably and seamlessly for a client network consisting of Windows workstations. </p><p> -<a class="indexterm" name="id2622127"></a> +<a class="indexterm" name="id2622128"></a> <a class="indexterm" name="id2622134"></a> -<a class="indexterm" name="id2622141"></a> +<a class="indexterm" name="id2622142"></a> <a class="indexterm" name="id2622148"></a> <a class="indexterm" name="id2622155"></a> <a class="indexterm" name="id2622162"></a> @@ -30,7 +30,7 @@ efficient in case of large numbers of printers. If a central accounting of print page and supplying the raw data for all sorts of statistical reports) is required, this function is best supported by the newer Common UNIX Printing System (CUPS) as the print subsystem underneath the Samba hood. </p><p> -<a class="indexterm" name="id2622268"></a> +<a class="indexterm" name="id2622269"></a> <a class="indexterm" name="id2622275"></a> This chapter outlines the fundamentals of Samba printing as implemented by the more traditional UNIX BSD- and System V-style printing systems. Much of the information in this chapter applies also to CUPS. If @@ -39,12 +39,12 @@ do. For further information refer to <a class="link" href="CUPS-printing.html" t </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p> <a class="indexterm" name="id2622301"></a> <a class="indexterm" name="id2622308"></a> -<a class="indexterm" name="id2622314"></a> +<a class="indexterm" name="id2622315"></a> Most of the following examples have been verified on Windows XP Professional clients. Where this document describes the responses to commands given, bear in mind that Windows 200x/XP clients are quite similar but may differ in minor details. Windows NT4 is somewhat different again. -</p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2622329"></a>Technical Introduction</h2></div></div></div><p> -<a class="indexterm" name="id2622337"></a> +</p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2622330"></a>Technical Introduction</h2></div></div></div><p> +<a class="indexterm" name="id2622338"></a> <a class="indexterm" name="id2622344"></a> <a class="indexterm" name="id2622351"></a> Samba's printing support always relies on the installed print subsystem of the UNIX OS it runs on. Samba is a @@ -87,8 +87,8 @@ printer involves six (potentially seven) stages: 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 from the Samba spooling area. This item depends on your print spooler configuration settings.</p></li></ol></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2622540"></a>Printing-Related Configuration Parameters</h3></div></div></div><p> -<a class="indexterm" name="id2622548"></a> -<a class="indexterm" name="id2622555"></a> +<a class="indexterm" name="id2622549"></a> +<a class="indexterm" name="id2622556"></a> <a class="indexterm" name="id2622562"></a> There are a number of configuration parameters to control Samba's printing behavior. Please refer to the man page for <code class="filename">smb.conf</code> for an overview of these. As with other parameters, there are global-level (tagged with a @@ -116,7 +116,7 @@ all clients to print. </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="id2622722"></a><em class="parameter"><code>printing = bsd</code></em></td></tr><tr><td><a class="indexterm" name="id2622733"></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="id2622754"></a><em class="parameter"><code>path = /var/spool/samba</code></em></td></tr><tr><td><a class="indexterm" name="id2622766"></a><em class="parameter"><code>printable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2622777"></a><em class="parameter"><code>public = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2622789"></a><em class="parameter"><code>writable = no</code></em></td></tr></table></div></div><br class="example-break"><p> <a class="indexterm" name="id2622804"></a> <a class="indexterm" name="id2622810"></a> -<a class="indexterm" name="id2622817"></a> +<a class="indexterm" name="id2622818"></a> This is only an example configuration. Samba assigns default values to all configuration parameters. The defaults are conservative and sensible. When a parameter is specified in the <code class="filename">smb.conf</code> file, this overwrites the default value. The <code class="literal">testparm</code> utility when run as root is capable of reporting all @@ -139,7 +139,7 @@ for Boolean settings. Lists of names may be separated by commas, spaces, or tabs <a class="indexterm" name="id2622958"></a> <a class="indexterm" name="id2622965"></a> <a class="indexterm" name="id2622972"></a> -<a class="indexterm" name="id2622978"></a> +<a class="indexterm" name="id2622979"></a> <a class="indexterm" name="id2622985"></a> <a class="indexterm" name="id2622992"></a> <a class="indexterm" name="id2622999"></a> @@ -304,9 +304,9 @@ system on legacy UNIX/Linux installations. New installations predominantly use C separate chapter. The example explicitly names many parameters that do not need to be specified because they are 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 <code class="literal">SWAT</code> to optimize the <code class="filename">smb.conf</code> file to remove all parameters that are set at default. -</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="id2623625"></a><em class="parameter"><code>printing = bsd</code></em></td></tr><tr><td><a class="indexterm" name="id2623636"></a><em class="parameter"><code>load printers = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623648"></a><em class="parameter"><code>show add printer wizard = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623660"></a><em class="parameter"><code>printcap name = /etc/printcap</code></em></td></tr><tr><td><a class="indexterm" name="id2623672"></a><em class="parameter"><code>printer admin = @ntadmin, root</code></em></td></tr><tr><td><a class="indexterm" name="id2623684"></a><em class="parameter"><code>max print jobs = 100</code></em></td></tr><tr><td><a class="indexterm" name="id2623696"></a><em class="parameter"><code>lpq cache time = 20</code></em></td></tr><tr><td><a class="indexterm" name="id2623708"></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="id2623729"></a><em class="parameter"><code>comment = All Printers</code></em></td></tr><tr><td><a class="indexterm" name="id2623740"></a><em class="parameter"><code>printable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623752"></a><em class="parameter"><code>path = /var/spool/samba</code></em></td></tr><tr><td><a class="indexterm" name="id2623764"></a><em class="parameter"><code>browseable = no</code></em></td></tr><tr><td><a class="indexterm" name="id2623775"></a><em class="parameter"><code>guest ok = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623787"></a><em class="parameter"><code>public = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623798"></a><em class="parameter"><code>read only = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623810"></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="id2623831"></a><em class="parameter"><code>comment = Printer with Restricted Access</code></em></td></tr><tr><td><a class="indexterm" name="id2623843"></a><em class="parameter"><code>path = /var/spool/samba_my_printer</code></em></td></tr><tr><td><a class="indexterm" name="id2623855"></a><em class="parameter"><code>printer admin = kurt</code></em></td></tr><tr><td><a class="indexterm" name="id2623867"></a><em class="parameter"><code>browseable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623878"></a><em class="parameter"><code>printable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623890"></a><em class="parameter"><code>writable = no</code></em></td></tr><tr><td><a class="indexterm" name="id2623901"></a><em class="parameter"><code>hosts allow = 0.0.0.0</code></em></td></tr><tr><td><a class="indexterm" name="id2623913"></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="id2623925"></a><em class="parameter"><code>guest ok = no</code></em></td></tr></table></div></div><br class="example-break"><p> +</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="id2623625"></a><em class="parameter"><code>printing = bsd</code></em></td></tr><tr><td><a class="indexterm" name="id2623636"></a><em class="parameter"><code>load printers = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623648"></a><em class="parameter"><code>show add printer wizard = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623660"></a><em class="parameter"><code>printcap name = /etc/printcap</code></em></td></tr><tr><td><a class="indexterm" name="id2623672"></a><em class="parameter"><code>printer admin = @ntadmin, root</code></em></td></tr><tr><td><a class="indexterm" name="id2623684"></a><em class="parameter"><code>max print jobs = 100</code></em></td></tr><tr><td><a class="indexterm" name="id2623696"></a><em class="parameter"><code>lpq cache time = 20</code></em></td></tr><tr><td><a class="indexterm" name="id2623708"></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="id2623729"></a><em class="parameter"><code>comment = All Printers</code></em></td></tr><tr><td><a class="indexterm" name="id2623740"></a><em class="parameter"><code>printable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623752"></a><em class="parameter"><code>path = /var/spool/samba</code></em></td></tr><tr><td><a class="indexterm" name="id2623764"></a><em class="parameter"><code>browseable = no</code></em></td></tr><tr><td><a class="indexterm" name="id2623775"></a><em class="parameter"><code>guest ok = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623787"></a><em class="parameter"><code>public = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623799"></a><em class="parameter"><code>read only = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623810"></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="id2623831"></a><em class="parameter"><code>comment = Printer with Restricted Access</code></em></td></tr><tr><td><a class="indexterm" name="id2623843"></a><em class="parameter"><code>path = /var/spool/samba_my_printer</code></em></td></tr><tr><td><a class="indexterm" name="id2623855"></a><em class="parameter"><code>printer admin = kurt</code></em></td></tr><tr><td><a class="indexterm" name="id2623867"></a><em class="parameter"><code>browseable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623878"></a><em class="parameter"><code>printable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623890"></a><em class="parameter"><code>writable = no</code></em></td></tr><tr><td><a class="indexterm" name="id2623902"></a><em class="parameter"><code>hosts allow = 0.0.0.0</code></em></td></tr><tr><td><a class="indexterm" name="id2623913"></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="id2623925"></a><em class="parameter"><code>guest ok = no</code></em></td></tr></table></div></div><br class="example-break"><p> <a class="indexterm" name="id2623939"></a> -<a class="indexterm" name="id2623944"></a> +<a class="indexterm" name="id2623945"></a> <a class="indexterm" name="id2623950"></a> This is an example configuration. You may not find all the settings that are in the configuration file that was provided by the OS vendor. Samba configuration parameters, if not explicitly set, default to a sensible @@ -317,8 +317,8 @@ The following is a discussion of the settings from <a class="link" href="classic Configuration</a> <a class="link" href="classicalprinting.html#extbsdpr" title="Example 21.2. Extended BSD Printing Configuration">Extended BSD Printing Configuration</a>. </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2624002"></a>The [global] Section</h4></div></div></div><p> <a class="indexterm" name="id2624010"></a> -<a class="indexterm" name="id2624016"></a> -<a class="indexterm" name="id2624023"></a> +<a class="indexterm" name="id2624017"></a> +<a class="indexterm" name="id2624024"></a> <a class="indexterm" name="id2624030"></a> The <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 <em class="parameter"><code>[global]</code></em> contains all parameters that apply to the server as a whole. It is the place @@ -331,8 +331,8 @@ globally set share settings and specify other values). <a class="indexterm" name="id2624104"></a> <a class="indexterm" name="id2624111"></a> <a class="indexterm" name="id2624118"></a> -<a class="indexterm" name="id2624124"></a> -<a class="indexterm" name="id2624131"></a> +<a class="indexterm" name="id2624125"></a> +<a class="indexterm" name="id2624132"></a> <a class="indexterm" name="id2624138"></a> <a class="indexterm" name="id2624145"></a> <a class="indexterm" name="id2624152"></a> @@ -399,7 +399,7 @@ globally set share settings and specify other values). 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 per-share parameter. This permits different groups to administer each printer share. </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> -<a class="indexterm" name="id2624627"></a> +<a class="indexterm" name="id2624628"></a> <a class="indexterm" name="id2624634"></a> Controls the cache time for the results of the lpq command. It prevents the lpq command being called too often and reduces the load on a heavily used print server. @@ -502,7 +502,7 @@ finds one, it will connect to this and will not connect to a printer with the sa you can see, you could name IP addresses as well as NetBIOS hostnames here. </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> This printer is not open for the guest account. - </p></dd></dl></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2625402"></a>Print Commands</h4></div></div></div><p> + </p></dd></dl></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2625403"></a>Print Commands</h4></div></div></div><p> <a class="indexterm" name="id2625410"></a> <a class="indexterm" name="id2625417"></a> <a class="indexterm" name="id2625424"></a> @@ -528,7 +528,7 @@ J</em></span>, and so on. These letters stand for printer name, spool file, and explained 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 of 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>. </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> -<a class="indexterm" name="id2625950"></a> +<a class="indexterm" name="id2625951"></a> <a class="indexterm" name="id2625957"></a> <a class="indexterm" name="id2625964"></a> <a class="indexterm" name="id2625971"></a> @@ -560,7 +560,7 @@ names of real objects. At the time of running a command with such a placeholder, appropriate value automatically. Print commands can handle all Samba macro substitutions. In regard to printing, the following ones do have special relevance: </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> -<a class="indexterm" name="id2626187"></a> +<a class="indexterm" name="id2626188"></a> The print command must contain at least one occurrence of <em class="parameter"><code>%s</code></em> or <em class="parameter"><code>%f</code></em>. The <em class="parameter"><code>%p</code></em> is optional. If no printer name is supplied, the <em class="parameter"><code>%p</code></em> will be silently removed from the print command. In this case, the job is @@ -573,8 +573,8 @@ used for any printable service that does not have its own print command specifie specified print command for a printable service nor a global print command, spool files will be created but not processed! Most importantly, print files will not be removed, so they will consume disk space. </p><p> -<a class="indexterm" name="id2626252"></a> -<a class="indexterm" name="id2626259"></a> +<a class="indexterm" name="id2626253"></a> +<a class="indexterm" name="id2626260"></a> Printing may fail on some UNIX systems when using the <span class="emphasis"><em>nobody</em></span> account. If this happens, create an alternative guest account and give it the privilege to print. Set up this guest account in the <em class="parameter"><code>[global]</code></em> section with the <em class="parameter"><code>guest account</code></em> parameter. @@ -615,15 +615,15 @@ The additional functionality provided by the new SPOOLSS support includes: or the <a class="ulink" href="http://imprints.sourceforge.net/" target="_top">Imprints</a> tool set. </p></li><li><p> <a class="indexterm" name="id2626524"></a> -<a class="indexterm" name="id2626530"></a> -<a class="indexterm" name="id2626537"></a> +<a class="indexterm" name="id2626531"></a> +<a class="indexterm" name="id2626538"></a> <a class="indexterm" name="id2626544"></a> <a class="indexterm" name="id2626551"></a> Support for the native MS-RPC printing calls such as StartDocPrinter, EnumJobs(), and so on. (See the <a class="ulink" href="http://msdn.microsoft.com/" target="_top">MSDN documentation</a> for more information on the Win32 printing API). </p></li><li><p> -<a class="indexterm" name="id2626571"></a> +<a class="indexterm" name="id2626572"></a> <a class="indexterm" name="id2626578"></a> Support for NT Access Control Lists (ACL) on printer objects. </p></li><li><p> @@ -635,7 +635,7 @@ The additional functionality provided by the new SPOOLSS support includes: <a class="indexterm" name="id2626617"></a> A benefit of updating is that Samba-3 is able to publish its printers to Active Directory (or LDAP). </p><p> -<a class="indexterm" name="id2626628"></a> +<a class="indexterm" name="id2626629"></a> A fundamental difference exists between MS Windows NT print servers and Samba operation. Windows NT permits the installation of local printers that are not shared. This is an artifact of the fact that any Windows NT machine (server or client) may be used by a user as a workstation. Samba will publish all @@ -682,8 +682,8 @@ Samba printer share can be achieved by different means: </p></li><li><p> Using <span class="emphasis"><em>cupsaddsmb</em></span> (only works for the CUPS printing system, not for LPR/LPD, LPRng, and so on). </p></li></ul></div><p> -<a class="indexterm" name="id2626834"></a> -<a class="indexterm" name="id2626841"></a> +<a class="indexterm" name="id2626835"></a> +<a class="indexterm" name="id2626842"></a> Samba does not use these uploaded drivers in any way to process spooled files. These drivers are utilized entirely by the clients who download and install them via the “<span class="quote">Point'n'Print</span>” mechanism supported by Samba. The clients use these drivers to generate print files in the format the printer @@ -702,8 +702,8 @@ system, which is responsible for all further processing, as needed. be sent to the client. </p><p> <a class="indexterm" name="id2626922"></a> -<a class="indexterm" name="id2626928"></a> -<a class="indexterm" name="id2626935"></a> +<a class="indexterm" name="id2626929"></a> +<a class="indexterm" name="id2626936"></a> These parameters, including the <em class="parameter"><code>printer driver file</code></em> parameter, are now removed and cannot be used in installations of Samba-3. The share name <em class="parameter"><code>[print$]</code></em> is now used for the location of downloadable printer @@ -713,8 +713,8 @@ system, which is responsible for all further processing, as needed. of its ACLs) to support printer driver downloads and uploads. This does not mean Windows 9x/Me clients are now thrown aside. They can use Samba's <em class="parameter"><code>[print$]</code></em> share support just fine. - </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2626983"></a>Creating the [print$] Share</h3></div></div></div><p> -<a class="indexterm" name="id2626991"></a> + </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2626984"></a>Creating the [print$] Share</h3></div></div></div><p> +<a class="indexterm" name="id2626992"></a> In order to support the uploading and downloading of printer driver files, you must first configure a file share named <em class="parameter"><code>[print$]</code></em>. The public name of this share is hard coded in the MS Windows clients. It cannot be renamed, since Windows clients are programmed to search for a @@ -724,7 +724,7 @@ You should modify the server's file to add the global parameters and create the <em class="parameter"><code>[print$]</code></em> file share (of course, some of the parameter values, such as <a class="link" href="smb.conf.5.html#PATH" target="_top">path</a>, are arbitrary and should be replaced with appropriate values for your site). See <a class="link" href="classicalprinting.html#prtdollar" title="Example 21.3. [print$] Example">[print\$] Example</a>. -</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="id2627076"></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="id2627112"></a><em class="parameter"><code>comment = Printer Driver Download Area</code></em></td></tr><tr><td><a class="indexterm" name="id2627123"></a><em class="parameter"><code>path = /etc/samba/drivers</code></em></td></tr><tr><td><a class="indexterm" name="id2627135"></a><em class="parameter"><code>browseable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2627147"></a><em class="parameter"><code>guest ok = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2627158"></a><em class="parameter"><code>read only = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2627170"></a><em class="parameter"><code>write list = @ntadmin, root</code></em></td></tr></table></div></div><br class="example-break"><p> +</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="id2627076"></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="id2627112"></a><em class="parameter"><code>comment = Printer Driver Download Area</code></em></td></tr><tr><td><a class="indexterm" name="id2627124"></a><em class="parameter"><code>path = /etc/samba/drivers</code></em></td></tr><tr><td><a class="indexterm" name="id2627135"></a><em class="parameter"><code>browseable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2627147"></a><em class="parameter"><code>guest ok = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2627158"></a><em class="parameter"><code>read only = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2627170"></a><em class="parameter"><code>write list = @ntadmin, root</code></em></td></tr></table></div></div><br class="example-break"><p> Of course, you also need to ensure that the directory named by the <a class="link" href="smb.conf.5.html#PATH" target="_top">path</a> parameter exists on the UNIX file system. </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2627200"></a>[print$] Stanza Parameters</h3></div></div></div><p> @@ -906,7 +906,7 @@ driver files named on the printout. You'll need to recognize what Windows (and S (this may vary slightly for Windows NT). You need to note all filenames for the next steps. </p><p> <a class="indexterm" name="id2628164"></a> -<a class="indexterm" name="id2628170"></a> +<a class="indexterm" name="id2628171"></a> <a class="indexterm" name="id2628177"></a> Another method to quickly test the driver filenames and related paths is provided by the <code class="literal">rpcclient</code> utility. Run it with <code class="literal">enumdrivers</code> or with the @@ -1056,8 +1056,8 @@ putting file HDNIS01Aux.dll as \W32X86\HDNIS01Aux.dll putting file HDNIS01_de.NTF as \W32X86\HDNIS01_de.NTF </pre><p> <a class="indexterm" name="id2628744"></a> -<a class="indexterm" name="id2628750"></a> -<a class="indexterm" name="id2628757"></a> +<a class="indexterm" name="id2628751"></a> +<a class="indexterm" name="id2628758"></a> Whew that was a lot of typing! Most drivers are a lot smaller many have only three generic PostScript driver files plus one PPD. While we did retrieve the files from the <code class="filename">2</code> subdirectory of the <code class="filename">W32X86</code> directory from the Windows box, we do not put them @@ -1065,7 +1065,7 @@ subdirectory of the <code class="filename">W32X86</code> directory from the Wind <code class="literal">adddriver</code> command, which we will run shortly (and do not forget to also put the files for the Windows 9x/Me architecture into the <code class="filename">WIN40/</code> subdirectory should you need them). </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2628804"></a><code class="literal">smbclient</code> to Confirm Driver Installation</h4></div></div></div><p> -<a class="indexterm" name="id2628816"></a> +<a class="indexterm" name="id2628817"></a> <a class="indexterm" name="id2628823"></a> For now we verify that our files are there. This can be done with <code class="literal">smbclient</code>, too (but, of course, you can log in via SSH also and do this through a standard UNIX shell access): @@ -1117,7 +1117,7 @@ like you retrieve ordinary files from a file share, by opening print$ in Windows install them per Point'n'Print. The reason is that Samba does not yet know that these files are something special, namely <span class="emphasis"><em>printer driver files</em></span>, and it does not know to which print queue(s) these driver files belong. -</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2628940"></a>Running <code class="literal">rpcclient</code> with <code class="literal">adddriver</code></h4></div></div></div><p> +</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2628941"></a>Running <code class="literal">rpcclient</code> with <code class="literal">adddriver</code></h4></div></div></div><p> <a class="indexterm" name="id2628959"></a> <a class="indexterm" name="id2628966"></a> <a class="indexterm" name="id2628973"></a> @@ -1199,7 +1199,7 @@ again with <code class="literal">smbclient</code>: Another verification is that the timestamp of the printing TDB files is now updated (and possibly their file size has increased). </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2629206"></a>Check Samba for Driver Recognition</h4></div></div></div><p> -<a class="indexterm" name="id2629214"></a> +<a class="indexterm" name="id2629215"></a> Now the driver should be registered with Samba. We can easily verify this and will do so in a moment. However, this driver is not yet associated with a particular printer. We may check the driver status of the files by at least three methods: @@ -1281,7 +1281,7 @@ files you had put into the <em class="parameter"><code>[print$]</code></em> shar respective subdirectories, so you must execute an <code class="literal">smbclient ... put</code> command before each <code class="literal">rpcclient ... adddriver</code> command. </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2629548"></a>Running <code class="literal">rpcclient</code> with <code class="literal">setdriver</code></h4></div></div></div><p> -<a class="indexterm" name="id2629566"></a> +<a class="indexterm" name="id2629567"></a> <a class="indexterm" name="id2629574"></a> Samba needs to know which printer owns which driver. Create a mapping of the driver to a printer, and store this information in Samba's memory, the TDB files. The <code class="literal">rpcclient setdriver</code> command @@ -1347,7 +1347,7 @@ appeared in your <span class="emphasis"><em>local</em></span> Printer folder (ch <span class="guimenuitem">Settings</span> -> <span class="guimenuitem">Control Panel</span> -> <span class="guiicon">Printers and Faxes</span>). </p><p> -<a class="indexterm" name="id2629876"></a> +<a class="indexterm" name="id2629877"></a> Most likely you are tempted to try to print a test page. After all, you now can open the printer properties, and on the <span class="guimenu">General</span> tab there is a button offering to do just that. But chances are that you get an error message saying "<code class="literal">Unable to print Test Page</code>." The @@ -1369,7 +1369,7 @@ For a printer to be truly usable by a Windows NT/200x/XP client, it must possess <a class="indexterm" name="id2629970"></a> <a class="indexterm" name="id2629977"></a> <a class="indexterm" name="id2629984"></a> -<a class="indexterm" name="id2629990"></a> +<a class="indexterm" name="id2629991"></a> <a class="indexterm" name="id2629997"></a> If either of these is incomplete, the clients can produce less than optimal output at best. In the worst cases, unreadable garbage or nothing at all comes from the printer, or it produces a harvest of @@ -1426,7 +1426,7 @@ device mode to Samba, which now stores it in its TDB files. Once the driver is i you can follow the analogous steps by accessing the <span class="emphasis"><em>local</em></span> <span class="guiicon">Printers</span> folder, too, if you are a Samba printer admin user. From now on, printing should work as expected. </p><p> -<a class="indexterm" name="id2630249"></a> +<a class="indexterm" name="id2630250"></a> Samba includes a service-level parameter name <em class="parameter"><code>default devmode</code></em> for generating a default device mode for a printer. Some drivers function well with Samba's default set of properties. Others may crash the client's spooler service. So use this parameter with caution. It is always better to have @@ -1452,7 +1452,7 @@ or this command on Windows NT 4.0 workstations: </p><p> You can enter the commands either inside a <span class="guilabel">DOS box</span> window or in the <span class="guimenuitem">Run command...</span> field from the <span class="guimenu">Start</span> menu. -</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2630389"></a>Always Make First Client Connection as root or “<span class="quote">printer admin</span>”</h3></div></div></div><p> +</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2630390"></a>Always Make First Client Connection as root or “<span class="quote">printer admin</span>”</h3></div></div></div><p> After you installed the driver on the Samba server (in its <em class="parameter"><code>[print$]</code></em> share), you should always make sure that your first client installation completes correctly. Make it a habit for yourself to 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 @@ -1487,7 +1487,7 @@ download and use it on your first client machine, but wait. Let's make sure you few tips and tricks you may find useful. For example, suppose you did not set the defaults on the printer, as advised in the preceding paragraphs. Your users complain about various issues (such as, “<span class="quote">We need to set the paper size for each job from Letter to A4 and it will not store it</span>”). -</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2630583"></a>Setting Default Print Options for Client Drivers</h3></div></div></div><p> +</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2630584"></a>Setting Default Print Options for Client Drivers</h3></div></div></div><p> The last sentence might be viewed with mixed feelings by some users and Admins. They have struggled for hours and could not arrive at a point where their settings seemed to be saved. It is not their fault. The confusing thing is that in the multitabbed dialog that pops up when you right-click on the printer name and select @@ -1700,7 +1700,7 @@ The easiest way to forcefully terminate all connections from your client to a se <code class="prompt">C:\> </code> net use * /delete </pre><p> This will also disconnect all mapped drives and will allow you create fresh connection as required. -</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2631580"></a>Take Care When Assembling Driver Files</h3></div></div></div><p> +</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2631581"></a>Take Care When Assembling Driver Files</h3></div></div></div><p> You need to be extremely careful when you take notes about the files belonging to a particular driver. Don't confuse the files for driver version “<span class="quote">0</span>” (for Windows 9x/Me, going into <code class="filename">[print$]/WIN/0/</code>), driver version <code class="filename">2</code> (kernel mode driver for Windows NT, @@ -1844,7 +1844,7 @@ print; rather it is a requirement of Windows clients. They insist on being told they request this information; otherwise, they throw an error message at you. So Samba fakes the port information to keep the Windows clients happy. </p><p> -<a class="indexterm" name="id2631962"></a> +<a class="indexterm" name="id2631963"></a> Samba does not support the concept of <code class="constant">Printer Pooling</code> internally either. Printer pooling assigns a logical printer to multiple ports as a form of load balancing or failover. </p><p> @@ -1880,7 +1880,7 @@ Imprints is a collection of tools for supporting these goals: </p></li><li><p> Providing an installation client that will obtain printer drivers from a central Internet (or intranet) Imprints Server repository and install them on remote Samba and Windows NT4 print servers. - </p></li></ul></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2632116"></a>Creating Printer Driver Packages</h3></div></div></div><p> + </p></li></ul></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2632117"></a>Creating Printer Driver Packages</h3></div></div></div><p> The process of creating printer driver packages is beyond the scope of this document (refer to Imprints.txt, included with the Samba distribution for more information). In short, an Imprints driver package is a gzipped tarball containing the driver files, related INF files, and a control file needed by the @@ -2023,7 +2023,7 @@ follow several paths. Here are possible scenarios for migration: This 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 Net Command</a>. If you wish to volunteer your services to help document this further, please contact <a class="ulink" href="mail://jht@samba.org" target="_top">John H. Terpstra</a>. -</p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2632774"></a>Common Errors</h2></div></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2632779"></a>I Give My Root Password but I Do Not Get Access</h3></div></div></div><p> +</p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2632774"></a>Common Errors</h2></div></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2632780"></a>I Give My Root Password but I Do Not Get Access</h3></div></div></div><p> Do not confuse the root password, which is valid for the UNIX system (and in most cases stored in the form of a one-way hash in a file named <code class="filename">/etc/shadow</code>), with the password used to authenticate against Samba. Samba does not know the UNIX password. Root access to Samba resources |