[cups.general] How to restrict the print access ?

Tomas Davidek davidek at ipnp.troja.mff.cuni.cz
Wed Oct 13 05:52:06 PDT 2004


pipitas wrote:

>Tomas Davidek wrote:
>
>  
>
>>Hello,
>>  I want to restrict the print access on my Linux box so that  only some
>>few other machines can print using my CUPS.
>>    
>>
>
>[....]
>
>  
>
>><Location /printers>
>>Deny From All
>>Allow 127.0.0.1
>>Allow 195.113.22.140
>></Location>
>>    
>>
>
>That setting is correct. It should allow only localhost and
>195.113.22.140 to print.
>
>Have you restarted cupsd after changing the setting?
>
>  
>
>>but I still can print from another machine. 
>>    
>>
>
>Note that you should also disable cups-lpd (see man cups-lpd)
>in case you have it enabled. (Because cups-lpd doesnt honor
>the settings of cupsd. It takes all jobs [may be restricted
>through "/etc/hosts.allow|deny"] and then submits them to 
>cupsd from as a localhost user.
>  
>
Hello,
   thanks, this was really the problem (running cups-lpd through 
inetd.conf). Ok, if I disable it, I can't access the server via lpd 
anymore, but printing via ipp://<servername>:631/printers/<printername> 
works well.

Thanks a lot for help,
        regards
                         Tomas





More information about the cups mailing list