Fran Fabrizio
2003-Dec-09 19:40 UTC
[Samba] Samba 3.0.0, CUPS support - "Unable to open printcap file cups for read!"
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
Fran Fabrizio
2003-Dec-09 20:07 UTC
[Samba] Samba 3.0.0, CUPS support - "Unable to open printcap file cups for read!"
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 > > > > >
Kurt Pfeifle
2003-Dec-09 21:10 UTC
[Samba] Samba 3.0.0, CUPS support - "Unable to open printcap file cups for read!"
> [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 > # >It means Samba doesn't know about a printer share named "ps4" (nor a file share of that 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!This message might be bogus in your context and not lead to your real problem...> 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 >See?> 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.Have you also checked your smb.conf for an entry of "load printers = yes" ??> The generated /etc/printcap has only one non-comment line, > "ps4:". >That's OK.> -Fran
daniel.jarboe@custserv.com
2003-Dec-09 21:43 UTC
[Samba] Samba 3.0.0, CUPS support - "Unable to open printcap file cups for read!"
> 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!Hopefully a dumb question... but is cups running? Also, what does an lpstat -a show? ~ Daniel ----------------------------------------------------------------------- This message is the property of Time Inc. or its affiliates. It may be legally privileged and/or confidential and is intended only for the use of the addressee(s). No addressee should forward, print, copy, or otherwise reproduce this message in any manner that would allow it to be viewed by any individual not originally listed as a recipient. If the reader of this message is not the intended recipient, you are hereby notified that any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is strictly prohibited. If you have received this communication in error, please immediately notify the sender and delete this message. Thank you.
Maybe Matching Threads
- Can't join my domain
- Marking lit::shtest-format.py unsupported on PS4?, Re: buildbot failure in LLVM on llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast
- Marking lit::shtest-format.py unsupported on PS4?, Re: buildbot failure in LLVM on llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast
- PS4 code owner?
- Github build status reporting