
Code: Select all
Authentication Required
A username and password are being requested by http://localhost:631. The site says: "CUPS"
I'm using Firefox (3.0.11), and no that authorization window does not appear.rsa4046 wrote:Not sure which browser you are using, but at some point you should get a pop-up windowDoes this not happen?Code: Select all
Authentication Required A username and password are being requested by http://localhost:631. The site says: "CUPS"
Code: Select all
#
# "$Id: cupsd.conf.in 7199 2008-01-08 00:16:30Z mike $"
#
# Sample configuration file for the Common UNIX Printing System (CUPS)
# scheduler. See "man cupsd.conf" for a complete description of this
# file.
#
# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel info
# Administrator user group...
SystemGroup lpadmin
# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock
# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
# Default authentication type, when authentication is required...
DefaultAuthType Basic
# Restrict access to the server...
<Location />
Order allow,deny
deny From All
#Allow From 192.168.0.*
Allow From 127.0.0.1
</Location>
# Restrict access to the admin pages...
<Location /admin>
Encryption Required
AuthType Basic
AuthClass System
Allow From 127.0.0.1
Order allow,deny
Deny From All
</Location>
# Restrict access to configuration files...
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
</Location>
# Set the default printer/job policies...
<Policy default>
# Job-related operations must be done by the owner or an administrator...
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
# All administration operations require an administrator to authenticate...
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
# All printer operations require a printer operator to authenticate...
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
#
# End of "$Id: cupsd.conf.in 7199 2008-01-08 00:16:30Z mike $".
# Code: Select all
# /etc/init.d/cupsd restart
Code: Select all
LogLevel info
HostNameLookups Double
SystemGroup lpadmin
# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock
# Disable printer sharing and shared printers.
Browsing Off
DefaultAuthType Basic
# Restrict access to the server...
<Location />
Order allow,deny
deny From All
Allow From 127.0.0.1
</Location>
# Restrict access to the admin pages...
<Location /admin>
Encryption Required
AuthType Basic
AuthClass System
Allow From 127.0.0.1
Order allow,deny
Deny From All
</Location>
# Restrict access to configuration files...
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
</Location>
<Policy default>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
Hmmm, not sure. Are you a member of the lp group? As user, just type groups on a command line to see your group membership (if you need to add your user to a group, do, as root: gpasswd -a USER GROUP). I'm not sure why this should matter however, once authenticated as root at the web login. What version of cups are you running? What does 'emerge -vp cups' report?NTICompass wrote:I edited my cupsd.conf. Now it asks me for a password when I click on 'Administration'. Still doesn't load.
/printers /classes /admin nothing
Though I can get to the 'Add Printer' screen...
What else could be wrong?
Code: Select all
# tail /var/log/cups/page_logCode: Select all
# tail /var/log/cups/access_log
Code: Select all
localhost - - [27/Jul/2009:14:51:13 -0400] "GET /images/bottom-right.gif HTTP/1.1" 200 123 - -
localhost - - [27/Jul/2009:14:51:13 -0400] "GET /images/tab-left.gif HTTP/1.1" 200 46 - -
localhost - - [27/Jul/2009:14:51:13 -0400] "GET /images/button-manage-printers.gif HTTP/1.1" 200 508 - -
localhost - - [27/Jul/2009:14:51:13 -0400] "GET /images/happy.gif HTTP/1.1" 200 3522 - -
localhost - - [27/Jul/2009:14:51:13 -0400] "GET /images/button-manage-server.gif HTTP/1.1" 200 493 - -
localhost - - [27/Jul/2009:14:51:14 -0400] "GET /printers/ HTTP/1.1" 200 0 - -
localhost - - [27/Jul/2009:14:51:17 -0400] "GET /admin/ HTTP/1.1" 401 0 - -
localhost - root [27/Jul/2009:14:51:22 -0400] "GET /admin/ HTTP/1.1" 200 0 - -
localhost - root [27/Jul/2009:14:57:59 -0400] "GET /admin/ HTTP/1.1" 200 0 - -
localhost - - [27/Jul/2009:14:58:01 -0400] "GET /printers/ HTTP/1.1" 200 0 - -

Code: Select all
W [28/Jul/2009:20:55:37 -0400] IP lookup failed - connection from localhost closed!
W [28/Jul/2009:20:55:37 -0400] IP lookup failed - connection from localhost closed!
W [28/Jul/2009:20:55:37 -0400] IP lookup failed - connection from localhost closed!
W [28/Jul/2009:20:55:37 -0400] IP lookup failed - connection from localhost closed!
W [28/Jul/2009:20:55:37 -0400] IP lookup failed - connection from localhost closed!
W [28/Jul/2009:20:55:37 -0400] IP lookup failed - connection from localhost closed!
W [28/Jul/2009:20:55:37 -0400] IP lookup failed - connection from localhost closed!
W [28/Jul/2009:20:55:37 -0400] IP lookup failed - connection from localhost closed!
E [28/Jul/2009:20:55:37 -0400] PID 26518 (/usr/libexec/cups/cgi-bin/admin.cgi) crashed on signal 9!
I [28/Jul/2009:20:55:37 -0400] Hint: Try setting the LogLevel to "debug" to find out more.
