CUPS和OS X-未经授权的Create-Job客户端错误

路易斯·祖尼加(Luis Zuniga)

到目前为止,运行在Ubuntu 15.10服务器上的Cup效果还不错。

当OS X设备尝试通过ubuntu cups服务器进行打印时,出现以下错误:

IPP client-error-not-authorized for Create-Job

在OS X设备上的打印作业中,我收到以下消息:

Hold for Authorization

对cupsd.conf和printers.conf进行了标准调整(请参见下文),但并不高兴。

有杯具专家有什么建议吗?

谢谢

路易斯

cupsd.conf:

#
# Configuration file for the CUPS scheduler.  See "man cupsd.conf" for a
# complete description of this file.
#

# Log general information in error_log - change "warn" to "debug"
# for troubleshooting...
LogLevel debug
PageLogFormat

# Deactivate CUPS' internal logrotating, as we provide a better one, especially
# LogLevel debug2 gets usable now
MaxLogSize 0

# Only listen for connections from the local machine.
#Listen localhost:631
Port 631
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing On
BrowseLocalProtocols dnssd
#BrowseAllow all
# Default authentication type, when authentication is required...
DefaultAuthType None

# Web interface setting...
WebInterface Yes

# Restrict access to the server...
<Location />
  Order allow,deny
  Allow all
</Location>

# Restrict access to the admin pages...
<Location /admin>
  Order allow,deny
  Allow all
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
  Allow all
</Location>

# Set the default printer/job policies...
<Policy default>
  # Job/subscription privacy...
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default

  # Job-related operations must be done by the owner or an administrator...
  <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 Ren
ew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Canc
el-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    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 CUPS-Get-Dev
ices>
    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-J
ob-After Cancel-Jobs 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>

# Set the authenticated printer/job policies...
<Policy authenticated>
  # Job/subscription privacy...
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default

  # Job-related operations must be done by the owner or an administrator...
  <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 Ren
ew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Canc
el-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    AuthType Default
    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-J
ob-After Cancel-Jobs 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>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

printers.conf:

# Printer configuration file for CUPS v2.1.0
# Written by cupsd
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<Printer SHARP_MX-2640N>
UUID urn:uuid:ce9f69de-ba08-3630-7365-088439080a0f
AuthInfoRequired none
Info SHARP MX-2640NPCL_PS
Location Local Printer
MakeModel Sharp MX-2640N PS, 1.1
DeviceURI lpd://192.168.25.52/lp
State Idle
StateTime 1449759918
ConfigTime 1449702658
Type 8401116
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
AllowUser all
OpPolicy default
ErrorPolicy retry-job
Attribute marker-colors \#00FFFF,#FF00FF,#FFFF00,#000000,none,#00FFFF,#FF00FF,#FFFF00,#000000,#00FFFF,#FF00FF,#FFFF00,#000
000,none
Attribute marker-levels 35,50,-1,75,0,73,73,73,63,73,73,73,63,-1
Attribute marker-names Cyan Toner,Magenta Toner,Yellow Toner,Black Toner,Waste Toner,Cyan Photoconductive Drum,Magenta Pho
toconductive Drum,Yellow Photoconductive Drum,Black Photoconductive Drum,Cyan Developer,Magenta Developer,Yellow Developer
,Black Developer,Fusing Unit
Attribute marker-types toner,toner,toner,toner,waste-toner,opc,opc,opc,opc,developer,developer,developer,developer,fuser
Attribute marker-change-time 1449759918
</Printer>
路易斯·祖尼加(Luis Zuniga)

经过MUCH搜索后发现了问题。

在printers.conf中已更改

AllowUser all

AllowUser

是的,那就是我需要改变的一切...怪异的!

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

gsutil返回“未经授权的客户端”

来自分类Dev

Docker 和 WSL 错误:未经授权

来自分类Dev

客户端套接字响应处理,例如授权和错误情况

来自分类Dev

Azure Notification Hub中带有NotificationHubUnauthorizedException的错误:Android客户端中未经授权

来自分类Dev

Kubernetes客户端python API错误401-未经授权

来自分类Dev

从 AngularJS/ADAL.js 客户端访问 WebApI 时出现 401 未经授权的错误

来自分类Dev

