Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jan 2006 12:06:49 -0500
From:      Nicolas Blais <nb_root@videotron.ca>
To:        freebsd-multimedia@freebsd.org
Subject:   Re: webcam and usb device permissions
Message-ID:  <200601211206.49451.nb_root@videotron.ca>
In-Reply-To: <20060121180231.7c4cc7a7.torfinn.ingolfsen@broadpark.no>
References:  <20060121180231.7c4cc7a7.torfinn.ingolfsen@broadpark.no>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1569196.kaT7eYjF8l
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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@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@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=3D15]
add path 'da*' mode 0777

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

=2D-=20
=46reeBSD 7.0-CURRENT #10: Sat Jan  7 11:50:00 EST 2006    =20
root@clk01a:/usr/obj/usr/src/sys/CLK01A=20
PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc

--nextPart1569196.kaT7eYjF8l
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQBD0mop4wTBlvcsbJURAkbnAJ9kXcDSIFew00Q70kECDT2dFijQ0QCgoIBt
9dbrGvLA9rXvAFq4ffGnHrQ=
=MXxA
-----END PGP SIGNATURE-----

--nextPart1569196.kaT7eYjF8l--



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