PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Druckserver cups Webinterface passwort?



chains23
04.01.10, 18:55
Hallo habe da ein kleines problem:(
Ich habe cups auf einem debian lenny installiert.
Auf die weboberfläche komme ich mit localhost:631 drauf,
Aber wenn ich auf drucker hinzufügen gehe dann öffnet sich eine box und fragt nach username und passwort.
Root und root password funktionieren nicht.

Auf meinem ubuntu client:


ifconfig
eth0 Link encap:Ethernet Hardware Adresse 08:00:27:c8:34:7d
inet Adresse:192.168.3.152 Bcast:192.168.3.255 Maske:255.255.255.0
inet6-Adresse: fe80::a00:27ff:fec8:347d/64 Gültigkeitsbereich:Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
RX packets:15535 errors:0 dropped:0 overruns:0 frame:0
TX packets:15368 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:13516296 (13.5 MB) TX bytes:2565307 (2.5 MB)
Interrupt:11 Basisadresse:0xd020

lo Link encap:Lokale Schleife
inet Adresse:127.0.0.1 Maske:255.0.0.0
inet6-Adresse: ::1/128 Gültigkeitsbereich:Maschine
UP LOOPBACK RUNNING MTU:16436 Metrik:1
RX packets:1226 errors:0 dropped:0 overruns:0 frame:0
TX packets:1226 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:0
RX bytes:295444 (295.4 KB) TX bytes:295444 (295.4 KB)

tun0 Link encap:UNSPEC Hardware Adresse 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet Adresse:10.10.10.6 P-z-P:10.10.10.5 Maske:255.255.255.255
UP PUNKTZUPUNKT RUNNING NOARP MULTICAST MTU:1500 Metrik:1
RX packets:13451 errors:0 dropped:0 overruns:0 frame:0
TX packets:13263 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:100
RX bytes:12416732 (12.4 MB) TX bytes:1356709 (1.3 MB)


Cups.conf


# "$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 warning

# Administrator user group...
SystemGroup lpadmin
User cupsys
Group lpadmin

# Only listen for connections from the local machine.
Listen :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
</Location>

# Restrict access to the admin pages...
<Location /admin>
ALLOW 192.168.1.*
ALLOW 10.10.10.6
Order allow,deny
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
AuthType Basic
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$
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$
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-Prin$
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>

#


Wo ist der fehler? Welches passwort und welchen username muss ich eingeben?

jac
04.01.10, 21:35
Hallo chains23,

Du musst das Passwort noch setzen:

lppasswd -g sys -a root
dann das PW 2x eingeben.

so hatte ich es zumindest mir damals für die Suse92 aufgeschrieben ...

Gruß JAC

chains23
06.01.10, 12:43
Ich habe den druckserver unter xen ans laufen gebracht.
Jetzt versuche ich von windowsxp mit diesem drucker zu drucken.
Den drucker in windows hinzufügen hat soweit funktioniert.
Nur drucken geht nicht.


cups acces.log
192.168.1.151 - - [18/Sep/2007:01:14:21 +0200] "POST /printers/Canon_iP4000_LPT_1 HTTP/1.1" 200 185 Get-Jobs successful-ok
192.168.1.151 - - [18/Sep/2007:01:14:49 +0200] "POST /printers/Canon_iP4000_LPT_1 HTTP/1.1" 200 158 Cancel-Job client-error-not-possible
192.168.1.151 - - [18/Sep/2007:01:14:50 +0200] "POST /printers/Canon_iP4000_LPT_1 HTTP/1.1" 200 1115112 Print-Job client-error-not-authorized
192.168.1.151 - - [18/Sep/2007:01:15:48 +0200] "POST /printers/Canon_iP4000_LPT_1 HTTP/1.1" 200 165033 Print-Job client-error-not-authorized
192.168.1.151 - - [18/Sep/2007:01:15:48 +0200] "POST /printers/Canon_iP4000_LPT_1 HTTP/1.1" 200 185 Get-Jobs successful-ok
192.168.1.151 - - [18/Sep/2007:01:15:51 +0200] "POST /printers/Canon_iP4000_LPT_1 HTTP/1.1" 200 185 Get-Jobs successful-ok
192.168.1.151 - - [18/Sep/2007:01:21:27 +0200] "POST /printers/Canon_iP4000_LPT_1 HTTP/1.1" 200 165250 Print-Job client-error-not-authorized
192.168.1.151 - - [18/Sep/2007:01:25:03 +0200] "POST /printers/Canon_iP4000_LPT_1 HTTP/1.1" 426 179 Purge-Jobs successful-ok
192.168.1.151 - - [18/Sep/2007:01:25:37 +0200] "POST /printers/Canon_iP4000_LPT_1 HTTP/1.1" 200 165033 Print-Job client-error-not-authorized
192.168.1.151 - - [18/Sep/2007:01:27:05 +0200] "POST /printers/Canon_iP4000_LPT_1 HTTP/1.1" 200 185 Get-Jobs successful-ok
192.168.1.151 - - [18/Sep/2007:01:27:05 +0200] "POST /printers/Canon_iP4000_LPT_1 HTTP/1.1" 200 185 Get-Jobs successful-ok
192.168.1.151 - - [18/Sep/2007:01:27:20 +0200] "POST /printers/Canon_iP4000_LPT_1 HTTP/1.1" 200 10932 Print-Job client-error-not-authorized





cups.conf.
#
#
# 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 warning

# Administrator user group...
SystemGroup lpadmin


# Only listen for connections from the local machine.
Listen 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
Allow From 10.10.10.6
Allow From 192.168.1.*
</Location>

# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
Allow From 10.10.10.6
Allow From 192.168.1.*
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
Allow From 192.168.1.*
</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
Allow From 192.168.1.*
</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
Allow From 192.168.1.*
</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
Allow From 192.168.1.*
</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
Allow From 192.168.1.*
</Limit>
</Policy>

#
#


Ich habe auch im debianforum gepostet:http://debianforum.de/forum/viewtopic.php?f=31&t=117116

chains23
06.01.10, 18:07
Hat sich erledigt, war ein treiber problem:eek:
Jetzt läuft alles:D