Technical article 126211

How can I remotely administer the CUPS server from a web browser on port 631

OpenServer 6.0.0OpenServer 5.0.7UnixWare 7.1.4

Written · Last revised

Problem

I have installed OpenServer 6.0.0 and want to use CUPS as a default printer subsystem.

I have edited the /etc/default/lpd file and changed the line:

PRINT_SYSTEM=SYSV
to
PRINT_SYSTEM=CUPS

When I try to administer the CUPS server via remote web access 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?

Cause

CUPS is configured by default to not allow any remote access via port 631.

Solution

This also applies to SCO OpenServer 5.0.7 with Update Pack 3 (UP3) or Maintenance Pack 4 (MP4) installed and UnixWare 7.1.4 (MP3).

You can check CuPs is enabled by:

# telnet localhost 631

If the connection is refused then CuPs has not been started in /etc/init.d/cups.

By default CuPs only permits access from the localhost.

You need to edit the /etc/cups/cupsd.conf and update (remove) the remote access restrictions.

Comment and update the following lines:
From:
# The default value is "IfRequested".
#

<Location /> Order Deny,Allow Deny From All Allow From 127.0.0.1 </Location>

To:
# The default value is "IfRequested".
#
<Location />
#Order Deny,Allow
#Deny From All
#Allow From 127.0.0.1
</Location>
Then from:
<Location /admin>
#
# You definitely will want to limit access to the administration
#  functions.
# The default configuration requires a local connection from a user who
# is a member of the system group to do any admin tasks. You can change
# the group name using the SystemGroup directive.
#
AuthType Basic
AuthClass System
## Restrict access to local domain
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
to:
<Location /admin>
AuthType Basic
AuthClass System
## Restrict access to local domain
#Order Deny,Allow
#Deny From All
#Allow From 127.0.0.1
Restart cups deamon (scheduler):
# /etc/init.d/cups restart

You now will be able to remotely admin the CUPS server via port 631.

NOTE: Documentation Restrictions:
OpenServer 5.0.7 MP5 - 'cups' not in SCO's online documentation
                       localhost: man page corruption but
                       http://localhost:631/documentation.html working
OpenServer 6.0.0 MP2 - No Restrictions
UnixWare 7.1.4   MP3 - 'cups' not in SCO's online documentation
                       localhost: man pages working
                       http://localhost:631/documentation.html missing
Documentation is stored in /usr/share/doc/cups

See also

For Getting Started with UnixWare7, see TA#126530

For more information about getting started with CUPS:

http://osr600doc.xinuos.com/en/Navpages/PRhome.html
http://osr600doc.xinuos.com/en/PR_admin/cups-start.html
http://osr600doc.xinuos.com/en/PR_cups/sum.html
http://osr600doc.xinuos.com/en/PR_cups/sam.html#ALLOW_REMOTE
For OSR6 MP4 installations see TA#127623

From the Xinuos technical article database, record 126211. Reproduced with permission. The original is at www.sco.com/ta/126211, 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.