summaryrefslogtreecommitdiff
path: root/docs/htmldocs/Samba3-HOWTO/classicalprinting.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/htmldocs/Samba3-HOWTO/classicalprinting.html')
-rw-r--r--docs/htmldocs/Samba3-HOWTO/classicalprinting.html898
1 files changed, 449 insertions, 449 deletions
diff --git a/docs/htmldocs/Samba3-HOWTO/classicalprinting.html b/docs/htmldocs/Samba3-HOWTO/classicalprinting.html
index 542cfaef3b..83a57f1b8d 100644
--- a/docs/htmldocs/Samba3-HOWTO/classicalprinting.html
+++ b/docs/htmldocs/Samba3-HOWTO/classicalprinting.html
@@ -1,22 +1,22 @@
-<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.5.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#id2622075">Features and Benefits</a></span></dt><dt><span class="sect1"><a href="classicalprinting.html#id2622298">Technical Introduction</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2622450">Client to Samba Print Job Processing</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2622509">Printing-Related Configuration Parameters</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2622610">Simple Print Configuration</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2622894">Verifying Configuration with testparm</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2623091">Rapid Configuration Validation</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2623480">Extended Printing Configuration</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2623935">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#id2626650">Point'n'Print Client Drivers on Samba Servers</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2626819">The Obsoleted [printer$] Section</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2626941">Creating the [print$] Share</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2627158">[print$] Stanza Parameters</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2627479">The [print$] Share Directory</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2627627">Installing Drivers into [print$]</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2627720">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#id2629667">Client Driver Installation Procedure</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2629683">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#id2630248">Additional Client Driver Installation</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2630366">Always Make First Client Connection as root or printer admin</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2630540">Other Gotchas</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2630560">Setting Default Print Options for Client Drivers</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2630928">Supporting Large Numbers of Printers</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2631184">Adding New Printers with the Windows NT APW</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2631444">Error Message: Cannot connect under a different Name</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2631557">Take Care When Assembling Driver Files</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2631819">Samba and Printer Ports</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2631928">Avoiding Common Client Driver Misconfiguration</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2631965">The Imprints Toolset</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2632011">What Is Imprints?</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2632045">Creating Printer Driver Packages</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2632061">The Imprints Server</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2632078">The Installation Client</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id2632212">Adding Network Printers without User Interaction</a></span></dt><dt><span class="sect1"><a href="classicalprinting.html#id2632486">The addprinter Command</a></span></dt><dt><span class="sect1"><a href="classicalprinting.html#id2632524">Migration of Classical Printing to Samba</a></span></dt><dt><span class="sect1"><a href="classicalprinting.html#id2632673">Publishing Printer Information in Active Directory or LDAP</a></span></dt><dt><span class="sect1"><a href="classicalprinting.html#id2632702">Common Errors</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id2632708">I Give My Root Password but I Do Not Get Access</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id2632749">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="id2622075"></a>Features and Benefits</h2></div></div></div><p>
-<a class="indexterm" name="id2622083"></a>
+<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.75.2"><link rel="home" href="index.html" title="The Official Samba 3.5.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" title="Chapter 21. Classical Printing Support"><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#id389000">Features and Benefits</a></span></dt><dt><span class="sect1"><a href="classicalprinting.html#id389202">Technical Introduction</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id389339">Client to Samba Print Job Processing</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id389393">Printing-Related Configuration Parameters</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id389487">Simple Print Configuration</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id389756">Verifying Configuration with <code class="literal">testparm</code></a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id389938">Rapid Configuration Validation</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id390291">Extended Printing Configuration</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id390731">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#id393257">Point'n'Print Client Drivers on Samba Servers</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id393411">The Obsoleted [printer$] Section</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id393521">Creating the [print$] Share</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id393729">[print$] Stanza Parameters</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id394022">The [print$] Share Directory</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id394150">Installing Drivers into [print$]</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id394235">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#id395945">Client Driver Installation Procedure</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id395960">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#id396470">Additional Client Driver Installation</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id396581">Always Make First Client Connection as root or <span class="quote">&#8220;<span class="quote">printer admin</span>&#8221;</span></a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id396739">Other Gotchas</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id396756">Setting Default Print Options for Client Drivers</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id397092">Supporting Large Numbers of Printers</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id397328">Adding New Printers with the Windows NT APW</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id397565">Error Message: <span class="quote">&#8220;<span class="quote">Cannot connect under a different Name</span>&#8221;</span></a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id397664">Take Care When Assembling Driver Files</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id397864">Samba and Printer Ports</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id397963">Avoiding Common Client Driver Misconfiguration</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id397996">The Imprints Toolset</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id398034">What Is Imprints?</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id398063">Creating Printer Driver Packages</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id398076">The Imprints Server</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id398090">The Installation Client</a></span></dt></dl></dd><dt><span class="sect1"><a href="classicalprinting.html#id398206">Adding Network Printers without User Interaction</a></span></dt><dt><span class="sect1"><a href="classicalprinting.html#id398448">The <code class="literal">addprinter</code> Command</a></span></dt><dt><span class="sect1"><a href="classicalprinting.html#id398481">Migration of Classical Printing to Samba</a></span></dt><dt><span class="sect1"><a href="classicalprinting.html#id398612">Publishing Printer Information in Active Directory or LDAP</a></span></dt><dt><span class="sect1"><a href="classicalprinting.html#id398639">Common Errors</a></span></dt><dd><dl><dt><span class="sect2"><a href="classicalprinting.html#id398644">I Give My Root Password but I Do Not Get Access</a></span></dt><dt><span class="sect2"><a href="classicalprinting.html#id398682">My Print Jobs Get Spooled into the Spooling Directory, but Then Get Lost</a></span></dt></dl></dd></dl></div><div class="sect1" title="Features and Benefits"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id389000"></a>Features and Benefits</h2></div></div></div><p>
+<a class="indexterm" name="id389007"></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="id2622096"></a>
-<a class="indexterm" name="id2622103"></a>
-<a class="indexterm" name="id2622110"></a>
-<a class="indexterm" name="id2622117"></a>
-<a class="indexterm" name="id2622124"></a>
-<a class="indexterm" name="id2622131"></a>
-<a class="indexterm" name="id2622138"></a>
-<a class="indexterm" name="id2622145"></a>
-<a class="indexterm" name="id2622152"></a>
-<a class="indexterm" name="id2622159"></a>
-<a class="indexterm" name="id2622166"></a>
-<a class="indexterm" name="id2622173"></a>
-<a class="indexterm" name="id2622180"></a>
-<a class="indexterm" name="id2622187"></a>
+<a class="indexterm" name="id389019"></a>
+<a class="indexterm" name="id389026"></a>
+<a class="indexterm" name="id389033"></a>
+<a class="indexterm" name="id389039"></a>
+<a class="indexterm" name="id389046"></a>
+<a class="indexterm" name="id389053"></a>
+<a class="indexterm" name="id389060"></a>
+<a class="indexterm" name="id389067"></a>
+<a class="indexterm" name="id389073"></a>
+<a class="indexterm" name="id389080"></a>
+<a class="indexterm" name="id389087"></a>
+<a class="indexterm" name="id389094"></a>
+<a class="indexterm" name="id389101"></a>
+<a class="indexterm" name="id389107"></a>
A Samba print service may be run on a standalone or domain member server, side by side with file serving
functions, or on a dedicated print server. It can be made as tightly or as loosely secured as needs dictate.
Configurations may be simple or complex. Available authentication schemes are essentially the same as
@@ -30,23 +30,23 @@ 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="id2622238"></a>
-<a class="indexterm" name="id2622244"></a>
+<a class="indexterm" name="id389148"></a>
+<a class="indexterm" name="id389154"></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
you use CUPS, you may be tempted to jump to the next chapter, but you will certainly miss a few things if you
do. For further information refer to <a class="link" href="CUPS-printing.html" title="Chapter 22. CUPS Printing Support">CUPS Printing Support</a>.
-</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
-<a class="indexterm" name="id2622270"></a>
-<a class="indexterm" name="id2622277"></a>
-<a class="indexterm" name="id2622284"></a>
+</p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
+<a class="indexterm" name="id389176"></a>
+<a class="indexterm" name="id389183"></a>
+<a class="indexterm" name="id389190"></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="id2622298"></a>Technical Introduction</h2></div></div></div><p>
-<a class="indexterm" name="id2622306"></a>
-<a class="indexterm" name="id2622313"></a>
-<a class="indexterm" name="id2622320"></a>
+</p></div></div><div class="sect1" title="Technical Introduction"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id389202"></a>Technical Introduction</h2></div></div></div><p>
+<a class="indexterm" name="id389210"></a>
+<a class="indexterm" name="id389217"></a>
+<a class="indexterm" name="id389224"></a>
Samba's printing support always relies on the installed print subsystem of the UNIX OS it runs on. Samba is a
<code class="literal">middleman.</code> It takes print files from Windows (or other SMB) clients and passes them to the real
printing system for further processing; therefore, it needs to communicate with both sides: the Windows print
@@ -54,42 +54,42 @@ clients and the UNIX printing system. Hence, we must differentiate between the v
of which behave differently, as well as the various UNIX print subsystems, which themselves have different
features and are accessed differently.
</p><p>
-<a class="indexterm" name="id2622346"></a>
-<a class="indexterm" name="id2622353"></a>
+<a class="indexterm" name="id389244"></a>
+<a class="indexterm" name="id389251"></a>
This chapter deals with the traditional way of UNIX printing. The next chapter covers in great detail the more
modern CUPS.
-</p><div class="important" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Important</h3><p>
-<a class="indexterm" name="id2622366"></a>
+</p><div class="important" title="Important" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Important</h3><p>
+<a class="indexterm" name="id389263"></a>
CUPS users, be warned: do not just jump on to the next chapter. You might miss important information only found here!
</p></div><p>
-<a class="indexterm" name="id2622378"></a>
-<a class="indexterm" name="id2622385"></a>
-<a class="indexterm" name="id2622392"></a>
-<a class="indexterm" name="id2622399"></a>
+<a class="indexterm" name="id389274"></a>
+<a class="indexterm" name="id389281"></a>
+<a class="indexterm" name="id389288"></a>
+<a class="indexterm" name="id389295"></a>
It is apparent from postings on the Samba mailing list that print configuration is one of the most problematic
aspects of Samba administration today. Many new Samba administrators have the impression that Samba performs
some sort of print processing. Rest assured, Samba does not perform any type of print processing. It does not
do any form of print filtering.
</p><p>
-<a class="indexterm" name="id2622415"></a>
-<a class="indexterm" name="id2622422"></a>
-<a class="indexterm" name="id2622429"></a>
-<a class="indexterm" name="id2622436"></a>
+<a class="indexterm" name="id389308"></a>
+<a class="indexterm" name="id389315"></a>
+<a class="indexterm" name="id389322"></a>
+<a class="indexterm" name="id389328"></a>
Samba obtains from its clients a data stream (print job) that it spools to a local spool area. When the entire
print job has been received, Samba invokes a local UNIX/Linux print command and passes the spooled file to it.
It is up to the local system printing subsystems to correctly process the print job and to submit it to the
printer.
-</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2622450"></a>Client to Samba Print Job Processing</h3></div></div></div><p>
+</p><div class="sect2" title="Client to Samba Print Job Processing"><div class="titlepage"><div><div><h3 class="title"><a name="id389339"></a>Client to Samba Print Job Processing</h3></div></div></div><p>
Successful printing from a Windows client via a Samba print server to a UNIX
printer involves six (potentially seven) stages:
-</p><div class="orderedlist"><ol type="1"><li><p>Windows opens a connection to the printer share.</p></li><li><p>Samba must authenticate the user.</p></li><li><p>Windows sends a copy of the print file over the network
- into Samba's spooling area.</p></li><li><p>Windows closes the connection.</p></li><li><p>Samba invokes the print command to hand the file over
- 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
+</p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p>Windows opens a connection to the printer share.</p></li><li class="listitem"><p>Samba must authenticate the user.</p></li><li class="listitem"><p>Windows sends a copy of the print file over the network
+ into Samba's spooling area.</p></li><li class="listitem"><p>Windows closes the connection.</p></li><li class="listitem"><p>Samba invokes the print command to hand the file over
+ to the UNIX print subsystem's spooling area.</p></li><li class="listitem"><p>The UNIX print subsystem processes the print job.</p></li><li class="listitem"><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="id2622509"></a>Printing-Related Configuration Parameters</h3></div></div></div><p>
-<a class="indexterm" name="id2622518"></a>
-<a class="indexterm" name="id2622524"></a>
-<a class="indexterm" name="id2622531"></a>
+ configuration settings.</p></li></ol></div></div><div class="sect2" title="Printing-Related Configuration Parameters"><div class="titlepage"><div><div><h3 class="title"><a name="id389393"></a>Printing-Related Configuration Parameters</h3></div></div></div><p>
+<a class="indexterm" name="id389401"></a>
+<a class="indexterm" name="id389408"></a>
+<a class="indexterm" name="id389414"></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
<span class="emphasis"><em>G</em></span> in the listings) and service-level (<span class="emphasis"><em>S</em></span>) parameters.
@@ -103,20 +103,20 @@ page for <code class="filename">smb.conf</code> for an overview of these. As wit
or service-level shares (provided they do not have a different
setting defined for the same parameter, thus overriding the
global default).
- </p></dd></dl></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2622610"></a>Simple Print Configuration</h2></div></div></div><p>
-<a class="indexterm" name="id2622618"></a>
-<a class="indexterm" name="id2622625"></a>
-<a class="indexterm" name="id2622632"></a>
-<a class="indexterm" name="id2622639"></a>
+ </p></dd></dl></div></div></div><div class="sect1" title="Simple Print Configuration"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id389487"></a>Simple Print Configuration</h2></div></div></div><p>
+<a class="indexterm" name="id389495"></a>
+<a class="indexterm" name="id389502"></a>
+<a class="indexterm" name="id389509"></a>
+<a class="indexterm" name="id389516"></a>
<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.
If you compare this with your own, you may find additional parameters that have been preconfigured by your OS
vendor. Following is a discussion and explanation of the parameters. This example does not use many
parameters. However, in many environments these are enough to provide a valid <code class="filename">smb.conf</code> file that enables
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="id2622691"></a><em class="parameter"><code>printing = bsd</code></em></td></tr><tr><td><a class="indexterm" name="id2622702"></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="id2622723"></a><em class="parameter"><code>path = /var/spool/samba</code></em></td></tr><tr><td><a class="indexterm" name="id2622735"></a><em class="parameter"><code>printable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2622746"></a><em class="parameter"><code>public = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2622758"></a><em class="parameter"><code>writable = no</code></em></td></tr></table></div></div><br class="example-break"><p>
-<a class="indexterm" name="id2622773"></a>
-<a class="indexterm" name="id2622779"></a>
-<a class="indexterm" name="id2622786"></a>
+</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 border="0" summary="Simple list" class="simplelist"><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id389563"></a><em class="parameter"><code>printing = bsd</code></em></td></tr><tr><td><a class="indexterm" name="id389575"></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="id389595"></a><em class="parameter"><code>path = /var/spool/samba</code></em></td></tr><tr><td><a class="indexterm" name="id389607"></a><em class="parameter"><code>printable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id389618"></a><em class="parameter"><code>public = yes</code></em></td></tr><tr><td><a class="indexterm" name="id389630"></a><em class="parameter"><code>writable = no</code></em></td></tr></table></div></div><br class="example-break"><p>
+<a class="indexterm" name="id389644"></a>
+<a class="indexterm" name="id389651"></a>
+<a class="indexterm" name="id389658"></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
@@ -124,26 +124,26 @@ settings, both default as well as <code class="filename">smb.conf</code> file se
misconfigured settings. The complete output is easily 360 lines and more, so you may want to pipe it through a
pager program.
</p><p>
-<a class="indexterm" name="id2622829"></a>
-<a class="indexterm" name="id2622836"></a>
-<a class="indexterm" name="id2622843"></a>
+<a class="indexterm" name="id389696"></a>
+<a class="indexterm" name="id389703"></a>
+<a class="indexterm" name="id389710"></a>
The syntax for the configuration file is easy to grasp. You should know that is not very picky about its
syntax. As has been explained elsewhere in this book, Samba tolerates some spelling errors (such as
<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
case-insensitive. It is permissible to use <em class="parameter"><code>Yes/No</code></em> or <em class="parameter"><code>True/False</code></em>
for Boolean settings. Lists of names may be separated by commas, spaces, or tabs.
-</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2622894"></a>Verifying Configuration with <code class="literal">testparm</code></h3></div></div></div><p>
-<a class="indexterm" name="id2622907"></a>
-<a class="indexterm" name="id2622914"></a>
-<a class="indexterm" name="id2622920"></a>
-<a class="indexterm" name="id2622927"></a>
-<a class="indexterm" name="id2622934"></a>
-<a class="indexterm" name="id2622941"></a>
-<a class="indexterm" name="id2622948"></a>
-<a class="indexterm" name="id2622954"></a>
-<a class="indexterm" name="id2622961"></a>
-<a class="indexterm" name="id2622968"></a>
-<a class="indexterm" name="id2622975"></a>
+</p><div class="sect2" title="Verifying Configuration with testparm"><div class="titlepage"><div><div><h3 class="title"><a name="id389756"></a>Verifying Configuration with <code class="literal">testparm</code></h3></div></div></div><p>
+<a class="indexterm" name="id389768"></a>
+<a class="indexterm" name="id389775"></a>
+<a class="indexterm" name="id389782"></a>
+<a class="indexterm" name="id389788"></a>
+<a class="indexterm" name="id389795"></a>
+<a class="indexterm" name="id389802"></a>
+<a class="indexterm" name="id389809"></a>
+<a class="indexterm" name="id389816"></a>
+<a class="indexterm" name="id389822"></a>
+<a class="indexterm" name="id389829"></a>
+<a class="indexterm" name="id389836"></a>
To see all (or at least most) printing-related settings in Samba, including the implicitly used ones, try the
command outlined below. This command greps for all occurrences of <code class="constant">lp</code>,
<code class="constant">print</code>, <code class="constant">spool</code>, <code class="constant">driver</code>,
@@ -190,15 +190,15 @@ with settings shown in <a class="link" href="classicalprinting.html#simpleprc" t
</p><p>
You can easily verify which settings were implicitly added by Samba's default behavior. <span class="emphasis"><em>Remember: it
may be important in your future dealings with Samba.</em></span>
-</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
+</p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
The <code class="literal">testparm</code> in Samba-3 behaves differently from that in 2.2.x: used without the
-&#8220;<span class="quote">-v</span>&#8221; switch, it only shows you the settings actually written into! To see the complete
-configuration used, add the &#8220;<span class="quote">-v</span>&#8221; parameter to testparm.
-</p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2623091"></a>Rapid Configuration Validation</h3></div></div></div><p>
-<a class="indexterm" name="id2623100"></a>
-<a class="indexterm" name="id2623107"></a>
-<a class="indexterm" name="id2623113"></a>
-<a class="indexterm" name="id2623120"></a>
+<span class="quote">&#8220;<span class="quote">-v</span>&#8221;</span> switch, it only shows you the settings actually written into! To see the complete
+configuration used, add the <span class="quote">&#8220;<span class="quote">-v</span>&#8221;</span> parameter to testparm.
+</p></div></div><div class="sect2" title="Rapid Configuration Validation"><div class="titlepage"><div><div><h3 class="title"><a name="id389938"></a>Rapid Configuration Validation</h3></div></div></div><p>
+<a class="indexterm" name="id389947"></a>
+<a class="indexterm" name="id389954"></a>
+<a class="indexterm" name="id389960"></a>
+<a class="indexterm" name="id389967"></a>
Should you need to troubleshoot at any stage, please always come back to this point first and verify if
<code class="literal">testparm</code> shows the parameters you expect. To give you a warning from personal experience,
try 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
@@ -211,8 +211,8 @@ mine, you'll see this:
<code class="prompt">root# </code>testparm -v /etc/samba/smb.conf | egrep "(load printers)"
load printers = Yes
</pre><p>
-<a class="indexterm" name="id2623176"></a>
-<a class="indexterm" name="id2623183"></a>
+<a class="indexterm" name="id390017"></a>
+<a class="indexterm" name="id390024"></a>
I assumed that commenting out of this setting should prevent Samba from
publishing my printers, but it still did. It took some time to figure out
the reason. But I am no longer fooled ... at least not by this.
@@ -226,19 +226,19 @@ the reason. But I am no longer fooled ... at least not by this.
<code class="prompt">root# </code><strong class="userinput"><code>testparm -s -v smb.conf.simpleprinting | egrep "(load printers)"</code></strong>
load printers = No
</pre><p>
-<a class="indexterm" name="id2623227"></a>
+<a class="indexterm" name="id390063"></a>
Only when the parameter is explicitly set to <a class="link" href="smb.conf.5.html#LOADPRINTERS" target="_top">load printers = No</a> would
Samba conform with my intentions. So, my strong advice is:
-</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
- behave.</p></li><li><p>Use <code class="literal">testparm</code> to uncover hidden
+</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>Never rely on commented-out parameters.</p></li><li class="listitem"><p>Always set parameters explicitly as you intend them to
+ behave.</p></li><li class="listitem"><p>Use <code class="literal">testparm</code> to uncover hidden
settings that might not reflect your intentions.</p></li></ul></div><p>
The following is the most minimal configuration file:
</p><pre class="screen">
<code class="prompt">root# </code><strong class="userinput"><code>cat /etc/samba/smb.conf-minimal</code></strong>
[printers]
</pre><p>
-<a class="indexterm" name="id2623295"></a>
-<a class="indexterm" name="id2623302"></a>
+<a class="indexterm" name="id390128"></a>
+<a class="indexterm" name="id390135"></a>
This example should show that you can use <code class="literal">testparm</code> to test any Samba configuration file.
Actually, we encourage you <span class="emphasis"><em>not</em></span> to change your working system (unless you know exactly
what you are doing). Don't rely on the assumption that changes will only take effect after you restart smbd!
@@ -275,11 +275,11 @@ be if you used this minimalistic configuration. Here is what you can expect to f
printable = Yes
</pre><p>
<code class="literal">testparm</code> issued two warnings:
-</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>
-<a class="indexterm" name="id2623395"></a>
-<a class="indexterm" name="id2623402"></a>
-<a class="indexterm" name="id2623407"></a>
-<a class="indexterm" name="id2623413"></a>
+</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>We did not specify the <em class="parameter"><code>[printers]</code></em> section as printable.</p></li><li class="listitem"><p>We did not tell Samba which spool directory to use.</p></li></ul></div><p>
+<a class="indexterm" name="id390214"></a>
+<a class="indexterm" name="id390221"></a>
+<a class="indexterm" name="id390227"></a>
+<a class="indexterm" name="id390232"></a>
However, this was not fatal, and Samba will default to values that will work. Please, do not rely on this and
do not use this example. This was included to encourage you to be careful to design and specify your setup to
do precisely what you require. The outcome on your system may vary for some parameters given, since Samba may
@@ -288,15 +288,15 @@ have been built with different compile-time options. <span class="emphasis"><em
put the comment sign at the front). At first I regarded this as a bug in my Samba versions. But the man page
clearly says: <code class="literal">Internal whitespace in a parameter value is retained verbatim.</code> This means
that a line consisting of, for example,
-</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="id2623453"></a><em class="parameter"><code>printing = lprng</code></em></td></tr></table><p>
+</p><table border="0" summary="Simple list" class="simplelist"><tr><td># This defines LPRng as the printing system</td></tr><tr><td><a class="indexterm" name="id390266"></a><em class="parameter"><code>printing = lprng</code></em></td></tr></table><p>
</p><p>
will regard the whole of the string after the <code class="literal">=</code> sign as the value you want to define. This
is an invalid value that will be ignored, and a default value will be used in its place.
-</p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2623480"></a>Extended Printing Configuration</h2></div></div></div><p>
-<a class="indexterm" name="id2623488"></a>
-<a class="indexterm" name="id2623495"></a>
-<a class="indexterm" name="id2623502"></a>
-<a class="indexterm" name="id2623508"></a>
+</p></div></div><div class="sect1" title="Extended Printing Configuration"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id390291"></a>Extended Printing Configuration</h2></div></div></div><p>
+<a class="indexterm" name="id390299"></a>
+<a class="indexterm" name="id390306"></a>
+<a class="indexterm" name="id390312"></a>
+<a class="indexterm" name="id390319"></a>
<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
print-related settings in a BSD-style printing environment. What follows is a discussion and explanation of
the various parameters. We chose to use BSD-style printing here because it is still the most commonly used
@@ -304,22 +304,22 @@ 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="id2623582"></a><em class="parameter"><code>printing = bsd</code></em></td></tr><tr><td><a class="indexterm" name="id2623594"></a><em class="parameter"><code>load printers = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623606"></a><em class="parameter"><code>show add printer wizard = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623618"></a><em class="parameter"><code>printcap name = /etc/printcap</code></em></td></tr><tr><td><a class="indexterm" name="id2623630"></a><em class="parameter"><code>printer admin = @ntadmin, root</code></em></td></tr><tr><td><a class="indexterm" name="id2623642"></a><em class="parameter"><code>max print jobs = 100</code></em></td></tr><tr><td><a class="indexterm" name="id2623654"></a><em class="parameter"><code>lpq cache time = 20</code></em></td></tr><tr><td><a class="indexterm" name="id2623665"></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="id2623686"></a><em class="parameter"><code>comment = All Printers</code></em></td></tr><tr><td><a class="indexterm" name="id2623698"></a><em class="parameter"><code>printable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623710"></a><em class="parameter"><code>path = /var/spool/samba</code></em></td></tr><tr><td><a class="indexterm" name="id2623721"></a><em class="parameter"><code>browseable = no</code></em></td></tr><tr><td><a class="indexterm" name="id2623733"></a><em class="parameter"><code>guest ok = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623744"></a><em class="parameter"><code>public = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623756"></a><em class="parameter"><code>read only = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623768"></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="id2623788"></a><em class="parameter"><code>comment = Printer with Restricted Access</code></em></td></tr><tr><td><a class="indexterm" name="id2623800"></a><em class="parameter"><code>path = /var/spool/samba_my_printer</code></em></td></tr><tr><td><a class="indexterm" name="id2623812"></a><em class="parameter"><code>printer admin = kurt</code></em></td></tr><tr><td><a class="indexterm" name="id2623824"></a><em class="parameter"><code>browseable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623836"></a><em class="parameter"><code>printable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2623847"></a><em class="parameter"><code>writable = no</code></em></td></tr><tr><td><a class="indexterm" name="id2623859"></a><em class="parameter"><code>hosts allow = 0.0.0.0</code></em></td></tr><tr><td><a class="indexterm" name="id2623871"></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="id2623883"></a><em class="parameter"><code>guest ok = no</code></em></td></tr></table></div></div><br class="example-break"><p>
-<a class="indexterm" name="id2623897"></a>
-<a class="indexterm" name="id2623902"></a>
-<a class="indexterm" name="id2623908"></a>
+</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 border="0" summary="Simple list" class="simplelist"><tr><td> </td></tr><tr><td><em class="parameter"><code>[global]</code></em></td></tr><tr><td><a class="indexterm" name="id390388"></a><em class="parameter"><code>printing = bsd</code></em></td></tr><tr><td><a class="indexterm" name="id390399"></a><em class="parameter"><code>load printers = yes</code></em></td></tr><tr><td><a class="indexterm" name="id390410"></a><em class="parameter"><code>show add printer wizard = yes</code></em></td></tr><tr><td><a class="indexterm" name="id390422"></a><em class="parameter"><code>printcap name = /etc/printcap</code></em></td></tr><tr><td><a class="indexterm" name="id390434"></a><em class="parameter"><code>printer admin = @ntadmin, root</code></em></td></tr><tr><td><a class="indexterm" name="id390445"></a><em class="parameter"><code>max print jobs = 100</code></em></td></tr><tr><td><a class="indexterm" name="id390457"></a><em class="parameter"><code>lpq cache time = 20</code></em></td></tr><tr><td><a class="indexterm" name="id390468"></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="id390489"></a><em class="parameter"><code>comment = All Printers</code></em></td></tr><tr><td><a class="indexterm" name="id390500"></a><em class="parameter"><code>printable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id390512"></a><em class="parameter"><code>path = /var/spool/samba</code></em></td></tr><tr><td><a class="indexterm" name="id390523"></a><em class="parameter"><code>browseable = no</code></em></td></tr><tr><td><a class="indexterm" name="id390534"></a><em class="parameter"><code>guest ok = yes</code></em></td></tr><tr><td><a class="indexterm" name="id390546"></a><em class="parameter"><code>public = yes</code></em></td></tr><tr><td><a class="indexterm" name="id390557"></a><em class="parameter"><code>read only = yes</code></em></td></tr><tr><td><a class="indexterm" name="id390569"></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="id390589"></a><em class="parameter"><code>comment = Printer with Restricted Access</code></em></td></tr><tr><td><a class="indexterm" name="id390601"></a><em class="parameter"><code>path = /var/spool/samba_my_printer</code></em></td></tr><tr><td><a class="indexterm" name="id390613"></a><em class="parameter"><code>printer admin = kurt</code></em></td></tr><tr><td><a class="indexterm" name="id390624"></a><em class="parameter"><code>browseable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id390636"></a><em class="parameter"><code>printable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id390647"></a><em class="parameter"><code>writable = no</code></em></td></tr><tr><td><a class="indexterm" name="id390658"></a><em class="parameter"><code>hosts allow = 0.0.0.0</code></em></td></tr><tr><td><a class="indexterm" name="id390670"></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="id390682"></a><em class="parameter"><code>guest ok = no</code></em></td></tr></table></div></div><br class="example-break"><p>
+<a class="indexterm" name="id390695"></a>
+<a class="indexterm" name="id390701"></a>
+<a class="indexterm" name="id390706"></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
value. To see all settings, as <code class="constant">root</code> use the <code class="literal">testparm</code> utility.
<code class="literal">testparm</code> gives warnings for misconfigured settings.
-</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2623935"></a>Detailed Explanation Settings</h3></div></div></div><p>
+</p><div class="sect2" title="Detailed Explanation Settings"><div class="titlepage"><div><div><h3 class="title"><a name="id390731"></a>Detailed Explanation Settings</h3></div></div></div><p>
The 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
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="id2623959"></a>The [global] Section</h4></div></div></div><p>
-<a class="indexterm" name="id2623967"></a>
-<a class="indexterm" name="id2623974"></a>
-<a class="indexterm" name="id2623981"></a>
-<a class="indexterm" name="id2623988"></a>
+</p><div class="sect3" title="The [global] Section"><div class="titlepage"><div><div><h4 class="title"><a name="id390754"></a>The [global] Section</h4></div></div></div><p>
+<a class="indexterm" name="id390762"></a>
+<a class="indexterm" name="id390769"></a>
+<a class="indexterm" name="id390775"></a>
+<a class="indexterm" name="id390782"></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
for parameters that have only a global meaning. It may also contain service-level parameters that define
@@ -327,33 +327,33 @@ default settings for all other sections and shares. This way you can simplify th
setting the same value repeatedly. (Within each individual section or share, you may, however, override these
globally set share settings and specify other values).
</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>
-<a class="indexterm" name="id2624055"></a>
-<a class="indexterm" name="id2624062"></a>
-<a class="indexterm" name="id2624068"></a>
-<a class="indexterm" name="id2624075"></a>
-<a class="indexterm" name="id2624082"></a>
-<a class="indexterm" name="id2624089"></a>
-<a class="indexterm" name="id2624096"></a>
-<a class="indexterm" name="id2624103"></a>
-<a class="indexterm" name="id2624109"></a>
-<a class="indexterm" name="id2624116"></a>
-<a class="indexterm" name="id2624123"></a>
-<a class="indexterm" name="id2624130"></a>
+<a class="indexterm" name="id390843"></a>
+<a class="indexterm" name="id390850"></a>
+<a class="indexterm" name="id390857"></a>
+<a class="indexterm" name="id390864"></a>
+<a class="indexterm" name="id390870"></a>
+<a class="indexterm" name="id390877"></a>
+<a class="indexterm" name="id390884"></a>
+<a class="indexterm" name="id390891"></a>
+<a class="indexterm" name="id390898"></a>
+<a class="indexterm" name="id390904"></a>
+<a class="indexterm" name="id390911"></a>
+<a class="indexterm" name="id390918"></a>
Causes Samba to use default print commands applicable for the BSD (also known as RFC 1179 style or LPR/LPD)
printing system. In general, the <em class="parameter"><code>printing</code></em> parameter informs Samba about the print
subsystem it should expect. Samba supports CUPS, LPD, LPRNG, SYSV, HPUX, AIX, QNX, and PLP. Each of these
systems defaults to a different <a class="link" href="smb.conf.5.html#PRINTCOMMAND" target="_top">print command</a> (and other queue control commands).
- </p><div class="caution" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Caution</h3><p>
-<a class="indexterm" name="id2624166"></a>
-<a class="indexterm" name="id2624172"></a>
+ </p><div class="caution" title="Caution" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Caution</h3><p>
+<a class="indexterm" name="id390950"></a>
+<a class="indexterm" name="id390957"></a>
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
here in the <em class="parameter"><code>[global]</code></em> section, it will take effect for all printer shares that are not
defined differently. Samba-3 no longer supports the SOFTQ printing system.
</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>
-<a class="indexterm" name="id2624220"></a>
-<a class="indexterm" name="id2624227"></a>
-<a class="indexterm" name="id2624233"></a>
-<a class="indexterm" name="id2624240"></a>
+<a class="indexterm" name="id391000"></a>
+<a class="indexterm" name="id391006"></a>
+<a class="indexterm" name="id391013"></a>
+<a class="indexterm" name="id391020"></a>
Tells Samba to create automatically all available printer shares. Available printer shares are discovered by
scanning the printcap file. All created printer shares are also loaded for browsing. If you use this
parameter, you do not need to specify separate shares for each printer. Each automatically created printer
@@ -361,11 +361,11 @@ globally set share settings and specify other values).
<em class="parameter"><code>load printers = no</code></em> setting will allow you to specify each UNIX printer you want to
share separately, leaving out some you do not want to be publicly visible and available).
</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>
-<a class="indexterm" name="id2624289"></a>
-<a class="indexterm" name="id2624295"></a>
-<a class="indexterm" name="id2624302"></a>
-<a class="indexterm" name="id2624308"></a>
-<a class="indexterm" name="id2624315"></a>
+<a class="indexterm" name="id391063"></a>
+<a class="indexterm" name="id391069"></a>
+<a class="indexterm" name="id391076"></a>
+<a class="indexterm" name="id391083"></a>
+<a class="indexterm" name="id391090"></a>
Setting is normally enabled by default (even if the parameter is not specified in <code class="filename">smb.conf</code>). It causes the
<span class="guiicon">Add Printer Wizard</span> icon to appear in the <span class="guiicon">Printers</span> folder of the Samba
host's share listing (as shown in <span class="guiicon">Network Neighborhood</span> or by the <code class="literal">net
@@ -374,23 +374,23 @@ globally set share settings and specify other values).
the <em class="parameter"><code>[print$]</code></em> share and associate it with a printer (if the respective queue exists
before the action), or exchange a printer's driver for any other previously uploaded driver.
</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>
-<a class="indexterm" name="id2624398"></a>
+<a class="indexterm" name="id391165"></a>
Sets the upper limit to 100 print jobs being active on the Samba server at any one time. Should a client
submit a job that exceeds this number, a "no more space available on server" type of error message will be
returned by Samba to the client. A setting of zero (the default) means there is <span class="emphasis"><em>no</em></span> limit
at all.
</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>
-<a class="indexterm" name="id2624434"></a>
-<a class="indexterm" name="id2624440"></a>
-<a class="indexterm" name="id2624446"></a>
+<a class="indexterm" name="id391197"></a>
+<a class="indexterm" name="id391204"></a>
+<a class="indexterm" name="id391210"></a>
Tells Samba where to look for a list of available printer names. Where CUPS is used, make sure that a printcap
file is written. This is controlled by the <code class="constant">Printcap</code> directive in the
<code class="filename">cupsd.conf</code> file.
</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>
-<a class="indexterm" name="id2624485"></a>
-<a class="indexterm" name="id2624491"></a>
-<a class="indexterm" name="id2624498"></a>
-<a class="indexterm" name="id2624504"></a>
+<a class="indexterm" name="id391246"></a>
+<a class="indexterm" name="id391252"></a>
+<a class="indexterm" name="id391259"></a>
+<a class="indexterm" name="id391266"></a>
Members of the ntadmin group should be able to add drivers and set printer properties
(<code class="constant">ntadmin</code> is only an example name; it needs to be a valid UNIX group name); root is
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
@@ -399,20 +399,20 @@ 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="id2624585"></a>
-<a class="indexterm" name="id2624591"></a>
+<a class="indexterm" name="id391338"></a>
+<a class="indexterm" name="id391345"></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.
</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>
-<a class="indexterm" name="id2624620"></a>
+<a class="indexterm" name="id391372"></a>
If set to <code class="constant">yes</code>, only takes effect for Windows NT/200x/XP clients (and not for Win
95/98/ME). Its default value is <code class="constant">No</code> (or <code class="constant">False</code>). It must
<span class="emphasis"><em>not</em></span> be enabled on print shares (with a <code class="constant">yes</code> or
<code class="constant">true</code> setting) that have valid drivers installed on the Samba server. For more detailed
explanations, see the <code class="filename">smb.conf</code> man page.
- </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>
-<a class="indexterm" name="id2624672"></a>
-<a class="indexterm" name="id2624679"></a>
+ </p></dd></dl></div></div><div class="sect3" title="The [printers] Section"><div class="titlepage"><div><div><h4 class="title"><a name="ptrsect"></a>The [printers] Section</h4></div></div></div><p>
+<a class="indexterm" name="id391422"></a>
+<a class="indexterm" name="id391429"></a>
The printers section is the second special section. If a section with this name appears in the <code class="filename">smb.conf</code>,
users are able to connect to any printer specified in the Samba host's printcap file, because Samba on startup
then creates a printer share for every printer name it finds in the printcap file. You could regard this
@@ -455,8 +455,8 @@ Settings inside this container must be share-level parameters.
</p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#PUBLIC" target="_top">public = yes </a></span></dt><dd><p>
Is a synonym for <a class="link" href="smb.conf.5.html#GUESTOK" target="_top">guest ok = yes</a>.
Since we have <a class="link" href="smb.conf.5.html#GUESTOK" target="_top">guest ok = yes</a>, it
- really does not need to be here. (This leads to the interesting question, &#8220;<span class="quote">What if I
- by accident have two contradictory settings for the same share?</span>&#8221; The answer is that the
+ really does not need to be here. (This leads to the interesting question, <span class="quote">&#8220;<span class="quote">What if I
+ by accident have two contradictory settings for the same share?</span>&#8221;</span> The answer is that the
last one encountered by Samba wins. <code class="literal">testparm</code> does not complain about different settings
of the same parameter for the same share. You can test this by setting up multiple
lines for the <em class="parameter"><code>guest account</code></em> parameter with different usernames,
@@ -468,9 +468,9 @@ Settings inside this container must be share-level parameters.
connection), but only via print spooling operations. Normal write operations are not permitted.
</p></dd><dt><span class="term"><a class="link" href="smb.conf.5.html#WRITABLE" target="_top">writable = no </a></span></dt><dd><p>
Is a synonym for <a class="link" href="smb.conf.5.html#READONLY" target="_top">read only = yes</a>.
- </p></dd></dl></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2625066"></a>Any [my_printer_name] Section</h4></div></div></div><p>
-<a class="indexterm" name="id2625074"></a>
-<a class="indexterm" name="id2625081"></a>
+ </p></dd></dl></div></div><div class="sect3" title="Any [my_printer_name] Section"><div class="titlepage"><div><div><h4 class="title"><a name="id391782"></a>Any [my_printer_name] Section</h4></div></div></div><p>
+<a class="indexterm" name="id391790"></a>
+<a class="indexterm" name="id391796"></a>
If a <em class="parameter"><code>[my_printer_name]</code></em> section appears in the <code class="filename">smb.conf</code> file, which includes the
parameter <a class="link" href="smb.conf.5.html#PRINTABLE" target="_top">printable = yes</a> Samba will configure it as a printer share.
Windows 9x/Me clients may have problems with connecting or loading printer drivers if the share name has more
@@ -502,11 +502,11 @@ 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="id2625360"></a>Print Commands</h4></div></div></div><p>
-<a class="indexterm" name="id2625368"></a>
-<a class="indexterm" name="id2625375"></a>
-<a class="indexterm" name="id2625381"></a>
-<a class="indexterm" name="id2625388"></a>
+ </p></dd></dl></div></div><div class="sect3" title="Print Commands"><div class="titlepage"><div><div><h4 class="title"><a name="id392055"></a>Print Commands</h4></div></div></div><p>
+<a class="indexterm" name="id392062"></a>
+<a class="indexterm" name="id392069"></a>
+<a class="indexterm" name="id392076"></a>
+<a class="indexterm" name="id392082"></a>
In each section defining a printer (or in the <em class="parameter"><code>[printers]</code></em> section),
a <em class="parameter"><code>print command</code></em> parameter may be defined. It sets a command to process the files
that have been placed into the Samba print spool directory for that printer. (That spool directory was,
@@ -518,8 +518,8 @@ command that just copies the print file to a temporary location for further inve
to debug printing. If you craft your own print commands (or even develop print command shell scripts),
make sure you pay attention to the need to remove the files from the Samba spool directory. Otherwise,
your hard disk may soon suffer from shortage of free space.
-</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2625436"></a>Default UNIX System Printing Commands</h4></div></div></div><p>
-<a class="indexterm" name="id2625444"></a>
+</p></div><div class="sect3" title="Default UNIX System Printing Commands"><div class="titlepage"><div><div><h4 class="title"><a name="id392122"></a>Default UNIX System Printing Commands</h4></div></div></div><p>
+<a class="indexterm" name="id392130"></a>
You learned earlier that Samba, in most cases, uses its built-in settings for many parameters if it cannot
find 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
setting. 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
@@ -528,29 +528,29 @@ 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="id2625908"></a>
-<a class="indexterm" name="id2625914"></a>
-<a class="indexterm" name="id2625921"></a>
-<a class="indexterm" name="id2625928"></a>
+<a class="indexterm" name="id392570"></a>
+<a class="indexterm" name="id392577"></a>
+<a class="indexterm" name="id392583"></a>
+<a class="indexterm" name="id392590"></a>
For <em class="parameter"><code>printing = CUPS</code></em>, if Samba is compiled against libcups, it uses the CUPS API to
submit 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
<code class="filename">cupsd.conf</code> is set to write its autogenerated printcap file to an unusual place).
Otherwise, Samba maps to the System V printing commands with the -oraw option for printing; that is, it uses
<code class="literal">lp -c -d%p -oraw; rm %s</code>. With <em class="parameter"><code>printing = cups</code></em>, and if Samba is
compiled against libcups, any manually set print command will be ignored!
-</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2625981"></a>Custom Print Commands</h4></div></div></div><p>
-<a class="indexterm" name="id2625989"></a>
-<a class="indexterm" name="id2625996"></a>
+</p></div><div class="sect3" title="Custom Print Commands"><div class="titlepage"><div><div><h4 class="title"><a name="id392638"></a>Custom Print Commands</h4></div></div></div><p>
+<a class="indexterm" name="id392646"></a>
+<a class="indexterm" name="id392653"></a>
After 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
by Samba via a system() call to process the spool file. Usually the command specified will submit the spool
file to the host's printing subsystem. But there is no requirement at all that this must be the case. The
print subsystem may not remove the spool file on its own, so whatever command you specify, you should ensure
that the spool file is deleted after it has been processed.
</p><p>
-<a class="indexterm" name="id2626025"></a>
-<a class="indexterm" name="id2626032"></a>
-<a class="indexterm" name="id2626039"></a>
-<a class="indexterm" name="id2626046"></a>
+<a class="indexterm" name="id392677"></a>
+<a class="indexterm" name="id392684"></a>
+<a class="indexterm" name="id392691"></a>
+<a class="indexterm" name="id392698"></a>
There is no difficulty with using your own customized print commands with the traditional printing systems.
However, if you do not wish to roll your own, you should be well informed about the default built-in commands
that Samba uses for each printing subsystem (see <a class="link" href="classicalprinting.html#printOptions" title="Table 21.1. Default Printing Settings">Default Printing
@@ -559,45 +559,45 @@ Settings</a>). In all the commands listed in the last paragraphs, you see parame
names of real objects. At the time of running a command with such a placeholder, Samba will insert the
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="id2626145"></a>
+</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p><em class="parameter"><code>%s, %f</code></em> the path to the spool file name.</p></li><li class="listitem"><p><em class="parameter"><code>%p</code></em> the appropriate printer name.</p></li><li class="listitem"><p><em class="parameter"><code>%J</code></em> the job name as transmitted by the client.</p></li><li class="listitem"><p><em class="parameter"><code>%c</code></em> the number of printed pages of the spooled job (if known).</p></li><li class="listitem"><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="id392790"></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
sent to the default printer.
</p><p>
-<a class="indexterm" name="id2626181"></a>
-<a class="indexterm" name="id2626188"></a>
+<a class="indexterm" name="id392823"></a>
+<a class="indexterm" name="id392830"></a>
If specified in the <em class="parameter"><code>[global]</code></em> section, the print command given will be
used for any printable service that does not have its own print command specified. If there is neither a
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="id2626210"></a>
-<a class="indexterm" name="id2626217"></a>
+<a class="indexterm" name="id392849"></a>
+<a class="indexterm" name="id392856"></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.
</p><p>
-<a class="indexterm" name="id2626246"></a>
-<a class="indexterm" name="id2626254"></a>
-<a class="indexterm" name="id2626260"></a>
+<a class="indexterm" name="id392883"></a>
+<a class="indexterm" name="id392890"></a>
+<a class="indexterm" name="id392897"></a>
You can form quite complex print commands. You need to realize that print commands are just
passed to a UNIX shell. The shell is able to expand the included environment variables as
usual. (The syntax to include a UNIX environment variable <em class="parameter"><code>$variable</code></em>
in the Samba print command is <em class="parameter"><code>%$variable</code></em>.) To give you a working
<a class="link" href="smb.conf.5.html#PRINTCOMMAND" target="_top">print command</a> example, the following will log a print job
-to <code class="filename">/tmp/print.log</code>, print the file, then remove it. The semicolon (&#8220;<span class="quote">;</span>&#8221;
+to <code class="filename">/tmp/print.log</code>, print the file, then remove it. The semicolon (<span class="quote">&#8220;<span class="quote">;</span>&#8221;</span>
is the usual separator for commands in shell scripts:
-</p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id2626316"></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>
+</p><table border="0" summary="Simple list" class="simplelist"><tr><td><a class="indexterm" name="id392947"></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>
You may have to vary your own command considerably from this example depending on how you normally print
files on your system. The default for the <a class="link" href="smb.conf.5.html#PRINTCOMMAND" target="_top">print command</a>
parameter varies depending on the setting of the <a class="link" href="smb.conf.5.html#PRINTING" target="_top">printing</a>
parameter. Another example is:
-</p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id2626366"></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>
-<a class="indexterm" name="id2626393"></a>
-<a class="indexterm" name="id2626399"></a>
-<a class="indexterm" name="id2626406"></a>
+</p><table border="0" summary="Simple list" class="simplelist"><tr><td><a class="indexterm" name="id392993"></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" title="Printing Developments Since Samba-2.2"><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>
+<a class="indexterm" name="id393020"></a>
+<a class="indexterm" name="id393026"></a>
+<a class="indexterm" name="id393033"></a>
Prior to Samba-2.2.x, print server support for Windows clients was limited to <span class="emphasis"><em>LanMan</em></span>
printing calls. This is the same protocol level as Windows 9x/Me PCs offer when they share printers.
Beginning with the 2.2.0 release, Samba started to support the native Windows NT printing mechanisms. These
@@ -605,93 +605,93 @@ are implemented via <span class="emphasis"><em>MS-RPC</em></span> (Remote Proced
MS-RPCs use the <span class="emphasis"><em>SPOOLSS</em></span> named pipe for all printing.
</p><p>
The additional functionality provided by the new SPOOLSS support includes:
-</p><div class="itemizedlist"><ul type="disc"><li><p>
-<a class="indexterm" name="id2626441"></a>
+</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
+<a class="indexterm" name="id393063"></a>
Support for downloading printer driver files to Windows 95/98/NT/2000 clients upon
demand (<span class="emphasis"><em>Point'n'Print</em></span>).
- </p></li><li><p>
-<a class="indexterm" name="id2626458"></a>
+ </p></li><li class="listitem"><p>
+<a class="indexterm" name="id393079"></a>
Uploading of printer drivers via the Windows NT <span class="emphasis"><em>Add Printer Wizard</em></span> (APW)
or the <a class="ulink" href="http://imprints.sourceforge.net/" target="_top">Imprints</a> tool set.
- </p></li><li><p>
-<a class="indexterm" name="id2626481"></a>
-<a class="indexterm" name="id2626488"></a>
-<a class="indexterm" name="id2626495"></a>
-<a class="indexterm" name="id2626502"></a>
-<a class="indexterm" name="id2626509"></a>
+ </p></li><li class="listitem"><p>
+<a class="indexterm" name="id393101"></a>
+<a class="indexterm" name="id393108"></a>
+<a class="indexterm" name="id393115"></a>
+<a class="indexterm" name="id393121"></a>
+<a class="indexterm" name="id393128"></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="id2626529"></a>
-<a class="indexterm" name="id2626536"></a>
+ </p></li><li class="listitem"><p>
+<a class="indexterm" name="id393147"></a>
+<a class="indexterm" name="id393153"></a>
Support for NT Access Control Lists (ACL) on printer objects.
- </p></li><li><p>
-<a class="indexterm" name="id2626548"></a>
+ </p></li><li class="listitem"><p>
+<a class="indexterm" name="id393165"></a>
Improved support for printer queue manipulation through the use of internal databases for spooled
job information (implemented by various <code class="filename">*.tdb</code> files).
</p></li></ul></div><p>
-<a class="indexterm" name="id2626568"></a>
-<a class="indexterm" name="id2626574"></a>
+<a class="indexterm" name="id393183"></a>
+<a class="indexterm" name="id393190"></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="id2626586"></a>
+<a class="indexterm" name="id393201"></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
printers that are made available, either by default or by specific declaration via printer-specific shares.
</p><p>
-<a class="indexterm" name="id2626603"></a>
-<a class="indexterm" name="id2626610"></a>
-<a class="indexterm" name="id2626617"></a>
-<a class="indexterm" name="id2626624"></a>
-<a class="indexterm" name="id2626630"></a>
+<a class="indexterm" name="id393214"></a>
+<a class="indexterm" name="id393221"></a>
+<a class="indexterm" name="id393228"></a>
+<a class="indexterm" name="id393235"></a>
+<a class="indexterm" name="id393241"></a>
Windows NT/200x/XP Professional clients do not have to use the standard SMB printer share; they can
print directly to any printer on another Windows NT host using MS-RPC. This, of course, assumes that
the client has the necessary privileges on the remote host that serves the printer resource. The
default permissions assigned by Windows NT to a printer gives the print permissions to the well-known
<span class="emphasis"><em>Everyone</em></span> group. (The older clients of type Windows 9x/Me can only print to shared
printers.)
-</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2626650"></a>Point'n'Print Client Drivers on Samba Servers</h3></div></div></div><p>
-<a class="indexterm" name="id2626659"></a>
-There is much confusion about what all this means. The question is often asked, &#8220;<span class="quote">Is it or is
+</p><div class="sect2" title="Point'n'Print Client Drivers on Samba Servers"><div class="titlepage"><div><div><h3 class="title"><a name="id393257"></a>Point'n'Print Client Drivers on Samba Servers</h3></div></div></div><p>
+<a class="indexterm" name="id393265"></a>
+There is much confusion about what all this means. The question is often asked, <span class="quote">&#8220;<span class="quote">Is it or is
it not necessary for printer drivers to be installed on a Samba host in order to support printing from
-Windows clients?</span>&#8221; The answer to this is no, it is not necessary.
+Windows clients?</span>&#8221;</span> The answer to this is no, it is not necessary.
</p><p>
-<a class="indexterm" name="id2626677"></a>
-<a class="indexterm" name="id2626684"></a>
+<a class="indexterm" name="id393281"></a>
+<a class="indexterm" name="id393288"></a>
Windows NT/2000 clients can, of course, also run their APW to install drivers <span class="emphasis"><em>locally</em></span>
(which then connect to a Samba-served print queue). This is the same method used by Windows 9x/Me
clients. (However, a bug existed in Samba 2.2.0 that made Windows NT/2000 clients
require that the Samba server possess a valid driver for the printer. This was fixed in Samba 2.2.1).
</p><p>
-<a class="indexterm" name="id2626703"></a>
-<a class="indexterm" name="id2626710"></a>
+<a class="indexterm" name="id393304"></a>
+<a class="indexterm" name="id393311"></a>
But it is a new capability to install the printer drivers into the <em class="parameter"><code>[print$]</code></em>
share of the Samba server, and a big convenience, too. Then <span class="emphasis"><em>all</em></span> clients
(including 95/98/ME) get the driver installed when they first connect to this printer share. The
<span class="emphasis"><em>uploading</em></span> or <span class="emphasis"><em>depositing</em></span> of the driver into this
<em class="parameter"><code>[print$]</code></em> share and the following binding of this driver to an existing
Samba printer share can be achieved by different means:
-</p><div class="itemizedlist"><ul type="disc"><li><p>
+</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
Running the <span class="emphasis"><em>APW</em></span> on an NT/200x/XP Professional client (this does not work from 95/98/ME clients).
- </p></li><li><p>
+ </p></li><li class="listitem"><p>
Using the <span class="emphasis"><em>Imprints</em></span> toolset.
- </p></li><li><p>
+ </p></li><li class="listitem"><p>
Using the <span class="emphasis"><em>smbclient</em></span> and <span class="emphasis"><em>rpcclient</em></span> command-line tools.
- </p></li><li><p>
+ </p></li><li class="listitem"><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="id2626792"></a>
-<a class="indexterm" name="id2626799"></a>
+<a class="indexterm" name="id393388"></a>
+<a class="indexterm" name="id393395"></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 &#8220;<span class="quote">Point'n'Print</span>&#8221; mechanism
+entirely by the clients who download and install them via the <span class="quote">&#8220;<span class="quote">Point'n'Print</span>&#8221;</span> mechanism
supported by Samba. The clients use these drivers to generate print files in the format the printer
(or the UNIX print system) requires. Print files received by Samba are handed over to the UNIX printing
system, which is responsible for all further processing, as needed.
-</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2626819"></a>The Obsoleted [printer$] Section</h3></div></div></div><p>
-<a class="indexterm" name="id2626828"></a>
-<a class="indexterm" name="id2626834"></a>
+</p></div><div class="sect2" title="The Obsoleted [printer$] Section"><div class="titlepage"><div><div><h3 class="title"><a name="id393411"></a>The Obsoleted [printer$] Section</h3></div></div></div><p>
+<a class="indexterm" name="id393419"></a>
+<a class="indexterm" name="id393426"></a>
Versions of Samba prior to 2.2 made it possible to use a share named <em class="parameter"><code>[printer$]</code></em>. This
name was taken from the same named service created by Windows 9x/Me clients when a printer was shared by them.
Windows 9x/Me printer servers always have a <em class="parameter"><code>[printer$]</code></em> service that provides
@@ -701,9 +701,9 @@ system, which is responsible for all further processing, as needed.
parameter named <em class="parameter"><code>printer driver</code></em> provided a means of defining the printer driver name to
be sent to the client.
</p><p>
-<a class="indexterm" name="id2626879"></a>
-<a class="indexterm" name="id2626886"></a>
-<a class="indexterm" name="id2626893"></a>
+<a class="indexterm" name="id393465"></a>
+<a class="indexterm" name="id393471"></a>
+<a class="indexterm" name="id393478"></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="id2626941"></a>Creating the [print$] Share</h3></div></div></div><p>
-<a class="indexterm" name="id2626949"></a>
+ </p></div><div class="sect2" title="Creating the [print$] Share"><div class="titlepage"><div><div><h3 class="title"><a name="id393521"></a>Creating the [print$] Share</h3></div></div></div><p>
+<a class="indexterm" name="id393529"></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,15 +724,15 @@ 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="id2627033"></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="id2627070"></a><em class="parameter"><code>comment = Printer Driver Download Area</code></em></td></tr><tr><td><a class="indexterm" name="id2627081"></a><em class="parameter"><code>path = /etc/samba/drivers</code></em></td></tr><tr><td><a class="indexterm" name="id2627093"></a><em class="parameter"><code>browseable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2627104"></a><em class="parameter"><code>guest ok = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2627116"></a><em class="parameter"><code>read only = yes</code></em></td></tr><tr><td><a class="indexterm" name="id2627128"></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 border="0" summary="Simple list" class="simplelist"><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="id393606"></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="id393642"></a><em class="parameter"><code>comment = Printer Driver Download Area</code></em></td></tr><tr><td><a class="indexterm" name="id393654"></a><em class="parameter"><code>path = /etc/samba/drivers</code></em></td></tr><tr><td><a class="indexterm" name="id393665"></a><em class="parameter"><code>browseable = yes</code></em></td></tr><tr><td><a class="indexterm" name="id393677"></a><em class="parameter"><code>guest ok = yes</code></em></td></tr><tr><td><a class="indexterm" name="id393688"></a><em class="parameter"><code>read only = yes</code></em></td></tr><tr><td><a class="indexterm" name="id393700"></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="id2627158"></a>[print$] Stanza Parameters</h3></div></div></div><p>
-<a class="indexterm" name="id2627166"></a>
-<a class="indexterm" name="id2627172"></a>
-<a class="indexterm" name="id2627179"></a>
-<a class="indexterm" name="id2627186"></a>
-<a class="indexterm" name="id2627193"></a>
+</p></div><div class="sect2" title="[print$] Stanza Parameters"><div class="titlepage"><div><div><h3 class="title"><a name="id393729"></a>[print$] Stanza Parameters</h3></div></div></div><p>
+<a class="indexterm" name="id393737"></a>
+<a class="indexterm" name="id393743"></a>
+<a class="indexterm" name="id393750"></a>
+<a class="indexterm" name="id393757"></a>
+<a class="indexterm" name="id393764"></a>
The <em class="parameter"><code>[print$]</code></em> is a special section in <code class="filename">smb.conf</code>. It contains settings relevant to
potential printer driver download and is used by Windows clients for local print driver installation.
The following parameters are frequently needed in this share section:
@@ -755,7 +755,7 @@ The following parameters are frequently needed in this share section:
download and install printer drivers on clients. The requirement for <em class="parameter"><code>guest ok
= yes</code></em> depends on how your site is configured. If users will be guaranteed
to have an account on the Samba host, then this is a non-issue.
- </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
+ </p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
If all your Windows NT users are guaranteed to be authenticated by the Samba server
(for example, if Samba authenticates via an NT domain server and the user has already been
validated by the domain controller in order to log on to the Windows NT session), then guest
@@ -770,14 +770,14 @@ The following parameters are frequently needed in this share section:
</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>
The <em class="parameter"><code>[print$]</code></em> was made read-only by the previous
setting so we should create a <em class="parameter"><code>write list</code></em> entry also. UNIX
- groups are denoted with a leading &#8220;<span class="quote">@</span>&#8221; character. Users listed here are allowed
+ groups are denoted with a leading <span class="quote">&#8220;<span class="quote">@</span>&#8221;</span> character. Users listed here are allowed
write-access (as an exception to the general public's read-only access), which they need to
update files on the share. Normally, you will want to name only administrative-level user
account in this setting. Check the file system permissions to make sure these accounts
can copy files to the share. If this is a non-root account, then the account should also
be mentioned in the global <a class="link" href="smb.conf.5.html#PRINTERADMIN" target="_top">printer admin</a>
parameter. See the <code class="filename">smb.conf</code> man page for more information on configuring file shares.
- </p></dd></dl></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2627479"></a>The [print$] Share Directory</h3></div></div></div><p>
+ </p></dd></dl></div></div><div class="sect2" title="The [print$] Share Directory"><div class="titlepage"><div><div><h3 class="title"><a name="id394022"></a>The [print$] Share Directory</h3></div></div></div><p>
In order for a Windows NT print server to support the downloading of driver files by multiple client
architectures, you must create several subdirectories within the <em class="parameter"><code>[print$]</code></em>
service (i.e., the UNIX directory named by the <a class="link" href="smb.conf.5.html#PATH" target="_top">path</a>
@@ -797,22 +797,22 @@ to support like this:
|--W32MIPS # serves drivers to Windows NT R4000
|--W32PPC # serves drivers to Windows NT PowerPC
</pre><p>
-</p><div class="important" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Required Permissions</h3><p>
+</p><div class="important" title="Required Permissions" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Required Permissions</h3><p>
In order to add a new driver to your Samba host, one of two conditions must hold true:
- </p><div class="itemizedlist"><ul type="disc"><li><p>
+ </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
The account used to connect to the Samba host must have a UID of 0 (i.e., a root account).
- </p></li><li><p>
+ </p></li><li class="listitem"><p>
The account used to connect to the Samba host must be named in the <span class="emphasis"><em>printer admin</em></span> list.
</p></li></ul></div><p>
Of course, the connected account must still have write access to add files to the subdirectories beneath
- <em class="parameter"><code>[print$]</code></em>. Remember that all file shares are set to &#8220;<span class="quote">read-only</span>&#8221; by default.
+ <em class="parameter"><code>[print$]</code></em>. Remember that all file shares are set to <span class="quote">&#8220;<span class="quote">read-only</span>&#8221;</span> by default.
</p></div><p>
Once you have created the required <em class="parameter"><code>[print$]</code></em> service and
associated subdirectories, go to a Windows NT 4.0/200x/XP client workstation. Open <span class="guiicon">Network
Neighborhood</span> or <span class="guiicon">My Network Places</span> and browse for the Samba host. Once you
have located the server, navigate to its <span class="guiicon">Printers and Faxes</span> folder. You should see
an initial listing of printers that matches the printer shares defined on your Samba host.
-</p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2627627"></a>Installing Drivers into [print$]</h2></div></div></div><p>
+</p></div></div><div class="sect1" title="Installing Drivers into [print$]"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id394150"></a>Installing Drivers into [print$]</h2></div></div></div><p>
Have you successfully created the <em class="parameter"><code>[print$]</code></em> share in <code class="filename">smb.conf</code>, and have you forced
Samba to reread its <code class="filename">smb.conf</code> file? Good. But you are not yet ready to use the new facility. The client
driver files need to be installed into this share. So far, it is still an empty share. Unfortunately, it is
@@ -820,15 +820,15 @@ not enough to just copy the driver files over. They need to be correctly install
for each driver will exist in the Samba internal databases so it can provide the correct drivers as they are
requested from MS Windows clients. And that is a bit tricky, to say the least. We now discuss two alternative
ways to install the drivers into <em class="parameter"><code>[print$]</code></em>:
-</p><div class="itemizedlist"><ul type="disc"><li><p>
+</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
Using the Samba command-line utility <code class="literal">rpcclient</code> with its various subcommands (here,
<code class="literal">adddriver</code> and <code class="literal">setdriver</code>) from any UNIX workstation.
- </p></li><li><p>
+ </p></li><li class="listitem"><p>
Running a GUI (<span class="guiicon">Printer Properties</span> and <span class="guiicon">Add Printer Wizard</span>)
from any Windows NT/200x/XP client workstation.
</p></li></ul></div><p>
The latter option is probably the easier one (even if the process may seem a little bit weird at first).
-</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2627720"></a>Add Printer Wizard Driver Installation</h3></div></div></div><p>
+</p><div class="sect2" title="Add Printer Wizard Driver Installation"><div class="titlepage"><div><div><h3 class="title"><a name="id394235"></a>Add Printer Wizard Driver Installation</h3></div></div></div><p>
The printers initially listed in the Samba host's <span class="guiicon">Printers</span> folder accessed from a
client's Explorer will have no real printer driver assigned to them. By default this driver name is set
to a null string. This must be changed now. The local <span class="guiicon">Add Printer Wizard</span> (APW), run from
@@ -839,16 +839,16 @@ for the printer to which you want the driver assigned. Open Windows Explorer, op
Neighborhood</span>, browse to the Samba host, open Samba's <span class="guiicon">Printers</span> folder, right-click
on the printer icon, and select <span class="guimenu">Properties...</span>. You are now trying to view printer and
driver properties for a queue that has this default <code class="constant">NULL</code> driver assigned. This will
-result in the following error message: &#8220;<span class="quote"> Device settings cannot be displayed. The driver for the
+result in the following error message: <span class="quote">&#8220;<span class="quote"> Device settings cannot be displayed. The driver for the
specified printer is not installed, only spooler properties will be displayed. Do you want to install the
-driver now?</span>&#8221;
+driver now?</span>&#8221;</span>
</p><p>
Do <span class="emphasis"><em>not</em></span> click on <span class="guibutton">Yes</span>! Instead, click on <span class="guibutton">No</span>
in the error dialog. Now you will be presented with the printer properties window. From here, the way to
assign a driver to a printer is open. You now have the choice of:
-</p><div class="itemizedlist"><ul type="disc"><li><p>
+</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
Select a driver from the pop-up list of installed drivers. Initially this list will be empty.
- </p></li><li><p>
+ </p></li><li class="listitem"><p>
Click on <span class="guibutton">New Driver</span> to install a new printer driver (which will
start up the APW).
</p></li></ul></div><p>
@@ -864,25 +864,25 @@ Assuming you have connected with an administrative (or root) account (as named b
other printer properties such as ACLs and default device settings using this dialog. For the default
device settings, please consider the advice given further in <a class="link" href="classicalprinting.html#inst-rpc" title="Installing Print Drivers Using rpcclient">Installing
Print Drivers Using <code class="literal">rpcclient</code></a>.
-</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="inst-rpc"></a>Installing Print Drivers Using <code class="literal">rpcclient</code></h3></div></div></div><p>
+</p></div><div class="sect2" title="Installing Print Drivers Using rpcclient"><div class="titlepage"><div><div><h3 class="title"><a name="inst-rpc"></a>Installing Print Drivers Using <code class="literal">rpcclient</code></h3></div></div></div><p>
The second way to install printer drivers into <em class="parameter"><code>[print$]</code></em> and set them
up in a valid way is to do it from the UNIX command line. This involves four distinct steps:
-</p><div class="orderedlist"><ol type="1"><li><p>
+</p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p>
Gather information about required driver files and collect the files.
- </p></li><li><p>
+ </p></li><li class="listitem"><p>
Deposit the driver files into the <em class="parameter"><code>[print$]</code></em> share's correct subdirectories
(possibly by using <code class="literal">smbclient</code>).
- </p></li><li><p>
+ </p></li><li class="listitem"><p>
Run the <code class="literal">rpcclient</code> command-line utility once with the <code class="literal">adddriver</code>
subcommand.
- </p></li><li><p>
+ </p></li><li class="listitem"><p>
Run <code class="literal">rpcclient</code> a second time with the <code class="literal">setdriver</code> subcommand.
</p></li></ol></div><p>
We provide detailed hints for each of these steps in the paragraphs that follow.
-</p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2627996"></a>Identifying Driver Files</h4></div></div></div><p>
-<a class="indexterm" name="id2628004"></a>
-<a class="indexterm" name="id2628011"></a>
-<a class="indexterm" name="id2628018"></a>
+</p><div class="sect3" title="Identifying Driver Files"><div class="titlepage"><div><div><h4 class="title"><a name="id394487"></a>Identifying Driver Files</h4></div></div></div><p>
+<a class="indexterm" name="id394494"></a>
+<a class="indexterm" name="id394501"></a>
+<a class="indexterm" name="id394508"></a>
To find out about the driver files, you have two options. You can check the contents of the driver
CDROM that came with your printer. Study the <code class="filename">*.inf</code> files located on the CD-ROM. This
may not be possible, since the <code class="filename">*.inf</code> file might be missing. Unfortunately, vendors have now started
@@ -890,14 +890,14 @@ to use their own installation programs. These installations packages are often i
archive format. Additionally, the files may be re-named during the installation process. This makes it
extremely difficult to identify the driver files required.
</p><p>
-<a class="indexterm" name="id2628054"></a>
+<a class="indexterm" name="id394537"></a>
Then you have the second option. Install the driver locally on a Windows client and
investigate which filenames and paths it uses after they are installed. (You need to repeat
this procedure for every client platform you want to support. We show it here for the
<span class="application">W32X86</span> platform only, a name used by Microsoft for all Windows NT/200x/XP
clients.)
</p><p>
-<a class="indexterm" name="id2628076"></a>
+<a class="indexterm" name="id394556"></a>
A good method to recognize the driver files is to print the test page from the driver's
<span class="guilabel">Properties</span> dialog (<span class="guilabel">General</span> tab). Then look at the list of
driver files named on the printout. You'll need to recognize what Windows (and Samba) are calling the
@@ -905,9 +905,9 @@ driver files named on the printout. You'll need to recognize what Windows (and S
<span class="guilabel">Help File</span>, and (optionally) <span class="guilabel">Dependent Driver Files</span>
(this may vary slightly for Windows NT). You need to note all filenames for the next steps.
</p><p>
-<a class="indexterm" name="id2628133"></a>
-<a class="indexterm" name="id2628139"></a>
-<a class="indexterm" name="id2628146"></a>
+<a class="indexterm" name="id394610"></a>
+<a class="indexterm" name="id394616"></a>
+<a class="indexterm" name="id394623"></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
<code class="literal">getdriver</code> subcommand, each at the <code class="filename">3</code> info level. In the following example,
@@ -948,10 +948,10 @@ Printer Driver Info 3:
Monitorname: []
Defaultdatatype: []
</pre><p>
-<a class="indexterm" name="id2628284"></a>
-<a class="indexterm" name="id2628290"></a>
-<a class="indexterm" name="id2628297"></a>
-<a class="indexterm" name="id2628304"></a>
+<a class="indexterm" name="id394731"></a>
+<a class="indexterm" name="id394738"></a>
+<a class="indexterm" name="id394745"></a>
+<a class="indexterm" name="id394752"></a>
You may notice that this driver has quite a large number of <span class="guilabel">Dependent files</span>
(there are worse cases, however). Also, strangely, the
<span class="guilabel">Driver File</span> is tagged here
@@ -961,20 +961,20 @@ You may notice that this driver has quite a large number of <span class="guilabe
addition to those for <span class="application">W32X86</span> (i.e., the Windows NT 2000/XP clients) onto a
Windows PC. This PC can also host the Windows 9x/Me drivers, even if it runs on Windows NT, 2000, or XP.
</p><p>
-<a class="indexterm" name="id2628352"></a>
-<a class="indexterm" name="id2628359"></a>
-<a class="indexterm" name="id2628366"></a>
+<a class="indexterm" name="id394796"></a>
+<a class="indexterm" name="id394802"></a>
+<a class="indexterm" name="id394809"></a>
Since the <em class="parameter"><code>[print$]</code></em> share is usually accessible through the <span class="guiicon">Network
Neighborhood</span>, you can also use the UNC notation from Windows Explorer to poke at it. The Windows
9x/Me driver files will end up in subdirectory <code class="filename">0</code> of the <code class="filename">WIN40</code>
directory. The full path to access them is <code class="filename">\\WINDOWSHOST\print$\WIN40\0\</code>.
-</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
-More recent drivers on Windows 2000 and Windows XP are installed into the &#8220;<span class="quote">3</span>&#8221; subdirectory
-instead of the &#8220;<span class="quote">2</span>&#8221;. The version 2 of drivers, as used in Windows NT, were running in kernel
+</p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
+More recent drivers on Windows 2000 and Windows XP are installed into the <span class="quote">&#8220;<span class="quote">3</span>&#8221;</span> subdirectory
+instead of the <span class="quote">&#8220;<span class="quote">2</span>&#8221;</span>. The version 2 of drivers, as used in Windows NT, were running in kernel
mode. Windows 2000 changed this. While it still can use the kernel mode drivers (if this is enabled by
the Admin), its native mode for printer drivers is user mode execution. This requires drivers designed
-for this purpose. These types of drivers install into the &#8220;<span class="quote">3</span>&#8221; subdirectory.
-</p></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2628430"></a>Obtaining Driver Files from Windows Client [print$] Shares</h4></div></div></div><p>
+for this purpose. These types of drivers install into the <span class="quote">&#8220;<span class="quote">3</span>&#8221;</span> subdirectory.
+</p></div></div><div class="sect3" title="Obtaining Driver Files from Windows Client [print$] Shares"><div class="titlepage"><div><div><h4 class="title"><a name="id394866"></a>Obtaining Driver Files from Windows Client [print$] Shares</h4></div></div></div><p>
Now we need to collect all the driver files we identified in our previous step. Where do we get them
from? Well, why not retrieve them from the very PC and the same <em class="parameter"><code>[print$]</code></em>
share that we investigated in our last step to identify the files? We can use <code class="literal">smbclient</code>
@@ -999,26 +999,26 @@ that this time we passed several commands to the <code class="option">-c</code>
This ensures that all commands are executed in sequence on the remote Windows server before
<code class="literal">smbclient</code> exits again.
</p><p>
-<a class="indexterm" name="id2628538"></a>
+<a class="indexterm" name="id394964"></a>
Remember to repeat the procedure for the <span class="application">WIN40</span> architecture should you need to
support Windows 9x/Me/XP clients. Remember too, the files for these architectures are in the
<code class="filename">WIN40/0/</code> subdirectory. Once this is complete, we can run <code class="literal">smbclient. .
.put</code> to store the collected files on the Samba server's <em class="parameter"><code>[print$]</code></em> share.
-</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2628576"></a>Installing Driver Files into [print$]</h4></div></div></div><p>
+</p></div><div class="sect3" title="Installing Driver Files into [print$]"><div class="titlepage"><div><div><h4 class="title"><a name="id394999"></a>Installing Driver Files into [print$]</h4></div></div></div><p>
We are now going to locate the driver files into the <em class="parameter"><code>[print$]</code></em> share. Remember, the
UNIX path to this share has been defined previously in your <code class="filename">smb.conf</code> file. You also have created
subdirectories for the different Windows client types you want to support. If, for example, your
<em class="parameter"><code>[print$]</code></em> share maps to the UNIX path <code class="filename">/etc/samba/drivers/</code>, your
driver files should now go here:
-</p><div class="itemizedlist"><ul type="disc"><li><p>
+</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
For all Windows NT, 2000, and XP clients, <code class="filename">/etc/samba/drivers/W32X86/</code> but
not (yet) into the <code class="filename">2</code> subdirectory.
- </p></li><li><p>
+ </p></li><li class="listitem"><p>
For all Windows 95, 98, and Me clients, <code class="filename">/etc/samba/drivers/WIN40/</code> but not
(yet) into the <code class="filename">0</code> subdirectory.
</p></li></ul></div><p>
-<a class="indexterm" name="id2628655"></a>
-<a class="indexterm" name="id2628661"></a>
+<a class="indexterm" name="id395073"></a>
+<a class="indexterm" name="id395080"></a>
We again use smbclient to transfer the driver files across the network. We specify the same files
and paths as were leaked to us by running <code class="literal">getdriver</code> against the original
<span class="emphasis"><em>Windows</em></span> install. However, now we are going to store the files into a
@@ -1055,18 +1055,18 @@ putting file Hddm91c1_de_reg.HLP as \W32X86\Hddm91c1_de_reg.HLP
putting file HDNIS01Aux.dll as \W32X86\HDNIS01Aux.dll
putting file HDNIS01_de.NTF as \W32X86\HDNIS01_de.NTF
</pre><p>
-<a class="indexterm" name="id2628752"></a>
-<a class="indexterm" name="id2628759"></a>
-<a class="indexterm" name="id2628766"></a>
+<a class="indexterm" name="id395146"></a>
+<a class="indexterm" name="id395153"></a>
+<a class="indexterm" name="id395160"></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
(for now) in this same subdirectory of the Samba box. This relocation will automatically be done by the
<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="id2628812"></a><code class="literal">smbclient</code> to Confirm Driver Installation</h4></div></div></div><p>
-<a class="indexterm" name="id2628825"></a>
-<a class="indexterm" name="id2628832"></a>
+</p></div><div class="sect3" title="smbclient to Confirm Driver Installation"><div class="titlepage"><div><div><h4 class="title"><a name="id395202"></a><code class="literal">smbclient</code> to Confirm Driver Installation</h4></div></div></div><p>
+<a class="indexterm" name="id395214"></a>
+<a class="indexterm" name="id395221"></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):
</p><pre class="screen">
@@ -1107,9 +1107,9 @@ ADOBEPSU.HLP A 18082 Sat May 3 23:18:45 2003
PDFcreator2.PPD A 15746 Sun Apr 20 22:24:07 2003
40976 blocks of size 262144. 709 blocks available
</pre><p>
-<a class="indexterm" name="id2628906"></a>
-<a class="indexterm" name="id2628913"></a>
-<a class="indexterm" name="id2628920"></a>
+<a class="indexterm" name="id395275"></a>
+<a class="indexterm" name="id395282"></a>
+<a class="indexterm" name="id395288"></a>
Notice that there are already driver files present in the <code class="filename">2</code> subdirectory (probably from a
previous installation). Once the files for the new driver are there too, you are still a few steps away from
being able to use them on the clients. The only thing you could do now is retrieve them from a client just
@@ -1117,10 +1117,10 @@ 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="id2628949"></a>Running <code class="literal">rpcclient</code> with <code class="literal">adddriver</code></h4></div></div></div><p>
-<a class="indexterm" name="id2628968"></a>
-<a class="indexterm" name="id2628974"></a>
-<a class="indexterm" name="id2628981"></a>
+</p></div><div class="sect3" title="Running rpcclient with adddriver"><div class="titlepage"><div><div><h4 class="title"><a name="id395312"></a>Running <code class="literal">rpcclient</code> with <code class="literal">adddriver</code></h4></div></div></div><p>
+<a class="indexterm" name="id395330"></a>
+<a class="indexterm" name="id395337"></a>
+<a class="indexterm" name="id395344"></a>
Next, you must tell Samba about the special category of the files you just uploaded into the
<em class="parameter"><code>[print$]</code></em> share. This is done by the <code class="literal">adddriver</code>
command. It will prompt Samba to register the driver files into its internal TDB database files. The
@@ -1144,16 +1144,16 @@ cmd = adddriver "Windows NT x86" \
Printer Driver dm9110 successfully installed.
</pre><p>
-<a class="indexterm" name="id2629036"></a>
-<a class="indexterm" name="id2629043"></a>
-<a class="indexterm" name="id2629050"></a>
+<a class="indexterm" name="id395390"></a>
+<a class="indexterm" name="id395396"></a>
+<a class="indexterm" name="id395403"></a>
After this step, the driver should be recognized by Samba on the print server. You need to be very
careful when typing the command. Don't exchange the order of the fields. Some changes would lead to
an <code class="computeroutput">NT_STATUS_UNSUCCESSFUL</code> error message. These become obvious. Other
changes might install the driver files successfully but render the driver unworkable. So take care!
Hints about the syntax of the adddriver command are in the man page.
provides a more detailed description, should you need it.
-</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2629073"></a>Checking <code class="literal">adddriver</code> Completion</h4></div></div></div><p>
+</p></div><div class="sect3" title="Checking adddriver Completion"><div class="titlepage"><div><div><h4 class="title"><a name="id395422"></a>Checking <code class="literal">adddriver</code> Completion</h4></div></div></div><p>
One indication for Samba's recognition of the files as driver files is the <code class="computeroutput">successfully
installed</code> message. Another one is the fact that our files have been moved by the
<code class="literal">adddriver</code> command into the <code class="filename">2</code> subdirectory. You can check this
@@ -1198,17 +1198,17 @@ again with <code class="literal">smbclient</code>:
</pre><p>
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="id2629176"></a>Check Samba for Driver Recognition</h4></div></div></div><p>
-<a class="indexterm" name="id2629185"></a>
+</p></div><div class="sect3" title="Check Samba for Driver Recognition"><div class="titlepage"><div><div><h4 class="title"><a name="id395502"></a>Check Samba for Driver Recognition</h4></div></div></div><p>
+<a class="indexterm" name="id395510"></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:
-</p><div class="itemizedlist"><ul type="disc"><li><p>
-<a class="indexterm" name="id2629202"></a>
-<a class="indexterm" name="id2629209"></a>
-<a class="indexterm" name="id2629216"></a>
-<a class="indexterm" name="id2629223"></a>
-<a class="indexterm" name="id2629230"></a>
+</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
+<a class="indexterm" name="id395525"></a>
+<a class="indexterm" name="id395532"></a>
+<a class="indexterm" name="id395539"></a>
+<a class="indexterm" name="id395546"></a>
+<a class="indexterm" name="id395553"></a>
From any Windows client browse Network Neighborhood, find the Samba host, and open the Samba
<span class="guiicon">Printers and Faxes</span> folder. Select any printer icon, right-click and select
the printer <span class="guimenuitem">Properties</span>. Click the <span class="guilabel">Advanced</span>
@@ -1217,8 +1217,8 @@ status of the files by at least three methods:
all drivers known to Samba. Your new one should be among them. (Each type of client will
see only its own architecture's list. If you do not have every driver installed for each platform,
the list will differ if you look at it from Windows95/98/ME or Windows NT/2000/XP.)
- </p></li><li><p>
-<a class="indexterm" name="id2629277"></a>
+ </p></li><li class="listitem"><p>
+<a class="indexterm" name="id395591"></a>
From a Windows 200x/XP client (not Windows NT) browse <span class="guiicon">Network Neighborhood</span>,
search for the Samba server, open the server's <span class="guiicon">Printers</span> folder,
and right-click on the white background (with no printer highlighted). Select <span class="guimenuitem">Server
@@ -1231,7 +1231,7 @@ status of the files by at least three methods:
</p><pre class="screen">
<strong class="userinput"><code>rundll32 printui.dll,PrintUIEntry /s /t2 /n\\<em class="replaceable"><code>SAMBA-CUPS</code></em></code></strong>
</pre><p>
- </p></li><li><p>
+ </p></li><li class="listitem"><p>
From a UNIX prompt, run this command (or a variant thereof), where
<em class="replaceable"><code>SAMBA-CUPS</code></em> is the name of the Samba host and xxxx represents the
actual Samba password assigned to root:
@@ -1247,8 +1247,8 @@ status of the files by at least three methods:
for <span class="application">Windows NT 4.0 or 2000</span>. To have it present for <span class="application">Windows
95, 98, and Me</span>, you'll have to repeat the whole procedure with the WIN40 architecture
and subdirectory.
- </p></li></ul></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2629412"></a>Specific Driver Name Flexibility</h4></div></div></div><p>
-<a class="indexterm" name="id2629420"></a>
+ </p></li></ul></div></div><div class="sect3" title="Specific Driver Name Flexibility"><div class="titlepage"><div><div><h4 class="title"><a name="id395712"></a>Specific Driver Name Flexibility</h4></div></div></div><p>
+<a class="indexterm" name="id395720"></a>
You can name the driver as you like. If you repeat the <code class="literal">adddriver</code> step with the same
files as before but with a different driver name, it will work the same:
</p><pre class="screen">
@@ -1271,18 +1271,18 @@ cmd = adddriver "Windows NT x86" \
Printer Driver mydrivername successfully installed.
</pre><p>
-<a class="indexterm" name="id2629467"></a>
-<a class="indexterm" name="id2629474"></a>
-<a class="indexterm" name="id2629481"></a>
+<a class="indexterm" name="id395759"></a>
+<a class="indexterm" name="id395766"></a>
+<a class="indexterm" name="id395772"></a>
You will be able to bind that driver to any print queue (however, you are responsible that
you associate drivers to queues that make sense with respect to target printers). You cannot run the
<code class="literal">rpcclient</code> <code class="literal">adddriver</code> command repeatedly. Each run consumes the
files you had put into the <em class="parameter"><code>[print$]</code></em> share by moving them into the
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="id2629526"></a>Running <code class="literal">rpcclient</code> with <code class="literal">setdriver</code></h4></div></div></div><p>
-<a class="indexterm" name="id2629544"></a>
-<a class="indexterm" name="id2629551"></a>
+</p></div><div class="sect3" title="Running rpcclient with setdriver"><div class="titlepage"><div><div><h4 class="title"><a name="id395814"></a>Running <code class="literal">rpcclient</code> with <code class="literal">setdriver</code></h4></div></div></div><p>
+<a class="indexterm" name="id395832"></a>
+<a class="indexterm" name="id395839"></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
achieves exactly this:
@@ -1304,16 +1304,16 @@ The syntax of the command is:
<em class="replaceable"><code>drivername</code></em>' <em class="replaceable"><code>SAMBA-Hostname</code></em></code></strong>.
</pre><p>
Now we have done most of the work, but not all of it.
-</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
+</p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
The <code class="literal">setdriver</code> command will only succeed if the printer is already known to Samba. A
bug in 2.2.x prevented Samba from recognizing freshly installed printers. You had to restart Samba,
or at least send an HUP signal to all running smbd processes to work around this: <strong class="userinput"><code>kill -HUP
`pidof smbd`</code></strong>.
-</p></div></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2629667"></a>Client Driver Installation Procedure</h2></div></div></div><p>
-As Don Quixote said, &#8220;<span class="quote">The proof of the pudding is in the eating.</span>&#8221; The proof
+</p></div></div></div></div><div class="sect1" title="Client Driver Installation Procedure"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id395945"></a>Client Driver Installation Procedure</h2></div></div></div><p>
+As Don Quixote said, <span class="quote">&#8220;<span class="quote">The proof of the pudding is in the eating.</span>&#8221;</span> The proof
for our setup lies in the printing. So let's install the printer driver onto the client PCs. This is
not as straightforward as it may seem. Read on.
-</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2629683"></a>First Client Driver Installation</h3></div></div></div><p>
+</p><div class="sect2" title="First Client Driver Installation"><div class="titlepage"><div><div><h3 class="title"><a name="id395960"></a>First Client Driver Installation</h3></div></div></div><p>
Especially important is the installation onto the first client PC (for each architectural platform
separately). Once this is done correctly, all further clients are easy to set up and shouldn't need further
attention. What follows is a description for the recommended first procedure. You now work from a client
@@ -1330,15 +1330,15 @@ Windows. As a last resort, you may have to reboot. Make sure there is no automat
easier to go to a different workstation and try from there. After you have made sure you are connected
as a printer admin user (you can check this with the <code class="literal">smbstatus</code> command on Samba),
do this from the Windows workstation:
-</p><div class="procedure"><ol type="1"><li><p>
+</p><div class="procedure"><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
Open <span class="guiicon">Network Neighborhood</span>.
- </p></li><li><p>
+ </p></li><li class="step" title="Step 2"><p>
Browse to Samba server.
- </p></li><li><p>
+ </p></li><li class="step" title="Step 3"><p>
Open its <span class="guiicon">Printers and Faxes</span> folder.
- </p></li><li><p>
+ </p></li><li class="step" title="Step 4"><p>
Highlight and right-click on the printer.
- </p></li><li><p>
+ </p></li><li class="step" title="Step 5"><p>
Select <span class="guimenuitem">Connect</span> (for Windows NT4/200x
it is possibly <span class="guimenuitem">Install</span>).
</p></li></ol></div><p>
@@ -1347,30 +1347,30 @@ appeared in your <span class="emphasis"><em>local</em></span> Printer folder (ch
<span class="guimenuitem">Settings</span> -&gt; <span class="guimenuitem">Control Panel</span> -&gt; <span class="guiicon">Printers
and Faxes</span>).
</p><p>
-<a class="indexterm" name="id2629862"></a>
+<a class="indexterm" name="id396120"></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
-reason might be that there is not yet a valid device mode set for the driver or that the &#8220;<span class="quote">printer
-driver data</span>&#8221; set is still incomplete.
+reason might be that there is not yet a valid device mode set for the driver or that the <span class="quote">&#8220;<span class="quote">printer
+driver data</span>&#8221;</span> set is still incomplete.
</p><p>
You must make sure that a valid <em class="parameter"><code>device mode</code></em> is set for the
driver. We now explain what that means.
-</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="prt-modeset"></a>Setting Device Modes on New Printers</h3></div></div></div><p>
+</p></div><div class="sect2" title="Setting Device Modes on New Printers"><div class="titlepage"><div><div><h3 class="title"><a name="prt-modeset"></a>Setting Device Modes on New Printers</h3></div></div></div><p>
For a printer to be truly usable by a Windows NT/200x/XP client, it must possess:
-</p><div class="itemizedlist"><ul type="disc"><li><p>
-<a class="indexterm" name="id2629922"></a>
+</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
+<a class="indexterm" name="id396176"></a>
A valid <span class="emphasis"><em>device mode</em></span> generated by the driver for the printer (defining things
like paper size, orientation and duplex settings).
- </p></li><li><p>
-<a class="indexterm" name="id2629939"></a>
+ </p></li><li class="listitem"><p>
+<a class="indexterm" name="id396192"></a>
A complete set of <span class="emphasis"><em>printer driver data</em></span> generated by the driver.
</p></li></ul></div><p>
-<a class="indexterm" name="id2629955"></a>
-<a class="indexterm" name="id2629962"></a>
-<a class="indexterm" name="id2629969"></a>
-<a class="indexterm" name="id2629976"></a>
-<a class="indexterm" name="id2629982"></a>
+<a class="indexterm" name="id396207"></a>
+<a class="indexterm" name="id396214"></a>
+<a class="indexterm" name="id396220"></a>
+<a class="indexterm" name="id396227"></a>
+<a class="indexterm" name="id396234"></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
error messages when attempting to print. Samba stores the named values and all printing-related information in
@@ -1396,28 +1396,28 @@ to set it on the Samba server. The easiest means of doing so is to simply change
the server's printer. This executes enough of the printer driver program on the client for the desired
effect to happen and feeds back the new device mode to our Samba server. You can use the native Windows
NT/200x/XP printer properties page from a Window client for this:
-</p><div class="procedure"><a name="id2630072"></a><p class="title"><b>Procedure 21.1. Procedure to Initialize the Printer Driver Settings</b></p><ol type="1"><li><p>
+</p><div class="procedure" title="Procedure 21.1. Procedure to Initialize the Printer Driver Settings"><a name="id396308"></a><p class="title"><b>Procedure 21.1. Procedure to Initialize the Printer Driver Settings</b></p><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
Browse the <span class="guiicon">Network Neighborhood</span>.
- </p></li><li><p>
+ </p></li><li class="step" title="Step 2"><p>
Find the Samba server.
- </p></li><li><p>
+ </p></li><li class="step" title="Step 3"><p>
Open the Samba server's <span class="guiicon">Printers and Faxes</span> folder.
- </p></li><li><p>
+ </p></li><li class="step" title="Step 4"><p>
Highlight the shared printer in question.
- </p></li><li><p>
+ </p></li><li class="step" title="Step 5"><p>
Right-click on the printer (you may already be here if you followed the last section's description).
- </p></li><li><p>
+ </p></li><li class="step" title="Step 6"><p>
At the bottom of the context menu select <span class="guimenu">Properties</span> (if the menu still offers the
<span class="guimenuitem">Connect</span> entry further above, you
need to click on that one first to achieve the driver
installation, as shown in the last section).
- </p></li><li><p>
+ </p></li><li class="step" title="Step 7"><p>
Go to the <span class="guilabel">Advanced</span> tab; click on <span class="guibutton">Printing Defaults</span>.
- </p></li><li><p>
+ </p></li><li class="step" title="Step 8"><p>
Change the <span class="guimenuitem">Portrait</span> page setting to <span class="guimenuitem">Landscape</span> (and back).
- </p></li><li><p>
+ </p></li><li class="step" title="Step 9"><p>
Make sure to apply changes between swapping the page orientation to cause the change to actually take effect.
- </p></li><li><p>
+ </p></li><li class="step" title="Step 10"><p>
While you are at it, you may also want to set the desired printing defaults here, which then apply to all future
client driver installations.
</p></li></ol></div><p>
@@ -1426,13 +1426,13 @@ 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="id2630226"></a>
+<a class="indexterm" name="id396452"></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
the client generate a valid device mode for the printer and store it on the server for you.
-</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2630248"></a>Additional Client Driver Installation</h3></div></div></div><p>
-<a class="indexterm" name="id2630256"></a>
+</p></div><div class="sect2" title="Additional Client Driver Installation"><div class="titlepage"><div><div><h3 class="title"><a name="id396470"></a>Additional Client Driver Installation</h3></div></div></div><p>
+<a class="indexterm" name="id396478"></a>
Every additional driver may be installed in the same way as just described. Browse <code class="literal">Network
Neighborhood</code>, open the <span class="guiicon">Printers</span> folder on Samba server, right-click on
<span class="guiicon">Printer</span>, and choose <span class="guimenuitem">Connect...</span>. Once this completes (should be
@@ -1445,21 +1445,21 @@ using this command on Windows 200x/XP Professional workstations:
<strong class="userinput"><code>rundll32 shell32.dll,SHHelpShortcuts_RunDLL PrintersFolder</code></strong>
</pre><p>
or this command on Windows NT 4.0 workstations:
-<a class="indexterm" name="id2630323"></a>
+<a class="indexterm" name="id396539"></a>
</p><pre class="screen">
<strong class="userinput"><code>rundll32 shell32.dll,Control_RunDLL MAIN.CPL @2</code></strong>
</pre><p>
</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="id2630366"></a>Always Make First Client Connection as root or &#8220;<span class="quote">printer admin</span>&#8221;</h3></div></div></div><p>
+</p></div><div class="sect2" title="Always Make First Client Connection as root or &#8220;printer admin&#8221;"><div class="titlepage"><div><div><h3 class="title"><a name="id396581"></a>Always Make First Client Connection as root or <span class="quote">&#8220;<span class="quote">printer admin</span>&#8221;</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
sure that:
-</p><div class="itemizedlist"><ul type="disc"><li><p>
+</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
A first valid <span class="emphasis"><em>device mode</em></span> is really initialized (see above <a class="link" href="classicalprinting.html#prt-modeset" title="Setting Device Modes on New Printers">Setting Device Modes on New Printers</a>) for more explanation details).
- </p></li><li><p>
+ </p></li><li class="listitem"><p>
The default print settings of your printer for all further client installations are as you want them.
</p></li></ul></div><p>
Do this by changing the orientation to landscape, click on <span class="guiicon">Apply</span>, and then change it
@@ -1467,7 +1467,7 @@ back again. Next, modify the other settings (for example, you do not want the de
<span class="guiicon">Letter</span> when you are all using <span class="guiicon">A4</span>, right? You may want to set the
printer for <span class="guiicon">duplex</span> as the default, and so on).
</p><p>
-<a class="indexterm" name="id2630461"></a>
+<a class="indexterm" name="id396669"></a>
To connect as root to a Samba printer, try this command from a Windows 200x/XP DOS box command prompt:
</p><pre class="screen">
<code class="prompt">C:\&gt; </code><strong class="userinput"><code>runas /netonly /user:root "rundll32 printui.dll,PrintUIEntry /p /t3 /n
@@ -1481,46 +1481,46 @@ by all clients. Alternatively, instead of root you can name one other member of
Now all the other users downloading and installing the driver the same way (using
<code class="literal">Point'n'Print</code>) will have the same defaults set for them. If you miss this step, you'll get a
lot of help desk calls from your users, but maybe you like to talk to people.
-</p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2630540"></a>Other Gotchas</h2></div></div></div><p>
+</p></div></div><div class="sect1" title="Other Gotchas"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id396739"></a>Other Gotchas</h2></div></div></div><p>
Your driver is installed. It is now ready for Point'n'Print installation by the clients. You may have tried to
download and use it on your first client machine, but wait. Let's make sure you are acquainted first with a
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, &#8220;<span class="quote">We need to set
-the paper size for each job from Letter to A4 and it will not store it</span>&#8221;).
-</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2630560"></a>Setting Default Print Options for Client Drivers</h3></div></div></div><p>
+advised in the preceding paragraphs. Your users complain about various issues (such as, <span class="quote">&#8220;<span class="quote">We need to set
+the paper size for each job from Letter to A4 and it will not store it</span>&#8221;</span>).
+</p><div class="sect2" title="Setting Default Print Options for Client Drivers"><div class="titlepage"><div><div><h3 class="title"><a name="id396756"></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
<span class="guimenuitem">Properties</span>, you can arrive at two dialogs that appear identical, each claiming that
they help you to set printer options in three different ways. Here is the definitive answer to the Samba
default driver setting FAQ:
-</p><p><b>&#8220;<span class="quote">I can not set and save default print options
-for all users on Windows 200x/XP. Why not?</span>&#8221;. </b>
+</p><p title="&#8220;I can not set and save default print options for all users on Windows 200x/XP. Why not?&#8221;"><b><span class="quote">&#8220;<span class="quote">I can not set and save default print options
+for all users on Windows 200x/XP. Why not?</span>&#8221;</span>. </b>
How are you doing it? I bet the wrong way. (It is not easy to find out, though.) There are three different
ways to bring you to a dialog that seems to set everything. All three dialogs look the same, but only one of
them does what you intend. You need to be Administrator or Print Administrator to do this for all users. Here
is how I reproduce it in an XP Professional:
-</p><div class="orderedlist"><ol type="A"><li><p>The first &#8220;<span class="quote">wrong</span>&#8221; way:
- </p><div class="orderedlist"><ol type="1"><li><p>Open the <span class="guiicon">Printers</span> folder.</p></li><li><p>Right-click on the printer (<span class="emphasis"><em>remoteprinter on cupshost</em></span>) and
- select in context menu <span class="guimenu">Printing Preferences...</span>.</p></li><li><p>Look at this dialog closely and remember what it looks like.</p></li></ol></div></li><li><p>The second &#8220;<span class="quote">wrong</span>&#8221; way:
- </p><div class="orderedlist"><ol type="1"><li><p>Open the <span class="guimenu">Printers</span> folder.</p></li><li><p>Right-click on the printer (<span class="emphasis"><em>remoteprinter on
+</p><div class="orderedlist"><ol class="orderedlist" type="A"><li class="listitem"><p>The first <span class="quote">&#8220;<span class="quote">wrong</span>&#8221;</span> way:
+ </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p>Open the <span class="guiicon">Printers</span> folder.</p></li><li class="listitem"><p>Right-click on the printer (<span class="emphasis"><em>remoteprinter on cupshost</em></span>) and
+ select in context menu <span class="guimenu">Printing Preferences...</span>.</p></li><li class="listitem"><p>Look at this dialog closely and remember what it looks like.</p></li></ol></div></li><li class="listitem"><p>The second <span class="quote">&#8220;<span class="quote">wrong</span>&#8221;</span> way:
+ </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p>Open the <span class="guimenu">Printers</span> folder.</p></li><li class="listitem"><p>Right-click on the printer (<span class="emphasis"><em>remoteprinter on
cupshost</em></span>) and select in the context menu
- <span class="guimenuitem">Properties</span></p></li><li><p>Click on the <span class="guilabel">General</span>
- tab.</p></li><li><p>Click on the <span class="guibutton">Printing
- Preferences...</span> button.</p></li><li><p>A new dialog opens. Keep this dialog open and go back
+ <span class="guimenuitem">Properties</span></p></li><li class="listitem"><p>Click on the <span class="guilabel">General</span>
+ tab.</p></li><li class="listitem"><p>Click on the <span class="guibutton">Printing
+ Preferences...</span> button.</p></li><li class="listitem"><p>A new dialog opens. Keep this dialog open and go back
to the parent dialog.</p></li></ol></div><p>
- </p></li><li><p>
+ </p></li><li class="listitem"><p>
The third and correct way (should you do this from the beginning, just carry out steps 1
and 2 from the second method above):
- </p><div class="orderedlist"><ol type="1"><li><p>Click on the <span class="guilabel">Advanced</span>
- tab. (If everything is &#8220;<span class="quote">grayed out,</span>&#8221; then you are not logged
- in as a user with enough privileges.)</p></li><li><p>Click on the <span class="guibutton">Printing
- Defaults</span> button.</p></li><li><p>On any of the two new tabs,
+ </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p>Click on the <span class="guilabel">Advanced</span>
+ tab. (If everything is <span class="quote">&#8220;<span class="quote">grayed out,</span>&#8221;</span> then you are not logged
+ in as a user with enough privileges.)</p></li><li class="listitem"><p>Click on the <span class="guibutton">Printing
+ Defaults</span> button.</p></li><li class="listitem"><p>On any of the two new tabs,
click on the
- <span class="guilabel">Advanced</span> button.</p></li><li><p>A new dialog opens. Compare
+ <span class="guilabel">Advanced</span> button.</p></li><li class="listitem"><p>A new dialog opens. Compare
this one to the other. Are they
identical when you compare one from
- &#8220;<span class="quote">B.5</span>&#8221; and one from A.3?</p></li></ol></div></li></ol></div><p>
+ <span class="quote">&#8220;<span class="quote">B.5</span>&#8221;</span> and one from A.3?</p></li></ol></div></li></ol></div><p title="&#8220;I can not set and save default print options for all users on Windows 200x/XP. Why not?&#8221;">
Do you see any difference in the two settings dialogs? I do not either. However, only the last one, which you
arrived at with steps C.1 through C.6 will permanently save any settings which will then become the defaults
for new users. If you want all clients to have the same defaults, you need to conduct these steps as
@@ -1529,14 +1529,14 @@ later set their own per-user defaults by following procedures A or B above). Win
default settings and the ones the administrator gives them before they set up their own. The parents of the
identical-looking dialogs have a slight difference in their window names; one is called
<code class="computeroutput">Default Print Values for Printer Foo on Server Bar</code> (which is the one you
-need) and the other is called &#8220;<span class="quote"><code class="computeroutput">Print Settings for Printer Foo on Server
-Bar</code></span>&#8221;. The last one is the one you arrive at when you right-click on the printer and
+need) and the other is called <span class="quote">&#8220;<span class="quote"><code class="computeroutput">Print Settings for Printer Foo on Server
+Bar</code></span>&#8221;</span>. The last one is the one you arrive at when you right-click on the printer and
select <span class="guimenuitem">Print Settings...</span>. This is the one that you were taught to use back in the
days of Windows NT, so it is only natural to try the same way with Windows 200x/XP. You would not dream that
there is now a different path to arrive at an identical-looking, but functionally different, dialog to set
defaults for all users.
-</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):
-<a class="indexterm" name="id2630854"></a>
+</p><div class="tip" title="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):
+<a class="indexterm" name="id397022"></a>
</p><p><strong class="userinput"><code>
rundll32 printui.dll,PrintUIEntry /p /t3 /n\\<em class="replaceable"><code>SAMBA-SERVER</code></em>\<em class="replaceable"><code>printersharename</code></em>
</code></strong></p><p>
@@ -1547,7 +1547,7 @@ rundll32 printui.dll,PrintUIEntry /p /t0 /n\\<em class="replaceable"><code>SAMBA
To see the tab with the <span class="guilabel">Printing Preferences</span>
button (the one that does not set systemwide defaults), you can
start the commands from inside a DOS box or from <span class="guimenu">Start</span> -&gt; <span class="guimenuitem">Run</span>.
-</p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2630928"></a>Supporting Large Numbers of Printers</h3></div></div></div><p>
+</p></div></div><div class="sect2" title="Supporting Large Numbers of Printers"><div class="titlepage"><div><div><h3 class="title"><a name="id397092"></a>Supporting Large Numbers of Printers</h3></div></div></div><p>
One issue that has arisen during the recent development phase of Samba is the need to support driver
downloads for hundreds of printers. Using Windows NT APW for this task is somewhat awkward (to say the least). If
you do not want to acquire RSS pains from the printer installation clicking orgy alone, you need
@@ -1627,31 +1627,31 @@ repeatedly). The following is an example of how this can be accomplished:
[....]
</pre><p>
It may not be easy to recognize that the first call to <code class="literal">enumprinters</code> showed the
-&#8220;<span class="quote">dm9110</span>&#8221; printer with an empty string where the driver should have been listed (between
+<span class="quote">&#8220;<span class="quote">dm9110</span>&#8221;</span> printer with an empty string where the driver should have been listed (between
the two commas in the description field). After the <code class="literal">setdriver</code> command
succeeds, all is well.
-</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2631184"></a>Adding New Printers with the Windows NT APW</h3></div></div></div><p>
+</p></div><div class="sect2" title="Adding New Printers with the Windows NT APW"><div class="titlepage"><div><div><h3 class="title"><a name="id397328"></a>Adding New Printers with the Windows NT APW</h3></div></div></div><p>
By default, Samba exhibits all printer shares defined in <code class="filename">smb.conf</code> in the <span class="guiicon">Printers</span>
folder. Also located in this folder is the Windows NT Add Printer Wizard icon. The APW will be shown only if:
-</p><div class="itemizedlist"><ul type="disc"><li><p>
+</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
The connected user is able to successfully execute an <code class="literal">OpenPrinterEx(\\server)</code> with
administrative privileges (i.e., root or <a class="link" href="smb.conf.5.html#PRINTERADMIN" target="_top">printer admin</a>).
- </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:
+ </p><div class="tip" title="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:
</p><p><strong class="userinput"><code>
runas /netonly /user:root rundll32 printui.dll,PrintUIEntry /p /t0 /n \\<em class="replaceable"><code>SAMBA-SERVER</code></em>\<em class="replaceable"><code>printersharename</code></em>
</code></strong></p><p>
Click on <span class="guibutton">Printing Preferences</span>.
- </p></div></li><li><p>... contains the setting
+ </p></div></li><li class="listitem"><p>... contains the setting
<a class="link" href="smb.conf.5.html#SHOWADDPRINTERWIZARD" target="_top">show add printer wizard = yes</a> (the
default).</p></li></ul></div><p>
The APW can do various things:
-</p><div class="itemizedlist"><ul type="disc"><li><p>
+</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
Upload a new driver to the Samba <em class="parameter"><code>[print$]</code></em> share.
- </p></li><li><p>
+ </p></li><li class="listitem"><p>
Associate an uploaded driver with an existing (but still driverless) print queue.
- </p></li><li><p>
+ </p></li><li class="listitem"><p>
Exchange the currently used driver for an existing print queue with one that has been uploaded before.
- </p></li><li><p>
+ </p></li><li class="listitem"><p>
Add an entirely new printer to the Samba host (only in conjunction with a working
<a class="link" href="smb.conf.5.html#ADDPRINTERCOMMAND" target="_top">add printer command</a>. A corresponding
<a class="link" href="smb.conf.5.html#DELETEPRINTERCOMMAND" target="_top">delete printer command</a> for removing entries from the
@@ -1670,21 +1670,21 @@ share is still not defined, an error of "<span class="errorname">Access Denied"<
necessarily a root account. A <a class="link" href="smb.conf.5.html#MAPTOGUEST" target="_top">map to guest = bad user</a> may have connected
you unwittingly under the wrong privilege. You should check it by using the <code class="literal">smbstatus</code>
command.
-</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2631444"></a>Error Message: &#8220;<span class="quote">Cannot connect under a different Name</span>&#8221;</h3></div></div></div><p>
+</p></div><div class="sect2" title="Error Message: &#8220;Cannot connect under a different Name&#8221;"><div class="titlepage"><div><div><h3 class="title"><a name="id397565"></a>Error Message: <span class="quote">&#8220;<span class="quote">Cannot connect under a different Name</span>&#8221;</span></h3></div></div></div><p>
Once you are connected with the wrong credentials, there is no means to reverse the situation other than
to close all Explorer windows, and perhaps reboot.
-</p><div class="itemizedlist"><ul type="disc"><li><p>
-<a class="indexterm" name="id2631463"></a>
+</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
+<a class="indexterm" name="id397584"></a>
The <code class="literal">net use \\SAMBA-SERVER\sharename /user:root</code> gives you an error message:
- &#8220;<span class="quote">Multiple connections to a server or a shared resource by the same user utilizing
+ <span class="quote">&#8220;<span class="quote">Multiple connections to a server or a shared resource by the same user utilizing
several user names are not allowed. Disconnect all previous connections to the server,
- esp. the shared resource, and try again.</span>&#8221;
- </p></li><li><p>
- Every attempt to &#8220;<span class="quote">connect a network drive</span>&#8221; to <code class="filename">\\SAMBASERVER\\print$</code>
- to <code class="constant">z:</code> is countered by the pertinacious message: &#8220;<span class="quote">This
+ esp. the shared resource, and try again.</span>&#8221;</span>
+ </p></li><li class="listitem"><p>
+ Every attempt to <span class="quote">&#8220;<span class="quote">connect a network drive</span>&#8221;</span> to <code class="filename">\\SAMBASERVER\\print$</code>
+ to <code class="constant">z:</code> is countered by the pertinacious message: <span class="quote">&#8220;<span class="quote">This
network folder is currently connected under different credentials (username and password).
Disconnect first any existing connection to this network share in order to connect again under
- a different username and password</span>&#8221;.
+ a different username and password</span>&#8221;</span>.
</p></li></ul></div><p>
So you close all connections. You try again. You get the same message. You check from the Samba side, using
<code class="literal">smbstatus</code>. Yes, there are more connections. You kill them all. The client still gives you
@@ -1700,12 +1700,12 @@ The easiest way to forcefully terminate all connections from your client to a se
<code class="prompt">C:\&gt; </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="id2631557"></a>Take Care When Assembling Driver Files</h3></div></div></div><p>
+</p></div><div class="sect2" title="Take Care When Assembling Driver Files"><div class="titlepage"><div><div><h3 class="title"><a name="id397664"></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 &#8220;<span class="quote">0</span>&#8221; (for Windows 9x/Me, going into
+driver. Don't confuse the files for driver version <span class="quote">&#8220;<span class="quote">0</span>&#8221;</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,
going into <code class="filename">[print$]/W32X86/2/</code>; may be used on Windows 200x/XP also), and
-driver version &#8220;<span class="quote">3</span>&#8221; (non-kernel mode driver going into <code class="filename">[print$]/W32X86/3/</code>;
+driver version <span class="quote">&#8220;<span class="quote">3</span>&#8221;</span> (non-kernel mode driver going into <code class="filename">[print$]/W32X86/3/</code>;
cannot be used on Windows NT). Quite often these different driver versions contain
files that have the same name but actually are very different. If you look at them from
the Windows Explorer (they reside in <code class="filename">%WINDOWS%\system32\spool\drivers\W32X86\</code>),
@@ -1777,7 +1777,7 @@ version 0 set contained 40 <em class="parameter"><code>Dependentfiles</code></em
Defaultdatatype: []
</pre><p>
-If we write the &#8220;<span class="quote">version 2</span>&#8221; files and the &#8220;<span class="quote">version 3</span>&#8221; files
+If we write the <span class="quote">&#8220;<span class="quote">version 2</span>&#8221;</span> files and the <span class="quote">&#8220;<span class="quote">version 3</span>&#8221;</span> files
into different text files and compare the result, we see this
picture:
</p><pre class="screen">
@@ -1831,35 +1831,35 @@ comparison:
In my example were even more differences than shown here. Conclusion: you must be careful to select the
correct driver files for each driver version. Don't rely on the names alone, and don't interchange files
belonging to different driver versions.
-</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2631819"></a>Samba and Printer Ports</h3></div></div></div><p>
-<a class="indexterm" name="id2631827"></a>
-<a class="indexterm" name="id2631833"></a>
-<a class="indexterm" name="id2631840"></a>
-<a class="indexterm" name="id2631847"></a>
+</p></div><div class="sect2" title="Samba and Printer Ports"><div class="titlepage"><div><div><h3 class="title"><a name="id397864"></a>Samba and Printer Ports</h3></div></div></div><p>
+<a class="indexterm" name="id397871"></a>
+<a class="indexterm" name="id397878"></a>
+<a class="indexterm" name="id397885"></a>
+<a class="indexterm" name="id397892"></a>
Windows NT/2000 print servers associate a port with each printer. These normally take the form of
<code class="filename">LPT1:</code>, <code class="filename">COM1:</code>, <code class="filename">FILE:</code>, and so on. Samba must also
-support the concept of ports associated with a printer. By default, only one printer port, named &#8220;<span class="quote">Samba
-Printer Port</span>&#8221;, exists on a system. Samba does not really need such a &#8220;<span class="quote">port</span>&#8221; in order to
+support the concept of ports associated with a printer. By default, only one printer port, named <span class="quote">&#8220;<span class="quote">Samba
+Printer Port</span>&#8221;</span>, exists on a system. Samba does not really need such a <span class="quote">&#8220;<span class="quote">port</span>&#8221;</span> in order to
print; rather it is a requirement of Windows clients. They insist on being told about an available port when
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="id2631891"></a>
+<a class="indexterm" name="id397931"></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>
If you require multiple ports to be defined for some reason or another (my users and my boss should not know
that they are working with Samba), configure the <a class="link" href="smb.conf.5.html#ENUMPORTSCOMMAND" target="_top">enumports command</a>,
which can be used to define an external program that generates a listing of ports on a system.
-</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2631928"></a>Avoiding Common Client Driver Misconfiguration</h3></div></div></div><p>
+</p></div><div class="sect2" title="Avoiding Common Client Driver Misconfiguration"><div class="titlepage"><div><div><h3 class="title"><a name="id397963"></a>Avoiding Common Client Driver Misconfiguration</h3></div></div></div><p>
So now the printing works, but there are still problems. Most jobs print well, some do not print at
all. Some jobs have problems with fonts, which do not look good. Some jobs print fast and some
are dead-slow. We cannot cover it all, but we want to encourage you to read the brief paragraph about
-&#8220;<span class="quote">Avoiding the Wrong PostScript Driver Settings</span>&#8221; in <a class="link" href="CUPS-printing.html" title="Chapter 22. CUPS Printing Support">CUPS Printing
+<span class="quote">&#8220;<span class="quote">Avoiding the Wrong PostScript Driver Settings</span>&#8221;</span> in <a class="link" href="CUPS-printing.html" title="Chapter 22. CUPS Printing Support">CUPS Printing
Chapter</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
Client</a>.
-</p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2631965"></a>The Imprints Toolset</h2></div></div></div><p>
-<a class="indexterm" name="id2631973"></a>
+</p></div></div><div class="sect1" title="The Imprints Toolset"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id397996"></a>The Imprints Toolset</h2></div></div></div><p>
+<a class="indexterm" name="id398003"></a>
The Imprints tool set provides a UNIX equivalent of the Windows NT APW. For complete information, please
refer to the <a class="ulink" href="http://imprints.sourceforge.net/" target="_top">Imprints</a> Web site as well as the
documentation included with the Imprints source distribution. This section provides only a brief introduction
@@ -1871,44 +1871,44 @@ printing used in Samba. If you wish to volunteer, please coordinate your efforts
mailing list. The toolset is still in usable form, but only for a series of older printer models where
there are prepared packages to use. Packages for more up-to-date print devices are needed if Imprints
should 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.
-</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2632011"></a>What Is Imprints?</h3></div></div></div><p>
+</p><div class="sect2" title="What Is Imprints?"><div class="titlepage"><div><div><h3 class="title"><a name="id398034"></a>What Is Imprints?</h3></div></div></div><p>
Imprints is a collection of tools for supporting these goals:
-</p><div class="itemizedlist"><ul type="disc"><li><p>
+</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
Providing a central repository of information regarding Windows NT and 95/98 printer driver packages.
- </p></li><li><p>
+ </p></li><li class="listitem"><p>
Providing the tools necessary for creating the Imprints printer driver packages.
- </p></li><li><p>
+ </p></li><li class="listitem"><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="id2632045"></a>Creating Printer Driver Packages</h3></div></div></div><p>
+ </p></li></ul></div></div><div class="sect2" title="Creating Printer Driver Packages"><div class="titlepage"><div><div><h3 class="title"><a name="id398063"></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
installation client.
-</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2632061"></a>The Imprints Server</h3></div></div></div><p>
+</p></div><div class="sect2" title="The Imprints Server"><div class="titlepage"><div><div><h3 class="title"><a name="id398076"></a>The Imprints Server</h3></div></div></div><p>
The Imprints server is really a database server that may be queried via standard HTTP mechanisms. Each
printer entry in the database has an associated URL for the actual downloading of the package. Each
package is digitally signed via GnuPG, which can be used to verify that
the package downloaded is actually
the one referred in the Imprints database. It is strongly recommended that this security check
not be disabled.
-</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2632078"></a>The Installation Client</h3></div></div></div><p>
+</p></div><div class="sect2" title="The Installation Client"><div class="titlepage"><div><div><h3 class="title"><a name="id398090"></a>The Installation Client</h3></div></div></div><p>
More information regarding the Imprints installation client is available from the documentation file
<code class="filename">Imprints-Client-HOWTO.ps</code> that is included with the Imprints source package. The Imprints
installation client comes in two forms:
-</p><div class="itemizedlist"><ul type="disc"><li><p>A set of command-line Perl scripts.</p></li><li><p>A GTK+-based graphical interface to the command-line Perl scripts.</p></li></ul></div><p>
+</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>A set of command-line Perl scripts.</p></li><li class="listitem"><p>A GTK+-based graphical interface to the command-line Perl scripts.</p></li></ul></div><p>
The installation client (in both forms) provides a means of querying the Imprints database server for
a matching list of known printer model names as well as a means to download and install the drivers on
remote Samba and Windows NT print servers.
</p><p>
The basic installation process is in four steps, and Perl code is wrapped around smbclient and rpcclient.
-</p><div class="itemizedlist"><ul type="disc"><li><p>
+</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
For each supported architecture for a given driver:
- </p><div class="orderedlist"><ol type="1"><li><p>rpcclient: Get the appropriate upload directory on the remote server.</p></li><li><p>smbclient: Upload the driver files.</p></li><li><p>rpcclient: Issues an AddPrinterDriver() MS-RPC.</p></li></ol></div><p>
- </p></li><li><p>rpcclient: Issues an AddPrinterEx() MS-RPC to actually create the printer.</p></li></ul></div><p>
+ </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p>rpcclient: Get the appropriate upload directory on the remote server.</p></li><li class="listitem"><p>smbclient: Upload the driver files.</p></li><li class="listitem"><p>rpcclient: Issues an AddPrinterDriver() MS-RPC.</p></li></ol></div><p>
+ </p></li><li class="listitem"><p>rpcclient: Issues an AddPrinterEx() MS-RPC to actually create the printer.</p></li></ul></div><p>
One of the problems encountered when implementing the Imprints tool set was the namespace issues between
-various supported client architectures. For example, Windows NT includes a driver named &#8220;<span class="quote">Apple LaserWriter
-II NTX v51.8</span>&#8221;, and Windows 95 calls its version of this driver &#8220;<span class="quote">Apple LaserWriter II NTX</span>&#8221;.
+various supported client architectures. For example, Windows NT includes a driver named <span class="quote">&#8220;<span class="quote">Apple LaserWriter
+II NTX v51.8</span>&#8221;</span>, and Windows 95 calls its version of this driver <span class="quote">&#8220;<span class="quote">Apple LaserWriter II NTX</span>&#8221;</span>.
</p><p>
The problem is how to know what client drivers have been uploaded for a printer. An astute reader will
remember that the Windows NT Printer Properties dialog only includes space for one printer driver name. A
@@ -1918,11 +1918,11 @@ quick look in the Windows NT 4.0 system registry at:
</code></p><p>
will reveal that Windows NT always uses the NT driver name. This is okay because Windows NT always requires
that at least the Windows NT version of the printer driver is present. Samba does not have the
-requirement internally; therefore, &#8220;<span class="quote">How can you use the NT driver name if it has not already been installed?</span>&#8221;
+requirement internally; therefore, <span class="quote">&#8220;<span class="quote">How can you use the NT driver name if it has not already been installed?</span>&#8221;</span>
</p><p>
The way of sidestepping this limitation is to require that all Imprints printer driver packages include both the Intel Windows NT and
95/98 printer drivers and that the NT driver is installed first.
-</p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2632212"></a>Adding Network Printers without User Interaction</h2></div></div></div><p>
+</p></div></div><div class="sect1" title="Adding Network Printers without User Interaction"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id398206"></a>Adding Network Printers without User Interaction</h2></div></div></div><p>
The following MS Knowledge Base article may be of some help if you need to handle Windows 2000 clients:
<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
applies to Windows XP Professional clients. The ideas sketched out in this section are inspired by this
@@ -1941,12 +1941,12 @@ clients access printers via Samba, and works for Windows-based print servers too
<strong class="userinput"><code>rundll32 printui.dll,PrintUIEntry /y /n "\\cupsserver\infotec2105-PS"</code></strong>
</pre><p>
Here is a list of the used command-line parameters:
-</p><div class="variablelist"><dl><dt><span class="term">/dn</span></dt><dd><p>deletes a network printer.</p></dd><dt><span class="term">/q</span></dt><dd><p>quiet modus.</p></dd><dt><span class="term">/n</span></dt><dd><p>names a printer.</p></dd><dt><span class="term">/in</span></dt><dd><p>adds a network printer connection.</p></dd><dt><span class="term">/y</span></dt><dd><p>sets printer as default printer.</p></dd></dl></div><div class="itemizedlist"><ul type="disc"><li><p>
+</p><div class="variablelist"><dl><dt><span class="term">/dn</span></dt><dd><p>deletes a network printer.</p></dd><dt><span class="term">/q</span></dt><dd><p>quiet modus.</p></dd><dt><span class="term">/n</span></dt><dd><p>names a printer.</p></dd><dt><span class="term">/in</span></dt><dd><p>adds a network printer connection.</p></dd><dt><span class="term">/y</span></dt><dd><p>sets printer as default printer.</p></dd></dl></div><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
Line 1 deletes a possibly existing previous network printer <span class="emphasis"><em>infotec2105-IPDS</em></span>
(which had used native Windows drivers with LPRng that were removed from the server that was
converted to CUPS). The <code class="literal">/q</code> at the end prevents confirm
or error dialog boxes from popping up. They should not be presented to the user logging on.
- </p></li><li><p>
+ </p></li><li class="listitem"><p>
Line 2 adds the new printer
<span class="emphasis"><em>infotec2105-PS</em></span> (which actually is the same
physical device but is now run by the new CUPS printing system and associated with the
@@ -1954,7 +1954,7 @@ Here is a list of the used command-line parameters:
the user logging in (e.g., by a procedure as discussed earlier in this chapter or by running
<code class="literal">cupsaddsmb</code>). The driver is now autodownloaded to the client PC where the
user is about to log in.
- </p></li><li><p>
+ </p></li><li class="listitem"><p>
Line 3 sets the default printer to this new network printer (there might be several other
printers installed with this same method, and some may be local as well, so we decide for a
default printer). The default printer selection may, of course, be different for different users.
@@ -1972,16 +1972,16 @@ do not bother checking. Just allow the de-installation/re-installation to occur
it's really quick anyway (1 to 2 seconds).
</p><p>
The additional benefits for this are:
-</p><div class="itemizedlist"><ul type="disc"><li><p>
+</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
It puts in place any printer default setup changes automatically at every user logon.
- </p></li><li><p>
- It allows for &#8220;<span class="quote">roaming</span>&#8221; users' login to the domain from different workstations.
+ </p></li><li class="listitem"><p>
+ It allows for <span class="quote">&#8220;<span class="quote">roaming</span>&#8221;</span> users' login to the domain from different workstations.
</p></li></ul></div><p>
Since network printers are installed per user, this much simplifies the process of keeping the installation
up to date. The few extra seconds at logon time will not really be noticeable. Printers can be centrally
added, changed, and deleted at will on the server with no user intervention required from the clients
(you just need to keep the logon scripts up to date).
-</p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2632486"></a>The <code class="literal">addprinter</code> Command</h2></div></div></div><p>
+</p></div><div class="sect1" title="The addprinter Command"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id398448"></a>The <code class="literal">addprinter</code> Command</h2></div></div></div><p>
The <code class="literal">addprinter</code> command can be configured to be a shell script or program executed by
Samba. It is triggered by running the APW from a client against the Samba print server. The APW asks
the user to fill in several fields (such as printer name, driver to be used, comment, port monitor,
@@ -1989,41 +1989,41 @@ and so on). These parameters are passed on to Samba by the APW. If the addprinte
way that it can create a new printer (through writing correct printcap entries on legacy systems or
by executing the <code class="literal">lpadmin</code> command on more modern systems) and create the associated share,
then the APW will in effect really create a new printer on Samba and the UNIX print subsystem!
-</p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2632524"></a>Migration of Classical Printing to Samba</h2></div></div></div><p>
+</p></div><div class="sect1" title="Migration of Classical Printing to Samba"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id398481"></a>Migration of Classical Printing to Samba</h2></div></div></div><p>
The basic NT-style printer driver management has not changed considerably in 3.0 over the 2.2.x releases
(apart from many small improvements). Here migration should be quite easy, especially if you followed
previous advice to stop using deprecated parameters in your setup. For migrations from an existing 2.0.x
setup, or if you continued Windows 9x/Me-style printing in your Samba 2.2 installations, it is more of
an effort. Please read the appropriate release notes and the HOWTO Collection for Samba-2.2.x. You can
follow several paths. Here are possible scenarios for migration:
-</p><div class="itemizedlist"><ul type="disc"><li><p>
+</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
You need to study and apply the new Windows NT printer and driver support. Previously used
parameters <em class="parameter"><code>printer driver file</code></em>, <em class="parameter"><code>printer driver</code></em>,
and <em class="parameter"><code>printer driver location</code></em> are no longer supported.
- </p></li><li><p>
+ </p></li><li class="listitem"><p>
If you want to take advantage of Windows NT printer driver support, you also need to migrate the
Windows 9x/Me drivers to the new setup.
- </p></li><li><p>
+ </p></li><li class="listitem"><p>
An existing <code class="filename">printers.def</code> file (the one specified in the now removed parameter
<em class="parameter"><code>printer driver file</code></em>) will no longer work with Samba-3. In 3.0, smbd attempts
to locate Windows 9x/Me driver files for the printer in <em class="parameter"><code>[print$]</code></em>
and additional settings in the TDB and only there; if it fails, it will <span class="emphasis"><em>not</em></span>
(as 2.2.x used to do) drop down to using a <code class="filename">printers.def</code> (and all associated
parameters). The make_printerdef tool is removed and there is no backward compatibility for this.
- </p></li><li><p>You need to install a Windows 9x/Me driver into the
+ </p></li><li class="listitem"><p>You need to install a Windows 9x/Me driver into the
<em class="parameter"><code>[print$]</code></em> share for a printer on your Samba
- host. The driver files will be stored in the &#8220;<span class="quote">WIN40/0</span>&#8221; subdirectory of
+ host. The driver files will be stored in the <span class="quote">&#8220;<span class="quote">WIN40/0</span>&#8221;</span> subdirectory of
<em class="parameter"><code>[print$]</code></em>, and some other settings and information go
- into the printing-related TDBs.</p></li><li><p>
+ into the printing-related TDBs.</p></li><li class="listitem"><p>
If you want to migrate an existing <code class="filename">printers.def</code> file into the new setup, the only current
solution is to use the Windows NT APW to install the NT drivers and the 9x/Me drivers. This can be scripted
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
rpcclient usage in <a class="link" href="CUPS-printing.html" title="Chapter 22. CUPS Printing Support">CUPS Printing</a>.
- </p></li></ul></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2632673"></a>Publishing Printer Information in Active Directory or LDAP</h2></div></div></div><p>
+ </p></li></ul></div></div><div class="sect1" title="Publishing Printer Information in Active Directory or LDAP"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id398612"></a>Publishing Printer Information in Active Directory or LDAP</h2></div></div></div><p>
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="id2632702"></a>Common Errors</h2></div></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2632708"></a>I Give My Root Password but I Do Not Get Access</h3></div></div></div><p>
+</p></div><div class="sect1" title="Common Errors"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id398639"></a>Common Errors</h2></div></div></div><div class="sect2" title="I Give My Root Password but I Do Not Get Access"><div class="titlepage"><div><div><h3 class="title"><a name="id398644"></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
@@ -2034,7 +2034,7 @@ command as follows:
New SMB password: secret
Retype new SMB password: secret
</pre><p>
-</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2632749"></a>My Print Jobs Get Spooled into the Spooling Directory, but Then Get Lost</h3></div></div></div><p>
+</p></div><div class="sect2" title="My Print Jobs Get Spooled into the Spooling Directory, but Then Get Lost"><div class="titlepage"><div><div><h3 class="title"><a name="id398682"></a>My Print Jobs Get Spooled into the Spooling Directory, but Then Get Lost</h3></div></div></div><p>
Do not use the existing UNIX print system spool directory for the Samba spool directory. It may seem
convenient and a savings of space, but it only leads to problems. The two must be separate. The UNIX/Linux
system print spool directory (e.g., <code class="filename">/var/spool/cups</code>) is typically owned by a