sudo aptitude install cupsys gnome-cups-managerРедактируем конфиг
sudo nano /etc/cups/cupsd.conf
LogLevel warning
# Administrator user group...
SystemGroup lpadmin
# Only listen for connections from the local machine.
Listen *:631
Listen /var/run/cups/cups.sock
# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseAddress @LOCAL
# Default authentication type, when authentication is required...
DefaultAuthType Basic
# Restrict access to the server...
Order allow,deny
Allow all
Allow localhost
Allow @LOCAL
# Restrict access to the admin pages...
Order allow,deny
Allow 192.168.0.33 # с этой машины я могу удаленно админить
Allow localhost
# Restrict access to configuration files...
AuthType Default
Require user @SYSTEM
Order allow,deny
Allow 192.168.0.33 # с этой машины я могу удаленно админить
Allow localhost
# Set the default printer/job policies...
# 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-Subs$
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
# All administration operations require an administrator to authenticate...
AuthType Default
Require user @SYSTEM
Order deny,allow
# 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-N$
AuthType Default
Require user @SYSTEM
Order deny,allow
# Only the owner or an administrator can cancel or authenticate a job...
Require user @OWNER @SYSTEM
Order deny,allow
Рестартуем CupsOrder deny,allow
sudo /etc/init.d/cupsys restart
Если он вдруг не запустился, а выдал ошибку:
sudo /etc/init.d/cupsys start * Starting Common Unix Printing System: cupsd cupsd: Child exited with status 1!то нужно удалить, а патом переутасновить пакет cupsys
sudo apt-get purge cupsys
sudo apt-get install cupsys
Комментариев нет:
Отправить комментарий