Re: [Freebsd 9] [amd64] [USB] [HPLIP] what's the (new) right way

看板FB_current作者時間14年前 (2011/10/30 07:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/10 (看更多)
Le Sat, 29 Oct 2011 21:58:53 +0200, Jilles Tjoelker <jilles@stack.nl> a 嶰rit : > 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. _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1Eh8MkQ5 (FB_current)
討論串 (同標題文章)
完整討論串 (本文為第 2 之 10 篇):
文章代碼(AID): #1Eh8MkQ5 (FB_current)