CUPS permmission prob - Am I dumb, or is the program dumb?

Gino Relli gino at linux.ca
Thu Nov 18 15:49:54 PST 2004


On Thu, 18 Nov 2004 17:42:30 -0500, angelb wrote:

> Try these in your server's cupsd.conf:
> 
> <Location />
> Order Deny,Allow
> Deny From All
> Allow From All
> </Location>
> 
> <Location /admin>
> AuthType Basic
> AuthGroupName lp
> AuthClass Group
> Order Deny,Allow
> Allow From All
> Deny From All
> </Location>
> 
> If you want to authenticate the rest, you can copy the directive from /admin as above and change it accordingly.
> Now, to be able to do any administrative task, you need to add your account to /etc/group like the following:
> lp:x:7:daemon,lp,grelli   (try using SystemGroup lp instead)
> This should work for you.

Well, I tried your suggestion, and still get "client-error-not-authourized"
these are the lines that bother me from /var/log/cups/error_log: (*****)

d [18/Nov/2004:23:35:33 +0000] ProcessIPPRequest: URI="ipp://localhost/printers/canon"
d [18/Nov/2004:23:35:33 +0000] add_printer(5, ipp://localhost/printers/canon)
*****d [18/Nov/2004:23:35:33 +0000] CheckPolicy: op=4003, name="anonymous", authenticated=0, owner=""*****
d [18/Nov/2004:23:35:33 +0000] CheckPolicy: Operation requires authentication, returning 0!
E [18/Nov/2004:23:35:33 +0000] add_printer: not authorized!
d [18/Nov/2004:23:35:33 +0000] send_ipp_error(5, 403)
D [18/Nov/2004:23:35:33 +0000] Sending error: client-error-not-authorized

name="anonymous"  ??

I've tried lpadmin as root as well as my login account (gino)
$ /usr/local/sbin/lpadmin -p canon -E -P /etc/cups/ppd/lp0.ppd -v canon:/dev/lp0
lpadmin: add-printer (enable) failed: client-error-not-authorized
(I've given up on the web interface - 3 mins to go through the ADD PRINTER)

from /etc/group:
sys:x:3:root,bin,adm,lp,gino
lp:x:7:daemon,lp,sys,gino

from /etc/cups/cupsd.conf:
RemoteRoot remroot
SystemGroup lp
User lp
Group sys
Classification None

Can I just lose ALL the authentication?
I'm just a home user with 1 printer that everyone is allowed to use.




More information about the cups mailing list