[Samba] Samba 3.0.0, CUPS support - "Unable to open printcap
file cups for read!"
Fran Fabrizio
fran at cis.uab.edu
Tue Dec 9 20:06:56 GMT 2003
A couple more data points:
# smbclient //ds119b/ps4
Password:
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
#
The syslog shows this as a result:
Dec 9 13:46:47 ds119b smbd[21284]: [2003/12/09 13:46:47,
0] printing/pcap.c:pcap_printername_ok(282)
Dec 9 13:46:47 ds119b smbd[21284]: Unable to open printcap file cups
for read!
Dec 9 13:46:47 ds119b smbd[21284]: [2003/12/09 13:46:47, 0]
smbd/service.c:make_connection(850)
Dec 9 13:46:47 ds119b smbd[21284]: ds119b (192.168.2.232) couldn't
find service ps4
I can successfully print to this printer from the samba linux host via
the standard lpr -Pps4 approach. I checked my cupsd.conf to make sure
it had a Printcap = /etc/printcap and PrintcapFormat = BSD entries and
it does. The generated /etc/printcap has only one non-comment line,
"ps4:".
-Fran
On Tue, 2003-12-09 at 13:40, Fran Fabrizio wrote:
> Hello,
>
> I've compiled Samba 3.0.0 with CUPS support. I verified this:
>
> # ldd /usr/local/samba/sbin/smbd
> *snip*
> libcups.so.2 => /usr/lib/libcups.so.2 (0x400dc000)
> *snip*
>
> My smb.conf was copied from the HOWTO and the relevant sections look
> like:
>
> [global]
>
> *snip*
>
> # print support
> load printers = yes
> printing = cups
> printcap name = cups
>
> *snip*
>
> [printers]
> comment = All Printers
> path = /var/spool/samba
> browseable = no
> public = yes
> guest ok = yes
> writable = no
> printable = yes
> printer admin = root, @ntadmins
>
>
> I log into the domain on an XP Pro client using the root account, and if
> I try to browse to the printer via My Computer --> My Network Places -->
> Entire Network --> MyDomain --> ds119b (this is my samba server) -->
> Printers and Faxes, it comes up blank. If I try to directly access the
> printer via \\ds119b\MyPrinterName, it gets stuck in a loop. In both
> cases, I am getting errors like this:
>
> Dec 9 13:38:17 ds119b smbd[21244]: [2003/12/09 13:38:17,
> 0] printing/pcap.c:pcap_printername_ok(282)
> Dec 9 13:38:17 ds119b smbd[21244]: Unable to open printcap file cups
> for read!
>
> Any ideas? Thanks!
>
> -Fran
>
>
>
>
>
More information about the samba
mailing list