From owner-freebsd-current@FreeBSD.ORG Sat Oct 29 19:58:55 2011 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94CC61065673; Sat, 29 Oct 2011 19:58:55 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from mx1.stack.nl (relay02.stack.nl [IPv6:2001:610:1108:5010::104]) by mx1.freebsd.org (Postfix) with ESMTP id 34B978FC18; Sat, 29 Oct 2011 19:58:55 +0000 (UTC) Received: from snail.stack.nl (snail.stack.nl [IPv6:2001:610:1108:5010::131]) by mx1.stack.nl (Postfix) with ESMTP id 686A1358C5A; Sat, 29 Oct 2011 21:58:53 +0200 (CEST) Received: by snail.stack.nl (Postfix, from userid 1677) id 446A228468; Sat, 29 Oct 2011 21:58:53 +0200 (CEST) Date: Sat, 29 Oct 2011 21:58:53 +0200 From: Jilles Tjoelker To: freebsd-usb@freebsd.org Message-ID: <20111029195852.GA90408@stack.nl> References: <4EAC0966.2050607@davenulle.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4EAC0966.2050607@davenulle.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: current@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-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Oct 2011 19:58:55 -0000 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 See man 8 devfs for more information. Then put in /etc/rc.conf devfs_system_ruleset="devfsrules_mybox" If you want to edit other /dev mountpoints (e.g. for jails) use something like devfs_set_rulesets="/usr/jails/jail1/dev=devfsrules_jail1 /usr/jails/jail2/dev=devfsrules_jail2" -- Jilles Tjoelker