[Samba] CUPS integration does not work properly when not linked

Florian Effenberger floeff at arcor.de
Wed Sep 8 18:10:31 GMT 2004

I have a Samba 3.0.6 server and a CUPS 1.2.0 server running on my machine.
They have been compiled with:

./configure --with-pam --with-pam_smbpass --with-quotas --with-sys-quotas

./configure --prefix=/usr/local/cups --with-cups-user=cups --with-cups-
group=cups --with-docdir=/usr/local/cups/docdir --with-
logdir=/usr/local/cups/logdir --with-rcdir=/usr/local/cups/rcdir 

As you can see, CUPS lies in an unusual path, so Samba did NOT see the cups-
config file and was NOT linked to CUPS. Your documentation states that even
without linking it should work fine, however, it doesn't.

/etc/printcap contains:
# This file was automatically generated by cupsd(8) from the
# /usr/local/cups/etc/cups/printers.conf file.  All changes to this file
# will be lost.

This is the printer I set up via CUPS. I can print to it using the CUPS web
interface (print test page).

My /usr/local/samba/lib/smb.conf looks like:

# Samba config file created using SWAT
# from (
# Date: 2004/09/08 17:58:00

# Global parameters
         workgroup = MYGROUP
         netbios aliases = FILESERVER
         server string = Dateiserver
         security = SHARE
         passdb backend = tdbsam
         passwd program = /usr/bin/passwd %u
         passwd chat = *new*password* %n\n *new*password* %n\n *updated*
         unix password sync = Yes
         time server = Yes
         deadtime = 15
         printcap name = cups
         os level = 65535
         preferred master = Yes
         domain master = Yes
         ldap ssl = no
         invalid users = root
         admin users = flux
         write list = flux
         printer admin = flux
         create mask = 0700
         directory mask = 0700
         printing = cups
         print command = /usr/local/cups/bin/lp -c -d%p %s; rm %s
         lpq command = /usr/local/cups/bin/lpstat -o%p
         lprm command = /usr/local/cups/bin/cancel %p-%j
         lppause command = /usr/local/cups/bin/lp -i %p-%j -H hold
         lpresume command = /usr/local/cups/bin/lp -i %p-%j -H resume
         queuepause command = /usr/local/cups/bin/disable %p
         queueresume command = /usr/local/cups/bin/enable %p

(and then some file shares follow)

I cannot see the CUPS printers in my list (using Windows and smbclient). 
is no chance to print with my Windows clients.

More information about the samba mailing list