From owner-freebsd-questions@FreeBSD.ORG Mon Jun 26 04:15:35 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC62A16A406 for ; Mon, 26 Jun 2006 04:15:34 +0000 (UTC) (envelope-from micahjon@ywave.com) Received: from relay0.av-mx.com (relay0.av-mx.com [137.118.16.125]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1395843D46 for ; Mon, 26 Jun 2006 04:15:32 +0000 (GMT) (envelope-from micahjon@ywave.com) X-Virus-Scan-Time: 0 Received: from [137.118.16.60] (HELO mx2.av-mx.com) by relay0.av-mx.com (CommuniGate Pro SMTP 4.2.10) with SMTP id 308967016 for freebsd-questions@freebsd.org; Mon, 26 Jun 2006 00:15:32 -0400 Received: (qmail 16018 invoked from network); 26 Jun 2006 04:15:31 -0000 Received: from dsl20226.ywave.com (HELO ?192.168.1.65?) (micahjon@ywave.com@216.227.107.226) by 0 with SMTP; 26 Jun 2006 04:15:31 -0000 X-CLIENT-IP: 216.227.107.226 X-CLIENT-HOST: dsl20226.ywave.com Message-ID: <449F5F62.9040807@ywave.com> Date: Sun, 25 Jun 2006 21:15:30 -0700 From: Micah User-Agent: Thunderbird 1.5.0.4 (X11/20060611) MIME-Version: 1.0 To: John Nielsen References: <8a6250b20606251628g5ea35843r5ccb318b15876609@mail.gmail.com> <200606251935.14267.john@jnielsen.net> <0092EAFD-5911-49DA-846E-99BB33D0C0C7@gmail.com> <200606252332.19131.lists@jnielsen.net> In-Reply-To: <200606252332.19131.lists@jnielsen.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: CUPS, USB printers & "Permission Denied" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 04:15:35 -0000 John Nielsen wrote: > On Sunday 25 June 2006 20:04, Anthony Agelastos wrote: >> On Jun 25, 2006, at 7:35 PM, John Nielsen wrote: >>> On Sunday 25 June 2006 19:28, Anthony Agelastos wrote: >>>> I updated CUPS and I cannot print to my USB laser printer. The web >>>> interface shows the following: >>>> >>>> hp_LaserJet_1160Le (Default Printer) "Unable to open USB device >>>> "usb:/dev/ulpt0": Permission denied" >>>> Description: Hewlett-Packard LaserJet 1160Le >>>> Location: Den >>>> Make and Model: HP LaserJet 1160 Foomatic/hpijs (recommended) >>>> Printer State: stopped, accepting jobs, published. >>>> Device URI: usb:/dev/ulpt0 >>>> >>>> Doing a `dmesg | grep ulpt0`, I get >>>> >>>> ulpt0: Hewlett-Packard hp LaserJet 1160 series, rev 1.10/1.00, >>>> addr 2, >>>> iclass 7/1 >>>> ulpt0: using bi-directional mode >>>> >>>> The printer itself works (I plugged it directly into my MacBook >>>> and it >>>> printed fine). To ensure it wasn't an awkward build error, I issued a >>>> >>>> `portupgrade -fR cups` >>>> >>>> and rebuilt it and everything it is dependent upon. Does anyone >>>> else have >>>> any ideas? I am running an early 6.1-STABLE (FreeBSD dell.home.iq >>>> 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 01:04:32 EDT 2006 >>>> root@dell.home.iq:/usr/obj/usr/src/sys/IQKERNEL i386). >>> Just a "me too" so far with an el cheapo Lexmark USB laser printer >>> (E210). >>> Are you using the foomatic script? I am, with a PPD from >>> linuxprinting.org. >> I am not sure, actually (it was so long ago, I do not remember how I >> got it working). I installed hpijs and "Make and Model" mentions >> Foomatic/hpijs, so perhaps. I am sorry I could not be of more >> assistance with this question. >> >>> I'm going to try backing up and blowing away my etc/cups dir, re- >>> updating >>> the port, reinstalling foomatic and my ppd, and see if that makes any >>> difference. I'll post whatever I learn. >> Thank you for posting your findings and for your quick reply. > > No luck. I basically re-installed everything (including config files and the > foomatic filters) from scratch. I also changed the permissions > on /dev/ulpt0 to be 0664 for root:cups. That prevents the permissions > error, but I still get nothing from the printer. The message that comes up > in the cups web interface when I try to print a test page is: > > "/usr/local/libexec/cups/backend/usb failed" > > I did get my other printer (on a different machine) working with cups 1.2.0 > by just changing the permissions on the device node. I hadn't ever set this > printer up with cups before today, though. It's using gutenprint. > > JN Check the error log for more verbose messages (located in /var/log/cups/ or from the cups web interface). From what I've read while trying to solve my failure is that some of the backends/drivers don't work properly with the new cups. We're probably dealing with several simultaneous failures that need to be worked out. FWIW, cups is working with an Epson 777 and the gimp-print drivers using /dev/unlpt0. It seems to work as well as it did before once I got the permissions issue worked out. HTH, Micah