# Disable CUPS Browsed

**URL:** https://discourse.ubuntubudgie.org/t/disable-cups-browsed/6566
**Category:** General
**Created:** [February 17, 2023, 9:13pm UTC](https://discourse.ubuntubudgie.org/t/disable-cups-browsed/6566 "2023-02-17T21:13:14Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![makitso](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/makitso/32/4961_2.png) [@makitso](https://discourse.ubuntubudgie.org/u/makitso)
#### Post date: [February 17, 2023, 9:13pm UTC](https://discourse.ubuntubudgie.org/t/disable-cups-browsed/6566/1 "2023-02-17T21:13:14Z")

</div>

Running 22.04  
Modified cups-browsed-config and added BrowseRemoteProtocols none to the file.  
then executed these commands  
sudo systemctl stop cups-browsed  
sudo systemctl disable cups-browsed

However, network printer still being added.  
What am I doing wrong?

---

<div class="post-metadata">

### Author: ![fossfreedom](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/fossfreedom/32/1405_2.png) [@fossfreedom](https://discourse.ubuntubudgie.org/u/fossfreedom)
#### Post date: [February 18, 2023, 8:27am UTC](https://discourse.ubuntubudgie.org/t/disable-cups-browsed/6566/3 "2023-02-18T08:27:15Z")

</div>

I suspect the avahi daemon might be coming into play here but i have no knowledge how to specifically target network printers.

---

<div class="post-metadata">

### Author: ![aandmsantos0910](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/aandmsantos0910/32/3764_2.png) [@aandmsantos0910](https://discourse.ubuntubudgie.org/u/aandmsantos0910)
#### Post date: [February 18, 2023, 8:31am UTC](https://discourse.ubuntubudgie.org/t/disable-cups-browsed/6566/4 "2023-02-18T08:31:35Z")

</div>

Found this:

In `/etc/cups/cups-browsed.conf`, set directive:

```auto
BrowseProtocols none

```

Afterwards, run `service cups-browsed restart` and `service cups restart`. There should be no printers visible, except those you’ve added yourself.

---

<div class="post-metadata">

### Author: ![aandmsantos0910](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/aandmsantos0910/32/3764_2.png) [@aandmsantos0910](https://discourse.ubuntubudgie.org/u/aandmsantos0910)
#### Post date: [February 18, 2023, 8:37am UTC](https://discourse.ubuntubudgie.org/t/disable-cups-browsed/6566/5 "2023-02-18T08:37:02Z")

</div>

Found this if it is avahi related:

As mentioned earlier, this is now done in the **client-side cups libraries** (ie libcups.so, which GNOME and KDE apps link against) and not in the cupsd server. So changing the “Browse” settings in the cups server won’t work.

```auto
$ ldd /usr/lib/x86_64-linux-gnu/libcups.so.2
...
libavahi-common.so.3 => /usr/lib/x86_64-linux-gnu/libavahi-common.so.3
libavahi-client.so.3 => /usr/lib/x86_64-linux-gnu/libavahi-client.so.3
...

```

IE this behaviour (of showing remote printers in the Print dialog box) happens even if you turn off your local cups server. You can disable it by turning off the `avahi` service, but that will disable all zeroconf/mdns related functionality.

However, there is at least a way to turn off most of avahi’s functionality (including adding remote printers into the CUPS clients) while keeping the DNS functionality (eg when looking up `foo.local`-style host names):

edit /etc/avahi/avahi-daemon.conf and in the `[server]` section, add **`enable-dbus=no`** then restart the avahi-daemon service.

---

<div class="post-metadata">

### Author: ![makitso](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/makitso/32/4961_2.png) [@makitso](https://discourse.ubuntubudgie.org/u/makitso)
#### Post date: [February 18, 2023, 3:26pm UTC](https://discourse.ubuntubudgie.org/t/disable-cups-browsed/6566/6 "2023-02-18T15:26:51Z")

</div>

> [@aandmsantos0910](#):
>
> add **`enable-dbus=no`** then restart the avahi-daemon service.

This fixed the problem but created several others, so had to revert.

---

<div class="post-metadata">

### Author: ![aandmsantos0910](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/aandmsantos0910/32/3764_2.png) [@aandmsantos0910](https://discourse.ubuntubudgie.org/u/aandmsantos0910)
#### Post date: [February 18, 2023, 3:57pm UTC](https://discourse.ubuntubudgie.org/t/disable-cups-browsed/6566/7 "2023-02-18T15:57:16Z")

</div>

I believe the avahi-daemon uses IPP to search and add printers for driverless print queues. If you do not use airprint or mopria to print from mobile devices to your printer you can try disbaling the IPP protocal on your printer so that the OS does not see it and add it. That is the only other thing I can think of.

In my case I disbaled AirPrint/Bonjour only on my Canon printer since I print via android mobile devices which uses Mopria and on my Ubuntu Budgie install which is 22.10 it stooped adding my Canon printer.

---

<div class="post-metadata">

### Author: ![Nandovici](https://avatars.discourse-cdn.com/v4/letter/n/3e96dc/32.png) [@Nandovici](https://discourse.ubuntubudgie.org/u/Nandovici)
#### Post date: [February 21, 2024, 1:39pm UTC](https://discourse.ubuntubudgie.org/t/disable-cups-browsed/6566/8 "2024-02-21T13:39:38Z")

</div>

Hi,

On Debian 12, I resolved uncommenting this line from` /etc/cups/cups-browsed.conf`:

`# BrowseDeny All`

then run `service cups-browsed restart`.

I suppose it will work on Ubuntu too.

---

<div class="post-metadata">

### Author: ![puffettacicciottella](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/puffettacicciottella/32/4525_2.png) [@puffettacicciottella](https://discourse.ubuntubudgie.org/u/puffettacicciottella)
#### Post date: [February 23, 2024, 3:57pm UTC](https://discourse.ubuntubudgie.org/t/disable-cups-browsed/6566/9 "2024-02-23T15:57:17Z")

</div>

Hi,

I’ve solved (workarounded) automatic network printers configuration by editing /etc/avahi/avahi-daemon.conf and changing

use-ipv4=yes  
use-ipv6=yes

in

use-ipv4=no  
use-ipv6=no
