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