`
lasol
  • 浏览: 26388 次
  • 性别: Icon_minigender_1
  • 来自: 上海
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

CUPS的配置文件

 
阅读更多
编辑cupsd.conf vi /etc/cups/cupsd.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.
#
MaxLogSize 2000000000

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

# Administrator user group...
SystemGroup sys root


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

# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
# (Change '@LOCAL' to 'ALL' if using directed broadcasts from another subnet.)
#BrowseAllow @LOCAL
rowseAllow @ALL

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Restrict access to the server...
<Location />
  Order allow,deny
  Allow from 172.*
  Allow from 192.*
  Allow from 173.*
  Allow from 127.*
</Location>

# Restrict access to the admin pages...
<Location /admin>
#Encryption Required
Order allow,deny
  Allow from 172.*
  Allow from 192.*
  Allow from 173.*
  Allow from 127.*
</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>
# 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 $".
#
  # 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>
分享到:
评论

相关推荐

    cups打印常用的PPD文件

    PPD文件是Adobe Systems为PostScript打印机创建的,它包含了打印机的配置信息,如可用的打印选项、纸张尺寸、字体支持等。在CUPS中,PPD文件用于解释用户的打印指令,将其转换为打印机能够理解的语言。每个PPD文件...

    cups打印可用的PPD文件

    PPD(PostScript Printer Description,PostScript打印机描述)文件是CUPS系统中至关重要的组成部分,它包含了特定打印机的详细配置信息,如打印选项、纸张大小、分辨率等。 PPD文件是Adobe Systems为PostScript...

    学习情境项目打印机管理讲义课件.ppt

    3. **CUPS配置文件**: - **cupsd.conf**: 位于`/etc/cups/`目录下,是CUPS服务器的主要配置文件,守护进程cupsd根据此文件处理请求。 - **classes.conf**: 同样位于`/etc/cups/`,定义本地打印机类。 - **...

    cups-windows-6.0-source.tar.gz_cups_cups-windows

    4. **配置文件**:预设的配置文件示例,供你在部署时参考和修改。 5. **测试套件**:用于验证CUPS功能和性能的测试用例。 为了在Windows上编译和运行CUPS,你需要安装开发工具链,如GCC编译器,以及可能需要的库...

    CUPS Adminstraors Manual

    **管理CUPS服务器**涉及调整配置文件、监控日志、维护安全性等方面的工作。 ##### 5.1 重启CUPS服务器 - **重启命令**:`/etc/init.d/cups restart`。 ##### 5.2 更改服务器配置 - **配置文件**:位于`/etc/cups...

    openwrt 1020配置文件

    openwrt 1020配置文件

    CUPS 1.3.9版本源码

    5. **配置与管理**:CUPS的配置文件通常位于`/etc/cups`目录下,包括`cupsd.conf`(服务器配置)、` printers.conf`(打印机配置)和` cupsd.conf`。管理员可以通过Web界面(http://localhost:631)或命令行工具(如...

    常见的打印机问题

    - 编辑CUPS配置文件(通常是/etc/cups/printers.conf),确保其中包含了正确的打印机和打印处理器设置。 3. **安装合适的打印处理器:** - 对于特定类型的文档格式(如PostScript),可能需要安装额外的软件包,...

    cups-1.0.5-source

    4. **配置文件**:CUPS的配置文件位于/etc/cups下,包括`cupsd.conf`(服务器配置)、`printers.conf`(打印机配置)等,它们定义了服务器的行为和打印机的设置。 5. **过滤器系统**:CUPS的过滤器系统是一个强大的...

    为 CUPS 打印机自动生成 AirPrint Avahi 服务文件_python_代码_下载

    此脚本将连接到 CUPS 服务器,并且对于配置并标记为共享的每台打印机,将为 avahi 生成一个与 Apple 的 AirPrint 公告兼容的 .service 文件。可以使用任何可以配置为与 CUPS 一起使用的打印机。打印机不应在 CUPS 中...

    AndroidCupsPrint,CUPS4J到Android的端口.zip

    4. **配置文件**:如AndroidManifest.xml,用于定义应用权限,如访问网络或蓝牙(如果支持无线打印机)等。 5. **文档**:可能包含README文件或其他形式的说明,解释如何集成此库到自己的Android项目中,以及如何...

    嵌入式Linux下利用cups驱动HP1010打印机

    2. 配置CUPS服务器:修改`/etc/cups/cupsd.conf`文件,设置监听端口、权限和认证方法。对于嵌入式设备,可能需要关闭匿名访问,只允许本地连接。 3. 添加打印机:使用`lpadmin`命令添加新打印机,例如: ``` ...

    cups-2.3.3-source.tar.gz

    6. **配置和启动**:根据需要修改`/etc/cups`下的配置文件,然后启动或重启CUPS服务。 通过这个源代码,你可以深入了解CUPS的工作原理,定制自己的打印解决方案,或者为社区贡献代码,提高其功能性和兼容性。对于IT...

    cups-2.1.4源码

    要进行交叉编译,你需要设置正确的工具链(如arm-linux-gnueabi-gcc),并传递适当的配置选项给CUPS的`./configure`脚本。例如,`--host=arm-linux`指定目标架构。 5. 网络打印: CUPS支持网络打印,这意味着它...

    cups:abcdesktop cupsd配置文件

    在本文中,我们将深入探讨“abcdesktop cupsd配置文件”以及与“cups-server”相关的知识点。 标题中的“abcdesktop cupsd配置文件”指的是在名为“abcdesktop”的桌面环境中,CUPS服务器使用的配置文件。`cupsd....

    linux系统中cups通用打印机系统虚拟打印机源代码

    当一个打印任务到达时,CUPS服务器会根据任务类型和设备配置,调用相应的后台进程进行处理。这个过程中,过滤器用于将打印数据转换成打印机能够理解的格式,而驱动程序则负责与物理打印机进行通信。 在压缩包中的...

    cups网络打印机驱动源码

    `cupsd.conf`是配置文件,用于设定服务器的行为,例如监听端口、认证机制和默认打印机设置。 2. **打印作业处理**:CUPS使用过滤器系统将各种格式的文档转换为打印机能理解的语言,如PCL或PostScript。源码中的`...

    CUPS移植文档

    然后,文章讨论了移植CUPS系统到Android平台的注意事项,包括交叉编译过程中的语法错误、环境变量的配置、库文件的安装等。这些注意事项都是避免移植过程中出现问题的关键。 在移植CUPS系统到Android平台的过程中,...

    理解Linux配置文件

    此外,还有其他配置文件,如控制打印的`/etc/cups`目录,网络配置的`/etc/sysconfig/network-scripts`,以及其他特定服务的配置文件。对这些配置文件的理解和有效管理是Linux系统管理员日常工作中不可或缺的部分,...

    CUPS programmer manual

    **概述**:介绍了编写CUPS过滤器的基础知识,包括安全考虑、临时文件管理、向用户发送消息以及页面计费等内容。 - **安全性考虑**:强调了编写过滤器时应遵循的安全实践,如正确设置用户和组权限。 - **环境变量**...

Global site tag (gtag.js) - Google Analytics