quinta-feira, 26 de setembro de 2013

Instalando e configurando um servidor de impressão linux - CUPS

O sistema operacional usado nessa configuração foi o CentOS 5.
  1. Instalação
    • yum install cups
  2. Configuração
    • vim /etc/cups/cupsd.conf
LogLevel warning
SystemGroup cups
Port 631
Listen /var/run/cups/cups.sock
Browsing On
BrowseOrder allow,deny
BrowseAddress @LOCAL
DefaultAuthType Basic
<Location />
Order allow,deny
Allow From All
</Location>
<Location /admin>
Encryption Required
Order allow,deny
Allow From All
</Location>

<Location /admin/conf>
AuthType Basic
Require user @SYSTEM
Order allow,deny
Allow From All
</Location>
<Policy default>
<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
Allow From All
</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
Allow From All
</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 CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
Allow From All
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
Allow From All
</Limit>
<Limit All>
Order deny,allow
Allow From All
</Limit>
</Policy>
DefaultEncryption Never

/etc/init.d/cups restart
chkconfig --level 2345 cups on

Nenhum comentário:

Postar um comentário