[Samba] samba cannot find cups printcap

John Frankish j-frankish at slb.com
Sat Feb 20 02:45:54 MST 2010


I just upgraded from cups-1.3.8/samba-3.4.1 to cups-1.4.1/samba-3.4.3

After upgrading, the samba log showed that it could not find the printcap file - previously cups was not generating a printcap file, but things worked fine. I changed cupsd.conf to produce a printcap file, but the samba log shows it cannot find it, even though I placed it in /etc, /etc/cups, /usr/local/etc, /usr/local/etc/cups. Where does samba look by default?

If I change "printcap name = cups" to "printcap name = /usr/local/etc/cups/printcap", then the windows machines can print, but at the end of each print job, two extra pages are printed:

Additional page 1 - blank
Additional page 2 
ERROR: rangecheck
OFFENDING COMMAND: .installpagedevice

I'm assuming this happens because samba does not realize the printcap file is in cups format, is there a way around this problem?


        workgroup = WORKGROUP
        netbios name = DSLKAYAK
        hosts allow = 192.168.1.*
        security = share
        client ntlmv2 auth = no
        load printers = yes
        printing = cups
        printcap name = cups [later set to printcap name = /usr/local/etc/cups/printcap]
        path = /mnt/sdb4/dslshare
        read only = no
        browseable = yes
        guest ok = yes
        comment = All Printers
        path = /var/spool/samba
        browseable = yes
        public = yes
        guest ok = yes
        writable = no
        printable = yes
        comment = Printer Drivers
        path = /usr/local/share/cups/drivers
        browseable = yes
        guest ok = no
        read only = yes
        write list = root

More information about the samba mailing list