Thursday, August 6, 2009

Samba: smbd unable to connect to cups server

SkyHi @ Thursday, August 06, 2009
Q. I have printing disabled in Samba but still puts tons of lines like this in the syslog:`

May 5 09:45:02 www smbd[]: [2008/05/05 09:45:02, 0] printing/print_cups.c:cups_connect(69)
May 5 09:45:02 www smbd[]: Unable to connect to CUPS server localhost:631 - Connection refused

(CUPS = Common UNIX Printing System)
How to I stop this?

A. You really have to hit Samba over the head to disable printing.

After trying many things, this did the trick for me:

load printers = no (this alone isn't enough)
show add printer wizard = no
printing = none
printcap name = /dev/null
disable spoolss = yes

Hope it helps you.