1 <samba:parameter name="printcap name"
4 print="1" developer="1"
5 xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
6 <synonym>printcap</synonym>
8 <para>This parameter may be used to override the
9 compiled-in default printcap name used by the server (usually <filename moreinfo="none">
10 /etc/printcap</filename>). See the discussion of the <link
11 linkend="PRINTERSSECT">[printers]</link> section above for reasons
12 why you might want to do this.</para>
14 <para>To use the CUPS printing interface set <command moreinfo="none">printcap name = cups
15 </command>. This should be supplemented by an addtional setting
16 <smbconfoption name="printing">cups</smbconfoption> in the [global]
17 section. <command moreinfo="none">printcap name = cups</command> will use the
18 "dummy" printcap created by CUPS, as specified in your CUPS
22 <para>On System V systems that use <command moreinfo="none">lpstat</command> to
23 list available printers you can use <command moreinfo="none">printcap name = lpstat
24 </command> to automatically obtain lists of available printers. This
25 is the default for systems that define SYSV at configure time in
26 Samba (this includes most System V based systems). If <parameter moreinfo="none">
27 printcap name</parameter> is set to <command moreinfo="none">lpstat</command> on
28 these systems then Samba will launch <command moreinfo="none">lpstat -v</command> and
29 attempt to parse the output to obtain a printer list.</para>
31 <para>A minimal printcap file would look something like this:</para>
33 <para><programlisting format="linespecific">
39 </programlisting></para>
41 <para>where the '|' separates aliases of a printer. The fact
42 that the second alias has a space in it gives a hint to Samba
43 that it's a comment.</para>
45 <note><para>Under AIX the default printcap
46 name is <filename moreinfo="none">/etc/qconfig</filename>. Samba will assume the
47 file is in AIX <filename moreinfo="none">qconfig</filename> format if the string
48 <filename moreinfo="none">qconfig</filename> appears in the printcap filename.</para></note>
51 <value type="default">/etc/printcap</value>
52 <value type="example">/etc/myprintcap</value>