未经授权_客户端,同时刷新Google访问令牌

来自分类Dev

OS X:客户端证书被拒绝的Git

来自分类Dev

OS X上的标准邮件客户端不断变化

来自分类Dev

来自OS X客户端的ssh连接问题

来自分类Dev

Guzzle Http客户端和LinkedIn中的授权

来自分类Dev

Dart和客户端文件处理(具有授权)

来自分类Dev

React和Redux:401未经授权的错误POST API请求

来自分类Dev

获得未经授权的错误

来自分类Dev

在结构2上执行st2命令时,出现“ 401客户端错误:未经授权”

来自分类Dev

适用于PATCH方法的OAuth 1.0单腿客户端“ HTTP 401未经授权的错误”

来自分类Dev

异步mongodb客户端vert.x上的错误

来自分类Dev

twitter登录:401客户端错误:需要授权

来自分类Dev

记录客户端错误和“脚本错误”

来自分类Dev

DTS_E_OLEDBERROR。错误代码:0x80004005.SQl本机客户端和sql Server的oledb提供程序之间的差异

来自分类Dev

当尝试将远程客户端连接到Cygwin / X时,我得到“需要授权,但未指定授权协议”

来自分类Dev

Google API Python authenticated_client:未经授权的客户端或请求范围

来自分类Dev

Identity Server 3-客户端应用程序未知或未经授权

来自分类Dev

Google oAuth2未经授权的客户端(通过refresh_token)

来自分类Dev

JAX-WS Web服务客户端-“响应:URL的'401:未经授权'”

来自分类Dev

Google Admin SDK-异常access_denied请求的客户端未经授权

来自分类Dev

GSuite:客户端未经授权使用此方法检索访问令牌

来自分类Dev

ADFS - HTTP 请求未经客户端身份验证方案“协商”授权

来自分类Dev

curl 401未经授权的错误

Related 相关文章

  1. 1

    gsutil返回“未经授权的客户端”

  2. 2

    Docker 和 WSL 错误:未经授权

  3. 3

    客户端套接字响应处理,例如授权和错误情况

  4. 4

    Azure Notification Hub中带有NotificationHubUnauthorizedException的错误:Android客户端中未经授权

  5. 5

    Kubernetes客户端python API错误401-未经授权

  6. 6

    从 AngularJS/ADAL.js 客户端访问 WebApI 时出现 401 未经授权的错误

  7. 7

    未经授权_客户端,同时刷新Google访问令牌

  8. 8

    OS X:客户端证书被拒绝的Git

  9. 9

    OS X上的标准邮件客户端不断变化

  10. 10

    来自OS X客户端的ssh连接问题

  11. 11

    Guzzle Http客户端和LinkedIn中的授权

  12. 12

    Dart和客户端文件处理(具有授权)

  13. 13

    React和Redux:401未经授权的错误POST API请求

  14. 14

    获得未经授权的错误

  15. 15

    在结构2上执行st2命令时,出现“ 401客户端错误:未经授权”

  16. 16

    适用于PATCH方法的OAuth 1.0单腿客户端“ HTTP 401未经授权的错误”

  17. 17

    异步mongodb客户端vert.x上的错误

  18. 18

    twitter登录:401客户端错误:需要授权

  19. 19

    记录客户端错误和“脚本错误”

  20. 20

    DTS_E_OLEDBERROR。错误代码:0x80004005.SQl本机客户端和sql Server的oledb提供程序之间的差异

  21. 21

    当尝试将远程客户端连接到Cygwin / X时,我得到“需要授权,但未指定授权协议”

  22. 22

    Google API Python authenticated_client:未经授权的客户端或请求范围

  23. 23

    Identity Server 3-客户端应用程序未知或未经授权

  24. 24

    Google oAuth2未经授权的客户端(通过refresh_token)

  25. 25

    JAX-WS Web服务客户端-“响应:URL的'401:未经授权'”

  26. 26

    Google Admin SDK-异常access_denied请求的客户端未经授权

  27. 27

    GSuite:客户端未经授权使用此方法检索访问令牌

  28. 28

    ADFS - HTTP 请求未经客户端身份验证方案“协商”授权

  29. 29

    curl 401未经授权的错误

热门标签

归档