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=CUPSWhen I try to administer the CUPS server via remote web access on port 631 :
http://<CUPS server IP address>:631I 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 631If 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.1to:<Location /admin>AuthType Basic
AuthClass System## Restrict access to local domain
#Order Deny,Allow
#Deny From All
#Allow From 127.0.0.1Restart cups deamon (scheduler):# /etc/init.d/cups restartYou 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 workingOpenServer 6.0.0 MP2 - No RestrictionsUnixWare 7.1.4 MP3 - 'cups' not in SCO's online documentation
localhost: man pages working
http://localhost:631/documentation.html missingDocumentation is stored in /usr/share/doc/cups See also
For Getting Started with UnixWare7, see TA#126530For 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_REMOTEFor OSR6 MP4 installations see TA#127623