<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=smb.conf%2Fprinters</id>
	<title>smb.conf/printers - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=smb.conf%2Fprinters"/>
	<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=smb.conf/printers&amp;action=history"/>
	<updated>2026-06-25T14:09:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://htyp.org/mw/index.php?title=smb.conf/printers&amp;diff=14120&amp;oldid=prev</id>
		<title>Woozle: Created page with &#039;==Usage== This page is based on a transcription of the manpage as of 2010-09-09. It does not, however, need to remain faithful to the original, and may be correcte…&#039;</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=smb.conf/printers&amp;diff=14120&amp;oldid=prev"/>
		<updated>2010-09-09T15:17:38Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;==Usage== This page is based on a transcription of the [[../manpage|manpage]] as of 2010-09-09. It does not, however, need to remain faithful to the original, and may be correcte…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Usage==&lt;br /&gt;
This page is based on a transcription of the [[../manpage|manpage]] as of 2010-09-09. It does not, however, need to remain faithful to the original, and may be corrected, reformatted, rearranged, or amended with additional information.&lt;br /&gt;
==About==&lt;br /&gt;
This section works like [[../homes|[homes]]], but for printers.&lt;br /&gt;
&lt;br /&gt;
If a [printers] section occurs in the configuration file, users are able to connect to any printer specified in the local host&amp;quot;s [[printcap]] file.&lt;br /&gt;
&lt;br /&gt;
When a connection request is made, the existing sections are scanned. If a match is found, it is used. If no match is found, but a [homes] section exists, it is used as described above. Otherwise, the requested section name is treated as a printer name and the appropriate printcap file is scanned to see if the requested section name is a valid printer share name. If a match is found, a new printer share is created by cloning the [printers] section.&lt;br /&gt;
&lt;br /&gt;
A few modifications are then made to the newly created share:&lt;br /&gt;
* The share name is set to the located printer name&lt;br /&gt;
* If no printer name was given, the printer name is set to the located printer name&lt;br /&gt;
* If the share does not permit guest access and no username was given, the username is set to the located printer name.&lt;br /&gt;
&lt;br /&gt;
The [printers] service MUST be printable &amp;amp;ndash; if you specify otherwise, the server will refuse to load the configuration file.&lt;br /&gt;
===Example===&lt;br /&gt;
Typically the path specified is that of a world-writeable spool directory with the sticky bit set on it. A typical [printers] entry looks like this:&lt;br /&gt;
&lt;br /&gt;
:&amp;#039;&amp;#039;&amp;#039;[printers]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:[[../params/path|path]] = /usr/spool/public&lt;br /&gt;
:[[../params/guest ok|guest ok]] = yes&lt;br /&gt;
:[[../params/printable|printable]] = yes&lt;br /&gt;
===Aliases===&lt;br /&gt;
All aliases given for a printer in the [[printcap]] file are legitimate printer names as far as the server is concerned. If your printing subsystem doesn´t work like that, you will have to set up a pseudo−printcap. This is a file consisting of one or more lines like this:&lt;br /&gt;
&lt;br /&gt;
: alias|alias|alias|alias...&lt;br /&gt;
&lt;br /&gt;
Each alias should be an acceptable printer name for your printing subsystem. In the [[../global|[global]]] section, specify the new file as your printcap. The server will only recognize names found in your pseudo−printcap, which of course can contain whatever aliases you like. The same technique could be used simply to limit access to a subset of your local printers.&lt;br /&gt;
&lt;br /&gt;
An alias, by the way, is defined as any component of the first entry of a printcap record. Records are separated by newlines, components (if there are more than one) are separated by vertical bar symbols (|).&lt;br /&gt;
&lt;br /&gt;
===SYSV===&lt;br /&gt;
On [[SYSV]] systems which use [[lpstat]] to determine what printers are defined on the system you may be able to use &amp;#039;&amp;#039;&amp;#039;[[../params/printcap name|printcap name]] = lpstat&amp;#039;&amp;#039;&amp;#039; to automatically obtain a list of printers. See the [[../params/printcap name|printcap name]] option for more details.&lt;/div&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
</feed>