Technical article 127623

How to remotely access the Web interface of CUPS on Port 631?

OpenServer 6.0.0

Written · Last revised

Problem

I have installed OpenServer 6.0.0 and want to access the web interface of CUPS on port 631.

http://<CUPS server IP address>:631
I get the following authorization error:

Forbidden You don't have permission to access the resource on this server.

or the web page cannot be found.

What do I need to do to be able to administer the CUPS server via web on port 631?

Solution

You need to edit the file /etc/cups/cupsd.conf.

Before:
======
# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock
After:
=====
# Only listen for connections from the local machine.
Port 631
Listen localhost:631
Listen /var/run/cups/cups.sock

This will enable remote access to the web interface of CUPS.

If you want remote access for a specific client you have to make further changes to /etc/cups/cupsd.conf.

Before:
======
# Restrict access to the server...
<Location />
  Order allow,deny
</Location>
# Restrict access to the admin pages...
<Location /admin>
  Encryption Required
  Order allow,deny
</Location>
After:
=====
# Restrict access to the server...
<Location />
  Order allow,deny
  Allow 192.168.246.87
</Location>
# Restrict access to the admin pages...
<Location /admin>
  Encryption Required
  Order allow,deny
  Allow 192.168.246.87
</Location>

This will allow the client 192.168.246.87 to access the CUPS web interface.

Note that you can also use wildcards in the Allow statement e.g. Allow 192.168.246.*

You have to restart CUPS with:
# /etc/rc2.d/S99cups restart

See also

TA126211 for pre-MP4 CPUS.

From the Xinuos technical article database, record 127623. Reproduced with permission. The original is at www.sco.com/ta/127623, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.