SAMBA Server disable CUPS

If you are seeing below in your /var/log/messages, and you are sure that you do not share any printing from your SAMBA server.

Aug 27 15:37:45 pmofilesvr smbd[21229]: [2013/08/27 15:37:45, 0] printing/print_cups.c:cups_connect(69)
Aug 27 15:37:45 pmofilesvr smbd[21229]:   Unable to connect to CUPS server localhost:631 - Connection refused
Aug 27 15:37:45 pmofilesvr smbd[21229]: [2013/08/27 15:37:45, 0] printing/print_cups.c:cups_connect(69)
Aug 27 15:37:45 pmofilesvr smbd[21229]:   Unable to connect to CUPS server localhost:631 - Connection refused

You may just disable it by having below in your smb.conf:

        load printers = no
        printcap name = /dev/null
        disable spoolss = yes

Test your config before reload or restart

        $ testparam -v

Reload or restart
        $ /etc/init.d/smb reload
        $ /etc/init.d/smb restart

Now check your log file if log above still persists.

No comments: