`
lasol
  • 浏览: 25765 次
  • 性别: 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:abcdesktop cupsd配置文件

    杯子 获取更多信息 请阅读公共文档网站:

    openwrt 1020配置文件

    openwrt 1020配置文件

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

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

    cups:OpenPrinting CUPS源

    CUPS提供System V(“ lp”)和Berkeley(“ lpr”)命令行界面,可配置的Web界面,C API以及常见的打印过滤器,驱动程序和打印后端。 项目提供了其他过滤器和驱动程序。 CUPS在Apache许可证版本2.0下获得许可,但...

    airprint-generate:自动为CUPS打印机生成AirPrint Avahi服务文件

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

    cups:杯用于android(UNIX通用打印系统)

    这是为android平台构建cups的指南,我修改了cups项目的一些文件,要成功构建cups,您应该这样做: 1.获取源代码 源代码应使用我在此存储库中提供的内容,cups版本为2.1.3。 只需使用git clone: git clone ...

    操作系统安全:samba匿名访问配置(实验二).docx

    # vim /etc/samba/smb.conf #设置smb.conf配置文件 图5:设置smb.conf配置文件 [global] workgroup = WORKGROUP #设置主机工作组 server string = Samba Server Version %v #samba服务注释 log level = 1 #设置日志...

    system-config-printer:用于CUPS管理的图形用户界面

    用于以下方面的开发包: 杯子文字glib2 libusb python3 系统的工具: 自动配置自动制作桌面文件安装国际工具xmlto运行时要求: 任何桌面通知守护程序dbus-x11 内省自省gtk3 公开通知python3-cairo python3-cups ...

    balenaPrint:BalenaOS上的CUPS

    此存储库中的自定义cupsd.conf文件允许公共访问管理员配置设置。 入门 balena的人们创建了以帮助人们开始使用balena杯。 如果您熟悉balenaCloud,并希望以更快的方式上手,请单击此处: 我们很乐意在上帮助人们...

    dptrp1-cups:DPT-RP1的CUPS驱动程序

    DPT-RP1 CUPS后端此CUPS后端允许直接打印到DPT-RP1或DPT-CP1设备。 我从同等的后端采纳了这个想法,以实现。 要使用此功能,您需要首先安装和配置 。安装sudo make install 后端假定dpt-rp1-py所需的客户机ID和密钥...

    Redhat LINUX 9从入门到精通 中文版

    命令行界面,Linux系统管理与配置,诊断引导过程,内核重新编译,使用GNOME与KDE,了解基本TCP/IP网络,保护Linux防火墙,设置安全远程访问,安装和测试DNS、DHCP、CUPS与sendmail,配置和查错FTP、NFS、Samba与...

    open5gs_epc_oai_sample_config:Open5GS EPC和OpenAirInterface UE RAN样本配置

    这简要描述了总体文件和配置文件。 目录 支持Open5GS CUPS的EPC仿真移动网络概述 我创建了一个支持CUPS的EPC移动网络(可访问Internet)进行仿真,目的是创建一个环境,在该环境中,可以为每个APN以不同的PDN端对...

    nextcloud-printer:应用程序允许通过连接LPRCUPS的打印机从Nextcloud直接打印

    打印机适用于应用程序可使用CUPS / LPR打印生态系统来打印文件。安装未来云您需要有效的CUPS设置,并将兼容的打印机设置为默认打印机,并将LPR守护程序安装在服务器上。 在Debian上,您可以安装cups and cups-bsd...

    LINUX高级企业服务器管理

     配置和管理文件(NFS,SMB)、打印服务器(cups)  配置和管理引导服务dhcp和nis  配置和管理dns服务器  配置和管理apache服务器  配置和管理mail服务器  配置和管理ftp服务器  配置和管理ldap服务器...

    png2ptouch:读取 PNG 文件并在 Brother P2430PC 上打印的 Python 脚本

    您可以使用 foomatic ptouch 驱动程序,或者,如果它不可用,Generic Line 打印机配置文件也可以。 创建一个 64 像素(9 毫米/0.35 英寸和 12 毫米/0.47 英寸磁带)或 128 像素(24 毫米/0.94 英寸磁带)高的 PNG ...

    receipt-printer:Laravel软件包集成了ECSPOS Print Driver for PHP

    编辑位于config/receiptprinter.php的配置文件,如下所示: 将connector_type设置为: windows如果您使用Windows作为Web服务器)。 cups如果您使用Linux或Mac作为Web服务器)。 network如果使用的是网络打印机)...

    kivybooth:基于Kivy的fotobooth应用程序

    要将应用程序作为服务启动,可以在res/kivybooth.service找到systemd配置文件。 您还应该能够使用Visual Studio Code运行配置来调试应用程序。在Windows上运行对于开发目的,该应用程序也打算在Windows计算机上运行...

    redhat linux教材20课程学习文档

    13.3 启动配置文件和命令 13.4 rc目录和相关脚本 13.4.1 理解 rc.d 目录 13.4.2 /etc/rc.d/rc.svsinit 脚本 13.4.3 理解 rc 脚本 13.4.4 理解 rc.6 目录下的其他脚本 13.4.5 checkconfig 脚本 第十四章 linux内核...

    redhat9从入门到精通(第一部分)

    第11章 配置与查错引导过程 第12章 升级与重新编译内核 第13章 管理细节 第14章 备份系统 第四部分 管理X窗口 第15章 管理X客户机与X服务器 第16章 GNOME 第17章 KDF 第18章 GUI应用程序 第19章 ...

    QT移植到2440开发板

    /dishes/qt/ /dishes/qt/ /dishes/qt/ /dishes/qt/ /dishes/qt/ 编写 config.sh config.sh config.sh config.sh config.sh config.sh config.sh config.sh config.sh config.sh config.sh 安装的配置文件 ...

Global site tag (gtag.js) - Google Analytics