LINUX.ORG.RU

Долго бьюсь с cups


0

1

Помогите настроить cups. Через веб-морду http://localhost:631 добавид принтер HP LaserJet 1020. Пытаюсь напечатать пробную страницу - не печатает. В error_log выводится следующее:

E [07/Oct/2013:15:08:27 +0400] Returning IPP client-error-not-authorized for Print-Job (ipp://localhost:631/printers/HP_LaserJet_1020) from localhost
E [07/Oct/2013:15:08:41 +0400] cupsdAuthorize: pam_authenticate() returned 7 (Authentication failure)!
E [07/Oct/2013:15:08:41 +0400] Returning IPP client-error-not-authorized for Print-Job (ipp://localhost:631/printers/HP_LaserJet_1020) from localhost
E [07/Oct/2013:15:08:51 +0400] Returning IPP client-error-not-authorized for Print-Job (ipp://localhost:631/printers/HP_LaserJet_1020) from localhost

★★★★★

логи это хорошо, но неплохо было бы и конфиги. Пока естественно подозрение на отсутствие разрешения к cups

Atlant ★★★★★
()
Ответ на: комментарий от Atlant
LogLevel warn
MaxLogSize 1m
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseRemoteProtocols CUPS dnssd
BrowseAddress @LOCAL
BrowseLocalProtocols CUPS dnssd
DefaultAuthType Basic
WebInterface Yes
<Location />
  # Allow shared printing...
  Order allow,deny
  Allow all
  Allow @LOCAL
</Location>
<Location /admin>
  Allow all
  Order allow,deny
</Location>
<Location /admin/conf>
  Allow all
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
</Location>
<Policy default>
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    Order deny,allow
  </Limit>
  <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 Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    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 CUPS-Get-Devices>
    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 Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>
<Policy authenticated>
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    AuthType Default
    Order deny,allow
  </Limit>
  <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 Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    AuthType Default
    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 Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>
sunny1983 ★★★★★
() автор топика
Ответ на: комментарий от SandySandy

Кстати кажется загружается:

iskatel@iskatel-nb:~$ cat /etc/udev/rules.d/86-hpmud-hp_laserjet_1020.rules
# Load hp firmware for this printer.

ACTION!=«add», GOTO=«hpmud_rules_end»

# hp_laserjet_1020 for Suse 10.3
SUBSYSTEM==«usb», ENV{DEVTYPE}==«usb_device», ATTRS{idVendor}==«03f0», ATTRS{idProduct}==«2b17», PROGRAM=«/bin/sh -c 'logger -p user.info loading hp_laserjet_1020 firmware $env{BUSNUM} $env{DEVNUM}'», RUN+=«/bin/sh -c '/usr/bin/hp-firmware -y3 -s$env{BUSNUM}:$env{DEVNUM} &'»

# hp_laserjet_1020
SUBSYSTEM==«usb_device», ATTRS{idVendor}==«03f0», ATTRS{idProduct}==«2b17», PROGRAM=«/bin/sh -c 'X=%k; X=$${X#usbdev}; B=$${X%%%%.*}; D=$${X#*.}; logger -p user.info loading hp_laserjet_1020 firmware $$B $$D; printf %%03i:%%03i $$B $$D'», RUN+=«/bin/sh -c '/usr/bin/hp-firmware -y3 -s%c &'»

LABEL=«hpmud_rules_end»

sunny1983 ★★★★★
() автор топика
Последнее исправление: sunny1983 (всего исправлений: 1)
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.