openSUSE 12.x: disabling smbd CUPS warnings when you have Samba but not printing installed
Posted by jpluimers on 2013/09/06
As Dave mentioned a couple of years ago in an article smbd_unable_to_connect_to_cups_server, even if you have printing disabled in Samba, you can get errors in /var/log/messages like these±
May 5 09:45:02 www smbd[<pid>]: [2008/05/05 09:45:02, 0] printing/print_cups.c:cups_connect(69)
May 5 09:45:02 www smbd[<pid>]: Unable to connect to CUPS server localhost:631 - Connection refused
This happens even if you disable the printers and print$ shares from within YaST2.
He proposed a 5-line change in the /etc/samba/smb.conf, but testing this on openSUSE 12.x, shows the actual diff is a lot smaller: just change the entry for printcap name, then add an entry for disable spoolss.
This is the diff of /etc/samba/smb.conf.printing versus /etc/samba/smb.conf:
9c9 < printcap name = cups --- > printcap name = /dev/null 11a12 > disable spoolss = yes
After this, make sure you restart the smb service:
rcsmb restart
–jeroen






Leave a comment