Samba : Unable to connect to CUPS server, connection refused

By | May 13, 2011

You may notify in /var/log/messages the following error about smbd daemon regarding the cupsd printing service :

smbd[5955]: [2011/05/13 15:03:59, 0] printing/print_cups.c:cups_connect(69)
May 13 15:03:59 neptune smbd[5955]:   Unable to connect to CUPS server localhost:631 – Connection refused

This occur when the service is disabled.  If you do not have a printer and do not want the printing service, you may want to disable this in the samba config file to avoid the system log print this error every eight minutes.  To do so edit the following file :