From owner-freebsd-questions@FreeBSD.ORG Mon Jun 26 01:05:53 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 3310116A400 for ; Mon, 26 Jun 2006 01:05:53 +0000 (UTC) (envelope-from micahjon@ywave.com) Received: from relay2.av-mx.com (relay2.av-mx.com [137.118.16.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id B36B843DAB for ; Mon, 26 Jun 2006 01:05:52 +0000 (GMT) (envelope-from micahjon@ywave.com) X-Virus-Scan-Time: 0 Received: from [137.118.16.55] (HELO mx3.av-mx.com) by relay2.av-mx.com (CommuniGate Pro SMTP 4.2.10) with SMTP id 313548550 for freebsd-questions@freebsd.org; Sun, 25 Jun 2006 21:05:49 -0400 Received: (qmail 24251 invoked from network); 26 Jun 2006 01:05:49 -0000 Received: from dsl20226.ywave.com (HELO ?192.168.1.65?) (micahjon@ywave.com@216.227.107.226) by mx3.av-mx.com with SMTP; 26 Jun 2006 01:05:49 -0000 X-CLIENT-IP: 216.227.107.226 X-CLIENT-HOST: dsl20226.ywave.com Message-ID: <449F32EB.3010805@ywave.com> Date: Sun, 25 Jun 2006 18:05:47 -0700 From: Micah User-Agent: Thunderbird 1.5.0.4 (X11/20060611) MIME-Version: 1.0 To: Anthony Agelastos References: <8a6250b20606251628g5ea35843r5ccb318b15876609@mail.gmail.com> <20060626013428.bfd51cb9.albi@scii.nl> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: asa@agava.com, albi , 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 01:05:53 -0000 Anthony Agelastos wrote: > Hello and thank you for the very quick reply. > > On Jun 25, 2006, at 7:34 PM, albi wrote: > >> On Sun, 25 Jun 2006 19:28:35 -0400 >> "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 >> >> are the permissions on /dev/ulpt0 correct ? > I have no idea what it is supposed to be. > %ls -l /dev/ulpt0 > crw-r--r-- 1 root operator 0, 68 Jun 25 19:01 /dev/ulpt0 > >> >> if the printer runs fine as root you know it's likely a >> permission-problem >> > What's the best way to run it as root? When I log into the CUPS web > interface as root and try to print a test page, it gives me the message > I posted above. If, as root, I try to print a Postscript file via lp, it > does nothing. > > Thank you all again for your > assistance._______________________________________________ I had the same problem. chown ulpt0 to group cups and add group write. That will fix it. I added the following to /etc/devfs.rules to make the fix permanent: [system=10] add path 'unlpt*' mode 0660 group cups add path 'ulpt*' mode 0660 group cups Don't forget to restart devfs. HTH, Micah