Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Oct 2011 00:43:50 +0200
From:      Patrick Lamaiziere <patfbsd@davenulle.org>
To:        Jilles Tjoelker <jilles@stack.nl>
Cc:        David Marec <david.marec@davenulle.org>, 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
Message-ID:  <20111030004350.5ffb0e00@davenulle.org>
In-Reply-To: <20111029195852.GA90408@stack.nl>
References:  <4EAC0966.2050607@davenulle.org> <20111029195852.GA90408@stack.nl>

index | next in thread | previous in thread | raw e-mail

Le Sat, 29 Oct 2011 21:58:53 +0200,
Jilles Tjoelker <jilles@stack.nl> 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.


home | help

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