webcam and usb device permissions

Nicolas Blais nb_root at videotron.ca
Sat Jan 21 09:06:50 PST 2006


On Saturday 21 January 2006 12:02, Torfinn Ingolfsen wrote:
> Hi,
>
> I just got a Creative Labs WebCam Live!. usbdevs -v reports this:
>  port 2 addr 3: full speed, power 160 mA, config 1, WebCam
> Live!(0x4036), Creative Labs(0x041e), rev 1.00
>
> and armed with that information, I quickly found out that the
> spca5xx port (graphics/spcaview) supports the family that this camera
> belongs to. Installed it, and it works.
>
> One question remains: the camera shows up as /dev/ugenX (ugen0 in my
> case). How do I tell my machine that want a permission of 0664 on that
> device when it shows up?
>
> I tried putting in 'perm    ugen0   0664' in /etc/devfs.conf, but that
> only applies on boot, I need something  that applies whenever the camera
> is connected. I seem to recall that this has been discussec before, but
> I can't find it now (yes, bad short term memory, I know).
>
> I'm running FreeBSD 6.0-stable:
> root at kg-quiet# uname -a
> FreeBSD kg-quiet.kg4.no 6.0-STABLE FreeBSD 6.0-STABLE #3: Sun Jan  8
> 20:22:06 CET 2006     root at kg-quiet.kg4.no:/usr/obj/usr/src/sys/QUIET
> amd64

See man devfs.rules.

My devfs.rules looks like this (for my usb drives):

[devfsrules_local=15]
add path 'da*' mode 0777

and in my rc.conf I have the line :
devfs_system_ruleset="devfsrules_local"

-- 
FreeBSD 7.0-CURRENT #10: Sat Jan  7 11:50:00 EST 2006     
root at clk01a:/usr/obj/usr/src/sys/CLK01A 
PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-multimedia/attachments/20060121/0c39f2c7/attachment.bin


More information about the freebsd-multimedia mailing list