Permissions to access USB camera under debian

Permissions to access USB camera under debian

shimi linux-il at shimi.net
Tue Jul 2 21:06:28 IDT 2013


On Tue, Jul 2, 2013 at 8:41 PM, Micha Feigin <michf at post.tau.ac.il> wrote:

>  Doesn't seem to be a camera group (there is a camera user, which may
> affect that), no v4l and video under the dev tree.
> Only thing I found that changes under dev during connection is these two
> files:
>
> lrwxrwxrwx 1 root root 18 Jul  2 13:35 /dev/char/189:389 ->
> ../bus/usb/004/006
> crw-rw-r-T 1 root root 189, 389 Jul  2 13:35 /dev/bus/usb/004/006
>
> So I don't think that it shows up as a camera but rather as a USB device
> (which makes sense as it's a depth camera that returns three images per
> frame with some extra related parameters, not a regular camera)
> Looks like I need to change something in the system setup to change the
> default group or something similar
>
> Device shows up as this:
> 1865748.404803] usb 4-2: new high-speed USB device number 6 using ehci-pci
> [1865748.537404] usb 4-2: New USB device found, idVendor=1ad2,
> idProduct=0075
> [1865748.537410] usb 4-2: New USB device strings: Mfr=1, Product=2,
> SerialNumber=0
> [1865748.537413] usb 4-2: Product: 3D-SR4000
> [1865748.537417] usb 4-2: Manufacturer: MESA
>

If you want to control the default owner/group and/or permissions of
devices as they're discovered based on their characteristics, probably
udev's rules[1] is what you're looking for.

HTH,

-- Shimi

[1] http://www.reactivated.net/writing_udev_rules.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20130702/7231efa7/attachment.html>


More information about the Linux-il mailing list