Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Samba w/no printers: Unable to open printcap file for read!

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
[sinz]
n00b
n00b
Posts: 71
Joined: Tue Jun 08, 2004 9:28 pm

Samba w/no printers: Unable to open printcap file for read!

  • Quote

Post by [sinz] » Mon Nov 13, 2006 9:07 pm

I have a Samba file server with no printers attached and there are no printers listed in my smb.conf. However, my samba logs seem to be filling themselves with the following error:

Code: Select all

[2006/11/10 15:34:01, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
I emerged Samba without cups support. I'm wondering if there's a Samba option to disable looking for the /etc/printcap file since it doesn't exist on my system. I've looked through the Samba docs but haven't found anything. Any advice would be appreciated. Thanks.
Top
ferdog
n00b
n00b
Posts: 14
Joined: Thu Jan 29, 2004 7:40 pm

  • Quote

Post by ferdog » Fri Nov 24, 2006 10:20 am

In smb.conf make sure that load printers = no and that printing = cups is commented out. Then restart samba.
Top
[sinz]
n00b
n00b
Posts: 71
Joined: Tue Jun 08, 2004 9:28 pm

  • Quote

Post by [sinz] » Mon Dec 04, 2006 6:05 pm

I added load printers = no and there is no printing = cups in my conf. I restarted the daemon and I'm still getting the same error in the logs. Any other ideas?

edit
In the Samba docs I found:
If a [printers] section occurs in the configuration file, users are able to connect to any printer specified in the local host's printcap file.

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.
I take this to mean that it's trying to check the printcap file to see if the named sections are printers. But why would it do this if I compiled without cups support? Can I get away with setting:

Code: Select all

printcap file = /dev/null
?

I can't really tinker around with this because it's a work server that is in constant use. It's not really that big of a problem but it makes it a pain to filter through when I'm looking for real problems and with many users sharing the sever the disk space it uses is growing fairly rapidly. Any suggestions are greatly appreciated.
Top
timomeinen
n00b
n00b
Posts: 19
Joined: Wed May 25, 2005 10:51 am
Location: Germany
Contact:
Contact timomeinen
Website

  • Quote

Post by timomeinen » Thu Feb 28, 2008 10:55 am

For me the "load printers = no" worked fine. But I found a similar question in the samba mailing list.

The solution is to add:

Code: Select all

load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
Greetings,
Timo
--
Glück Auf
Timo
Top
Post Reply

4 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic