I put the mentioned lines back in the cupsd.conf file and I changed the
Allow from 127.0.0.1 line to the ip of my pc. I uncommented the
SystemGroup sys line and created a cupsadmin user with sys as his
primary group. Then I restarted cups. 

Now I am prompted to logon when I try to access the cups admin web
interface (I was not before.) I can logon with cupsadmin, but the images
are still not displayed and I can't access the manage printers page. The
/var/log/cups/access_log is full of messages like this:

10.5.8.76 - cupsadmin [23/May/2007:14:11:50 -0500] "GET /images/left.gif
HTTP/1.1" 403 0
10.5.8.76 - cupsadmin [23/May/2007:14:11:50 -0500] "GET
/images/right.gif HTTP/1.1" 403 0
10.5.8.76 - cupsadmin [23/May/2007:14:11:50 -0500] "GET
/images/add-class.gif HTTP/1.1" 403 0
10.5.8.76 - cupsadmin [23/May/2007:14:11:50 -0500] "GET
/images/manage-classes.gif HTTP/1.1" 403 0
10.5.8.76 - cupsadmin [23/May/2007:14:11:50 -0500] "GET
/images/manage-jobs.gif HTTP/1.1" 403 0
10.5.8.76 - cupsadmin [23/May/2007:14:11:50 -0500] "GET
/images/add-printer.gif HTTP/1.1" 403 0
10.5.8.76 - cupsadmin [23/May/2007:14:11:50 -0500] "GET
/images/manage-printers.gif HTTP/1.1" 403 0
10.5.8.76 - cupsadmin [23/May/2007:14:12:03 -0500] "GET /printers/
HTTP/1.1" 403 0
10.5.8.76 - cupsadmin [23/May/2007:14:12:06 -0500] "GET /cups.css
HTTP/1.1" 403 0
10.5.8.76 - cupsadmin [23/May/2007:14:12:06 -0500] "GET
/images/navbar.gif HTTP/1.1" 403 0
10.5.8.76 - cupsadmin [23/May/2007:14:12:06 -0500] "GET /images/left.gif
HTTP/1.1" 403 0
10.5.8.76 - cupsadmin [23/May/2007:14:12:07 -0500] "GET
/images/right.gif HTTP/1.1" 403 0
10.5.8.76 - cupsadmin [23/May/2007:14:12:07 -0500] "GET
/images/add-class.gif HTTP/1.1" 403 0
10.5.8.76 - cupsadmin [23/May/2007:14:12:07 -0500] "GET
/images/manage-classes.gif HTTP/1.1" 403 0
10.5.8.76 - cupsadmin [23/May/2007:14:12:07 -0500] "GET
/images/manage-jobs.gif HTTP/1.1" 403 0
10.5.8.76 - cupsadmin [23/May/2007:14:12:07 -0500] "GET
/images/add-printer.gif HTTP/1.1" 403 0
10.5.8.76 - cupsadmin [23/May/2007:14:12:07 -0500] "GET
/images/manage-printers.gif HTTP/1.1" 403 0


I changed the permissions on /usr/doc/cups-1.1.23/ to 755, and restarted
cups, but it did not seem to make a difference. Do I need to alter the
permissions on some other file system? 

Russ

-----Original Message-----
From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of
Mark Post
Sent: Wednesday, May 23, 2007 1:09 PM
To: LINUX-390@VM.MARIST.EDU
Subject: Re: CUPS printing help

>>> On Tue, May 22, 2007 at  1:58 PM, in message
<[EMAIL PROTECTED]>
,
"Jones, Russell" <[EMAIL PROTECTED]> wrote: 
> I am running Slack/390 10.1 in an LPAR. I am trying to use CUPS to set
> up a network printer. I commented out the following lines in the
> cupsd.conf file that restrict remote CUPS admin and require
> authentication.  

That probably wasn't a good idea.  If you don't want to send root's
password over the network, then uncomment this in /etc/cups/cupsd.conf
SystemGroup sys

Then add a user, say cupsadmin, with sys as their primary group.

>       Order deny,allow
>       Deny from all
>       Allow from 127.0.0.1
> 
>       AuthType Basic
>       AuthClass System

Put all these statements back in.  Change the "Allow from 127.0.0.1" to
"Allow from xx.xx.xx.xx/24" or whatever subnet you want to accept logins
from.  Restart cupsd.  Login as cupsadmin to do any administration work.

> I am now able to get to the main admin page at myip:631/admin, but
none
> of the images on the page are being displayed. I can get to the "add
new
> printer" and "add new classes" pages, but when I attempt to access the
> "manage printers" and "manage classes" pages, I get an http 403
> forbidden error.

Look in /var/log/cups/access_log and /var/log/cups/error_log.  See what
exactly is getting the 403 error.  Check the permissions on those
directories and files.  If they're not 755, they probably should be.


Mark Post

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or
visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to