Sep 27

(Samba errror : unable to connect to CUPS server localhost – Connection refused)

To disable printing support, you should edit your samba configuration settings.

Edit or add the flowing line to your /etc/samba/smb.conf

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

written by MG \\ tags: , ,

5 Responses to “Linux: How to disable printing in samba”

  1. 1. Pako Says:


  2. 2. Spudz76 Says:

    This worked great! Really sad that “load printers = no” doesn’t also set “disable spoolss”… if you have no printers, wouldn’t it make sense to kill the print services? Does anyone actually add and remove printers “on the fly”? Bad Samba.

  3. 3. moon Says:

    Worked fine. I agree with the comment above 🙂

  4. 4. Clive Says:

    Thanks – very clear and useful 🙂

  5. 5. Bill Westrup Says:

    This goes in the [global] section, correct?

Leave a Reply