From owner-freebsd-questions@FreeBSD.ORG Mon Jun 26 04:16:15 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 A6C0E16A50B for ; Mon, 26 Jun 2006 04:16:15 +0000 (UTC) (envelope-from iqgrande@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.228]) by mx1.FreeBSD.org (Postfix) with ESMTP id DECE344B02 for ; Mon, 26 Jun 2006 02:15:48 +0000 (GMT) (envelope-from iqgrande@gmail.com) Received: by wr-out-0506.google.com with SMTP id 50so954681wri for ; Sun, 25 Jun 2006 19:15:48 -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=mPi3jLqR9B+liC6UmWwfRmiDxi5/EwvTyA1lk9IV2K5h1uE6GPB+86L093P8ghCIpJj+MXFeRKDzk93hZ/Wp6aWYJplGDRBlM+6lulmHFteslno9TZjQb30RtGMA/etGFK/+O4wu+RzkYVOaCJ9r/2KZUIolwHjACPm57+McYD4= Received: by 10.54.110.12 with SMTP id i12mr5543919wrc; Sun, 25 Jun 2006 19:15:47 -0700 (PDT) Received: from ?192.168.0.5? ( [67.191.189.255]) by mx.gmail.com with ESMTP id 26sm4250985wra.2006.06.25.19.15.46; Sun, 25 Jun 2006 19:15:47 -0700 (PDT) In-Reply-To: <449F32EB.3010805@ywave.com> References: <8a6250b20606251628g5ea35843r5ccb318b15876609@mail.gmail.com> <20060626013428.bfd51cb9.albi@scii.nl> <449F32EB.3010805@ywave.com> Mime-Version: 1.0 (Apple Message framework v750) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Anthony Agelastos Date: Sun, 25 Jun 2006 22:15:43 -0400 To: Micah X-Mailer: Apple Mail (2.750) 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 04:16:15 -0000 On Jun 25, 2006, at 9:05 PM, Micah wrote: > 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: I did chgrp cups /dev/ulpt0 chmod g+w /dev/ulpt0 > > [system=10] > add path 'unlpt*' mode 0660 group cups > add path 'ulpt*' mode 0660 group cups I did not have a /etc/devfs.rules file, so I copied /etc/defaults/ devfs.rules to /etc/devfs.rules and added what you suggested at the bottom of it. > > Don't forget to restart devfs. When I do /etc/rc.d/devfs restart it seems like nothing happens. So, I rebooted my machine and the group was back to operator. What am I doing wrong? Thank you so much for your assistance with this. > > HTH, > Micah