From owner-freebsd-usb@FreeBSD.ORG Sat Oct 29 22:59:24 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84290106564A; Sat, 29 Oct 2011 22:59:24 +0000 (UTC) (envelope-from patfbsd@davenulle.org) Received: from smtp.lamaiziere.net (net.lamaiziere.net [94.23.254.147]) by mx1.freebsd.org (Postfix) with ESMTP id 462458FC12; Sat, 29 Oct 2011 22:59:24 +0000 (UTC) Received: from baby-jane.lamaiziere.net (63.9.74.86.rev.sfr.net [86.74.9.63]) by smtp.lamaiziere.net (Postfix) with ESMTPA id 35672FAA31A5; Sun, 30 Oct 2011 00:43:52 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by baby-jane.lamaiziere.net (Postfix) with ESMTP id AA1087320C; Sun, 30 Oct 2011 00:43:51 +0200 (CEST) Date: Sun, 30 Oct 2011 00:43:50 +0200 From: Patrick Lamaiziere To: Jilles Tjoelker Message-ID: <20111030004350.5ffb0e00@davenulle.org> In-Reply-To: <20111029195852.GA90408@stack.nl> References: <4EAC0966.2050607@davenulle.org> <20111029195852.GA90408@stack.nl> X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.6; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: [Freebsd 9] [amd64] [USB] [HPLIP] what's the (new) right way to manage hplip usb-plugged printers, running Freebsd 9 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Oct 2011 22:59:24 -0000 Le Sat, 29 Oct 2011 21:58:53 +0200, Jilles Tjoelker a écrit : > On Sat, Oct 29, 2011 at 04:10:46PM +0200, David Marec wrote: > > So, what's should be the news group&user's rights required by > > HPLIP/cups on FreeBSD 9 ? > > > And, how to handle them with devd ? > > Use devfs rules. > > Pasting from http://www.stack.nl/~jilles/unix/freebsd-devfs.txt > > Create or edit /etc/devfs.rules and put something like this in it: > > [devfsrules_mybox=10] > add path 'fd0*' mode 660 The problem is that the printer appears as ugenXXX.Y, but other usb devices (disk, usb-key, ...) also have an entry in /dev/ugen/ You really don't want to allow the users to access these devices, but *only* the printer. This is why we use a devd rule that test the type of the device. I don't think we can do this with devfs. And the ugen number differs if the usb port is not always the same. Regards.