From owner-freebsd-questions@FreeBSD.ORG Sat Jul 8 18:28:52 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 4C3D716A4DF for ; Sat, 8 Jul 2006 18:28:52 +0000 (UTC) (envelope-from iqgrande@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 822D443D49 for ; Sat, 8 Jul 2006 18:28:51 +0000 (GMT) (envelope-from iqgrande@gmail.com) Received: by wr-out-0506.google.com with SMTP id 50so1270751wri for ; Sat, 08 Jul 2006 11:28:50 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=WSVvQbMRPnTxnrjku7hPtP1gszOiLma6KIrtUl6fuWsqvWqT0yN9ZVH6/AbI3Dj1MCLeco0LUu4vJOW4G96JRE+6aQYEzUvGDsC1v6fo+u9YS189ZbxcPlW/sPchyzwlyms0dbDKjhOLtI1xIOmdRfjjrSLh8aBDg9ehGlJJfXA= Received: by 10.54.152.12 with SMTP id z12mr3041167wrd; Sat, 08 Jul 2006 11:28:50 -0700 (PDT) Received: from ?192.168.0.5? ( [67.191.189.255]) by mx.gmail.com with ESMTP id 27sm3173147wrl.2006.07.08.11.28.49; Sat, 08 Jul 2006 11:28:50 -0700 (PDT) In-Reply-To: <20060708201954.93d1f2a2.coolzone@io.dk> References: <60F058F5-E2AD-4BB5-80E3-DAFC3C47C62B@gmail.com> <20060708201954.93d1f2a2.coolzone@io.dk> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Anthony Agelastos Date: Sat, 8 Jul 2006 14:28:47 -0400 To: Rico Secada X-Mailer: Apple Mail (2.752.2) 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: Sat, 08 Jul 2006 18:28:52 -0000 On Jul 8, 2006, at 2:19 PM, Rico Secada wrote: > On Sat, 8 Jul 2006 12:43:45 -0400 > Anthony Agelastos wrote: > > Hi, I just installed cups from ports and had a similar problem with > printing. Normally I haven't got any problems. > > The printer is a HL-1430 connected to USB and the error I got was: > 'Unable to open USB device "usb:/dev/unlpt0" Permission Denied.' > > Now I don't know if this is relevant in any way. After trying all > kinds of solutions I finally decided to simply do "chmod 777 /dev/ > unlpt0", and that solved the problem. Hello Rico, Thank you for your reply. Your workaround may only work until you reboot your machine and /dev/unlpt0 is re-permission'd. To make that fix more permanent, you will need to add the following to your /etc/ devfs.rules file (feel free to modify the 0660 to something more of your liking). [system=10] add path 'unlpt*' mode 0660 group cups add path 'ulpt*' mode 0660 group cups And, add the following to your /etc/rc.conf file. devfs_system_ruleset="system" These were outlined earlier on in this thread. Do you have other computers that network print to your printer (and if so, does network printing work for you)? Thank you for your reply. > > Best and kind regards, > Rico > >> On Jun 29, 2006, at 6:51 PM, Jan-Espen Pettersen wrote: >> >>> >>> >>>> I just tried /dev/unltp0 and I have the same issues. Basically, I >>>> killed all of the jobs, made your change, submitted a test page, >>>> watched as nothing happened (it didn't display any messages in the >>>> web >>>> interface), did a /usr/local/etc/rc.d/cupsd restart, killed the >>>> test >>>> page, then resubmitted one, and then it mentioned the USB busy will >>>> retry in 30 seconds line. I reattached my error_log for today's >>>> activities. >>>> >>>> I will be on the road for the better part of a week, so I will >>>> try to >>>> help out as much as I can given the circumstances. Thank you >>>> everyone >>>> for your assistance with this. >>>> >>>> >>> >>> I found that the usb backend stalled here before actually doing any >>> work. Before I've done any actual debugging of the backend, I >>> suspect >>> that it is being blocked on a status read attempt, though this is >>> only >>> my current guess. >>> >>> Here is a workaround: >>> >>> In printers.conf () you will probably find a line like this: >>> >>> DeviceURI usb:/dev/ulpt0 >>> >>> change usb: to file:, so that it looks something like this: >>> >>> DeviceURI file:/dev/ulpt0 >>> >>> Then restart cups. Cups will not read any status information from >>> the >>> printer, but at least it can print. Be warned about unknown side >>> effects. :) >>> >>> Jan-Espen Pettersen >>> >>> >>> >> I did this fix and it enabled the local server that has the printer >> connected to it to print (a test page anyways) however, when I try to >> print to the printer through the network via my MacBook Pro (which >> worked before), I get the message in the CUPS Web Interface: >> >> "/usr/local/libexec/cups/filter/foomatic-rip failed" >> >> Basically, I have the same problem reported in the one-message-thread >> "Can't print to CUPS from Macintosh". >> >> Does anyone have any ideas? The FreeBSD community has my appreciation >> for all of its help on this matter. >> >> Based on the number of problems associated with this issue (there's >> this thread, the aforementioned Mac thread, and the "cups 1.2 - no >> output" thread), would it be worthwhile to create a new Port named >> cups-devel (keeping the 1.2.x codebase) and downgrade the existing >> cups to the latest 1.1.x version until the bugs have been ironed out >> on the 1.2.x branch (or at least adding an entry to /usr/ports/ >> UPDATING to warn those updating)? Would 1.2.1 fix these issues (that >> is the current stable version whereas FreeBSD's CUPS is at 1.2.0), or >> perhaps the 1.3svn branch? I am unsure where the current problems lay >> (on the CUPS side, on how it is installed in the FreeBSD environment, >> or on the FreeBSD environment itself). Earlier in this thread, the >> issues were primarily related with permissions (since, it was >> mentioned, CUPS is trying to run with a more reasonable set of >> permissions instead of via 'root'), but now they appear to be >> configuration specific. I am willing to try whatever is proposed to >> help the developers get past these issues. >> >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to "freebsd-questions- >> unsubscribe@freebsd.org" >> > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions- > unsubscribe@freebsd.org"