[redhat-lspp] CUPS w/ Matt's config in RHEL5 not printing?

Matt Anderson mra at hp.com
Mon Nov 6 19:09:38 UTC 2006


Eduardo Madeira Fleury wrote:
> Hey all,
> 
> I'm trying to setup a USB printer in RHEL5 Server 10/27 refresh using the 
> configuration steps described at http://free.linux.hp.com/~mra/docs/ but I'm 
> not being able to.
> 
> I did the following:
> 
> # lpadmin -p Printer1 -E -v usb://Lexmark/T630 -m postscript.ppd.gz
> # lpadmin -p Printer2 -E -v usb:/dev/usb/lp0 -m postscript.ppd.gz
> 
> Where /dev/usb/lp0 is the device the Lexmark is connected to.
> 
> Ok, then I try to print in Permissive:
> 
> # lpr -P Printer1 mytestpage.ps
> Nothing happens
> 
> # lpstat-p
> printer Printer1 is idle.  enabled since Mon 06 Nov 2006 08:29:03 AM CST
>         /usr/lib/cups/filter/pstops failed
> (...)
> 
> # lpr -P Printer2 mytestpage.ps
> Nothing happens
> 
> # lpstat -p
> (...)
> printer Printer2 is idle.  enabled since Mon 06 Nov 2006 08:30:52 AM CST
>         /usr/lib/cups/filter/pstops failed
> 
> In Enforcing same happens to Printer1. For Printer2, lpr returns
> "lpr: SELinux prohibits access to the printer" what should be because the /dev 
> URI is deprecated, anyway Printer1 doesn't work either so that's not the
> problem.
> 
>>From the other threads seems there's still some development going on, is that 
> right? Is this a (known) bug?
> 
> Thanks,

You should still be getting the SELinux deny on the printer since the
needed constraint wasn't in the policy.  I got an update on my bugzilla
and the constraint will be included starting with the selinux policy
2.4.3-1 rpm.

As for the usb://Lexmark/T630 URI printers without /dev/ in their URI
are not checked for file system permissions before the job is sent.
Your admin guide should specify that printers MUST be created with the
/dev/usb/lp* style URI.

>From the error you are seeing it sounds like the pstops filter is having
trouble with your postscript document.  If you revert the config files
to their defaults do you still see that problem?

-matt




More information about the redhat-lspp mailing list