[cups.general] make printers belonging to a class invisible asindividual printers

Michael Sweet mike at easysw.com
Fri Nov 21 07:30:51 PST 2008


Bernard Massot wrote:
> Hello,
> 
> I have a class with two printers which is working fine. However I'd like
> the two printers belonging to this class to be invisible as individual
> printers.
> I mean I don't want them to be listed in "lpstat -a", in graphical
> frontends or wherever. I only want the class to be.
> 
> I tried to use "shared no" in the printer entries, I tried various
> things with "OpPolicy"s and "Location"s but I can still view these
> printers.
> For the moment I use cups servers on each computer (Linux desktops). But
> I can switch to a central server if that can help (anyway I intend to do
> so some day).

You can try doing:

     lpadmin -p printer -u allow:root

for each printer.  Users will then only see the classes and still be
able to send jobs to the printers via the class.  However, that only
works for applications that use the standard CUPS API for getting the
printer list - custom implementations might not send the username in
the "get printers" request, so the printer list won't be filtered.

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com




More information about the cups mailing list