TringaliLuca

CUPS remote access /etc/cups/cupsd.conf

Feb 15th, 2017
704
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # usermod -G sys,lp,lpadmin,scanner,sambashare,saned pi
  2. MaxJobs 100
  3. # Show troubleshooting information in error_log.
  4. LogLevel debug
  5. MaxLogSize 1m
  6. SystemGroup lpadmin
  7. ServerAlias *
  8. # Allow remote access
  9. Port 631
  10. Listen /var/run/cups/cups.sock
  11. Browsing On
  12. BrowseOrder allow,deny
  13. BrowseAllow all
  14. BrowseRemoteProtocols CUPS dnssd
  15. BrowseAddress @LOCAL
  16. BrowseLocalProtocols CUPS dnssd
  17. DefaultAuthType Basic
  18. <Location />
  19. # Allow remote access...
  20. Order allow,deny
  21. Allow all
  22. </Location>
  23. <Location /admin>
  24. AuthType Default
  25. Require user @SYSTEM
  26. </Location>
  27. <Location /admin/conf>
  28. AuthType Default
  29. Require user @SYSTEM
  30. </Location>
  31. <Policy default>
  32. <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 CUPS-Get-Document>
  33. Order deny,allow
  34. Allow all
  35. </Limit>
  36. <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
  37. AuthType Default
  38. Require user @SYSTEM
  39. Order deny,allow
  40. </Limit>
  41. <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>
  42. AuthType Default
  43. Require user @SYSTEM
  44. Order deny,allow
  45. Allow all
  46. </Limit>
  47. <Limit Cancel-Job CUPS-Authenticate-Job>
  48. Require user @OWNER @SYSTEM
  49. Order deny,allow
  50. </Limit>
  51. <Limit All>
  52. Order deny,allow
  53. </Limit>
  54. JobPrivateValues phone
  55. </Policy>
  56. <Policy authenticated>
  57. <Limit Create-Job Print-Job Print-URI>
  58. AuthType Default
  59. Order deny,allow
  60. </Limit>
  61. <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 CUPS-Get-Document>
  62. AuthType Default
  63. Require user @OWNER @SYSTEM
  64. Order deny,allow
  65. </Limit>
  66. <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
  67. AuthType Default
  68. Require user @SYSTEM
  69. Order deny,allow
  70. </Limit>
  71. <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>
  72. AuthType Default
  73. Require user @SYSTEM
  74. Order deny,allow
  75. </Limit>
  76. <Limit Cancel-Job CUPS-Authenticate-Job>
  77. AuthType Default
  78. Require user @OWNER @SYSTEM
  79. Order deny,allow
  80. </Limit>
  81. <Limit All>
  82. Order deny,allow
  83. </Limit>
  84. </Policy>
  85. BrowseWebIF Yes
RAW Paste Data