How to hide a printer on the cups server

Michael Sweet mike at easysw.com
Fri Feb 10 05:03:10 PST 2006


Antti Niemi wrote:
>> Franz-Werner Gergen wrote:
>>> Hello,
>>> 
>>> I'm using cups 1.1.20 and wan't to hide some printers (make it
>>> not browsable in the network). Of course, I'm able to restrict
>>> the access to the localhost (using Allow/Deny directives inside a
>>> Location /printers/name section) but the printer is seen by cups
>>> clients using my cups server.
>>> 
>>> How can I restrict browsing to the localhost for some printers?
>> You can't in CUPS 1.1.x, but CUPS 1.2 supports it.
>> 
> I'm using cups-1.2svn-r4885 and haven't quite figured out howto do
> this. There is a mention about this functionality in under the
> "what's new in cups-1.2" headline, but I haven't found any actual
> documentation.
> 
> So how can I restrict printer information being broadcasted on a
> per-printer basis, and based on which attributes can I do it
> (username, group, network segment, ip-address...)?

In the web interface, click on the "Unpublish Printer" button.

On the command-line, use:

     lpadmin -p printername -o printer-is-shared=false

That said, this is an all-or-nothing affair - you can't share a
printer with one network but not another.

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Publishing Software        http://www.easysw.com




More information about the cups mailing list