How does snap cups support printservers with clients.conf

Hey Guys,

in a company we use Kubuntu 24.04 as desktop PCs. For printing we use a printserver with cups. Before migration to 24.04 we added the printserver in /etc/cups/client.conf on the client PCs. In printers.conf on the printserver we set to each printer a group with the user who should be able to print on it: AllowUser @thisprintergroup This worked well but not now after migrating to Ubuntu 24.04. In any snap application (currently Thunderbird, Firefox and Chromium) we aren’t able to see and use printers. Also it doesn’t work with removed AllowUser statements. To configure the printers directly in /etc/cups/printers.conf on the client pc we also tried, but without success… … to remove snap cups didn’t make it better.

We have been working with Linux desktops for over 20 years and now it’s a heavy work to get snap configured and running in a company environment…

Does anyone have any idea how this could work?

Thanks

I’d do it the exact same way, just inside the snap namespace under /var/snap/cups/common/etc/cups/… not actually rocket science :wink:

Hmm, we already tried this, I guess.

After stopping cups with snap stop cups we replaced

ServerName /var/snap/cups/common/run/cups.sock

with

ServerName printserver.<domain>

in

/var/snap/cups/common/etc/cups/client.conf

But after start with snap start cups

it always becomes the default again:

ServerName /var/snap/cups/common/run/cups.sock

What’s the trick? Do it belongs to proxy mode of cups? How we can adjust this?

Thanks for your help!

Gerald

@till.kamppeter should configuration of the cups snap via the client.conf work ?

Hi guys,

next point I ran in trouble…

For testing purpose I removed all cups related deb packets. Moved /etc/cups to /etc/cups.old. Then I installed snap install cups. With https://localhost:631 I installed a printer (Sharp MX-3061S) with PPD-Files from Sharp (I didn’t find any Printer App for this type of printer). Testpage was printed. I can see this printer now in Snap Chromium and I’m able to print.

But when I add the AllowUser statement to this printer config (via localhost:631 or directly in printers.conf with stopped cups, this printers disapears from Chromium printers list as well as from the localhost:631/printers/ site.

Doesn’t snap-cups support AllowUser username|@groupname?

Many thanks for your support!