根据cupsd.conf文档 ,应该能够“需要远程访问的身份validation,但允许本地访问没有身份validation”。 在这个问题上似乎没有任何其他文件。
我试着在cupsd.conf中放入以下内容:
<Location /> # Restrict access to the server... Allow from 192.168.1.0/24 Require valid-user Satisfy any Order allow,deny </Location>
这对我不起作用。
有没有人得到这个工作? 是否有一个示例cupsd.conf可用于此configuration?
添加以下行到你的片段:
Allow from localhost Allow from 127.0.0.1 Deny from all
并将Order行更改为
Order deny,allow
所以它写道:
<Location /> # Restrict access to the server 'root' location... Allow from 192.168.1.0/24 Allow from localhost Allow from 127.0.0.1 Deny from all Require valid-user Satisfy any Order deny,allow </Location>
如果这还不够,请为<Location /printers>和</Location /admin>添加相同的设置:
<Location /printers> # Restrict access to the server's shared printers... Allow from 192.168.1.0/24 Allow from localhost Allow from 127.0.0.1 deny from all Require valid-user Satisfy any Order deny,allow </Location>