Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CUPS cannot add printer
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
pdr
l33t
l33t


Joined: 20 Mar 2004
Posts: 613

PostPosted: Mon Aug 01, 2011 6:46 pm    Post subject: CUPS cannot add printer Reply with quote

I go to the Admin page, log in either as root or as a user that is in both the lp and lpadmin groups, and when I click on either Add Printer or Find New Printers, the page loads but looks identical to when you first go to Admin.

If I go to Manage Printers, some printers (I think they are from my 10.10.19.* subnet) are listed, but I need to add a printer from 10.10.16.* subnet.

Relevant parts from /etc/cups/cupsd.conf:

Code:

SystemGroup lpadmin
<Location /admin> (same for /admin/conf)
  Order allow,deny
  AuthType Default (default is defined as Basic)
  Require user @SYSTEM
</Location>

<Policy default>
  <Limit CUPS-Add-Modify-Printer ...>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow (also tried allow,deny)
  </Limit>
</Policy>

<Policy authenticated>
  <Limit CUPS-Add-Modify-Printer ...>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow (also tried allow,deny)
  </Limit>
</Policy>


The system was up and working a while ago - but I might have replaced some /etc file(s) during an upgrade.
Back to top
View user's profile Send private message
rainer
Apprentice
Apprentice


Joined: 17 Feb 2005
Posts: 251
Location: Bonn, Germany

PostPosted: Wed Aug 10, 2011 10:14 am    Post subject: Reply with quote

I have had many problems with CUPS over the years and found that BrowsePoll helped me in a situation that was somewhat similar to yours. Maybe worthwhile to check it out. From the CUPS manual:

Quote:
Seeing Printers on Other Subnets
You can automatically access printers on other subnets by adding BrowsePoll lines to the cupsd.conf file on your local system. For a single server you can use the cupsctl command:

cupsctl BrowsePoll=server:port
For multiple servers, use the CUPS web interface (http://localhost:631/admin) to edit the configuration file instead. Enter one BrowsePoll line per server at the bottom of the file, as follows:

BrowsePoll server1:port
BrowsePoll server2:port
BrowsePoll server3:port
If you have more than one client on your subnet that wants to see the printers on those servers, add a BrowseRely line to the cupsd.conf file on your local system using the cupsctl command:

cupsctl 'BrowseRelay="127.0.0.1 @LOCAL"'
or CUPS web interface (again, at the bottom of the file):

BrowseRelay 127.0.0.1 @LOCAL


Hope I'm not wasting your time,
Rainer
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum