Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Oct 2011 21:58:53 +0200
From:      Jilles Tjoelker <jilles@stack.nl>
To:        freebsd-usb@freebsd.org
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
Message-ID:  <20111029195852.GA90408@stack.nl>
In-Reply-To: <4EAC0966.2050607@davenulle.org>
References:  <4EAC0966.2050607@davenulle.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111029195852.GA90408>