Child pages
  • Cups: allow web based administration of printers by a non-root user
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Environment

The print server (cups) can be taken care of by users without the need to have an access to shell, using the web interface provided by default by cups.

The policy chosen by Blue Light is to create a specific user in the system for that task: printadmin.

Requirements

The printer administrators need to have network access to the server (in Blue Light: using OpenVPN).

Configuration

Create the user for administration

adduser printadmin

Set the password as set in BLKPDB.

Add it in the group:

adduser printadmin lpadmin

Configuration of Cups

Allow cups http interface from other computers

In the general config (no) section of /etc/cups/cupsd.conf, add a line:

ServerAlias *

Allow connections from any source IP

Add in the <Location /> section of /etc/cups/cupsd.conf

 Allow all

Remove all lines matching Allow @LOCAL in other <Location> sections of that file, if any.

Connection

Point a web browser to: https://server.name:631

The default settings allow viewing the printers and queues, but not any modification.

The cups web sites prompts for user name  (printadmin) and password when required.

Administration of printers

TODO: document common tasks, such as adding a printer, pausing/resuming, etc

  • No labels