Re: Permissions to access USB camera under debian
2013/7/2 Evgeniy Ginzburg nad@gmail.com: ls /dev/ before and after connecting camera let you determine which /dev/ nodes are creared. *if* device nodes are created... ls -l /dev/something gives you user and group this device node created under. id [username] gives you in which groups this user enlisted. Add this user to group that have read/write access to node. If unfortunately device node under root:root you'll have to mess with udev rules. I would go with the suggestion above on udev rules, if your kernel has drivers for the device, some automagically generated rules may already exist, on Debian that would be /etc/udev/rules.d/ As a quick and dirty fix you can of course just run chmod a+rw on the device node. Also tail syslog while connecting/disconnecting the device and maybe also during the access attempt there's a wealth of good info there. HTH, Eliyahu - אליהו Regards, Evgeniy. On Jul 2, 2013 8:09 PM, Micha Feigin mi...@post.tau.ac.il wrote: Hi All, I'm trying to connect a camera (Mesa Imaging Swissranger specifically) to a Debian unstable box. I'm getting an error that the user does not have permissions to open the USB device (needs read/write access). Couldn't find any relevant group to add my user to to solve the problem. Any idea as to how to grant access? I've manged to get some information when running as sudo although it still was a bit problematic, and I'd rather explore the issue as a regular user and not root. Thanks ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Permissions to access USB camera under debian
Hi All, I'm trying to connect a camera (Mesa Imaging Swissranger specifically) to a Debian unstable box. I'm getting an error that the user does not have permissions to open the USB device (needs read/write access). Couldn't find any relevant group to add my user to to solve the problem. Any idea as to how to grant access? I've manged to get some information when running as sudo although it still was a bit problematic, and I'd rather explore the issue as a regular user and not root. Thanks ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Permissions to access USB camera under debian
On Tue, Jul 2, 2013 at 8:09 PM, Micha Feigin mi...@post.tau.ac.il wrote: Hi All, I'm trying to connect a camera (Mesa Imaging Swissranger specifically) to a Debian unstable box. I'm getting an error that the user does not have permissions to open the USB device (needs read/write access). Couldn't find any relevant group to add my user to to solve the problem. Any idea as to how to grant access? I've manged to get some information when running as sudo although it still was a bit problematic, and I'd rather explore the issue as a regular user and not root. Do you have a 'camera' group? Alternatively you could look for *v4l* and *video* under the /dev tree... HTH, -- Shimi ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Permissions to access USB camera under debian
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 Thanks On 07/02/2013 01:14 PM, shimi wrote: On Tue, Jul 2, 2013 at 8:09 PM, Micha Feigin mi...@post.tau.ac.il mailto:mi...@post.tau.ac.il wrote: Hi All, I'm trying to connect a camera (Mesa Imaging Swissranger specifically) to a Debian unstable box. I'm getting an error that the user does not have permissions to open the USB device (needs read/write access). Couldn't find any relevant group to add my user to to solve the problem. Any idea as to how to grant access? I've manged to get some information when running as sudo although it still was a bit problematic, and I'd rather explore the issue as a regular user and not root. Do you have a 'camera' group? Alternatively you could look for *v4l* and *video* under the /dev tree... HTH, -- Shimi ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Permissions to access USB camera under debian
On 07/02/2013 01:41 PM, Micha Feigin 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 Thanks On 07/02/2013 01:14 PM, shimi wrote: On Tue, Jul 2, 2013 at 8:09 PM, Micha Feigin mi...@post.tau.ac.il mailto:mi...@post.tau.ac.il wrote: Hi All, I'm trying to connect a camera (Mesa Imaging Swissranger specifically) to a Debian unstable box. I'm getting an error that the user does not have permissions to open the USB device (needs read/write access). Couldn't find any relevant group to add my user to to solve the problem. Any idea as to how to grant access? I've manged to get some information when running as sudo although it still was a bit problematic, and I'd rather explore the issue as a regular user and not root. Do you have a 'camera' group? Alternatively you could look for *v4l* and *video* under the /dev tree... HTH, -- Shimi ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il And sorry for top posting, I picked up bad habits other places. Too long since I've been active on mailing lists apparently ... ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Permissions to access USB camera under debian
On Tue, Jul 2, 2013 at 8:41 PM, Micha Feigin mi...@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 ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Permissions to access USB camera under debian
ls /dev/ before and after connecting camera let you determine which /dev/ nodes are creared. ls -l /dev/something gives you user and group this device node created under. id [username] gives you in which groups this user enlisted. Add this user to group that have read/write access to node. If unfortunately device node under root:root you'll have to mess with udev rules. Regards, Evgeniy. On Jul 2, 2013 8:09 PM, Micha Feigin mi...@post.tau.ac.il wrote: Hi All, I'm trying to connect a camera (Mesa Imaging Swissranger specifically) to a Debian unstable box. I'm getting an error that the user does not have permissions to open the USB device (needs read/write access). Couldn't find any relevant group to add my user to to solve the problem. Any idea as to how to grant access? I've manged to get some information when running as sudo although it still was a bit problematic, and I'd rather explore the issue as a regular user and not root. Thanks __**_ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/**mailman/listinfo/linux-ilhttp://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Permissions to access USB camera under debian
(re:all) 2013/7/2 Evgeniy Ginzburg nad@gmail.com: ls /dev/ before and after connecting camera let you determine which /dev/ nodes are creared. *if* device nodes are created... ls -l /dev/something gives you user and group this device node created under. id [username] gives you in which groups this user enlisted. Add this user to group that have read/write access to node. If unfortunately device node under root:root you'll have to mess with udev rules. Regards, Evgeniy. I would go with the suggestion above on udev rules, if your kernel has drivers for the device, some automagically generated rules may already exist, on Debian that would be /etc/udev/rules.d/ As a quick and dirty fix you can of course just run chmod a+rw on the device node. Also tail syslog while connecting/disconnecting the device and maybe also during the access attempt there's a wealth of good info there. HTH, Eliyahu - אליהו On Jul 2, 2013 8:09 PM, Micha Feigin mi...@post.tau.ac.il wrote: Hi All, I'm trying to connect a camera (Mesa Imaging Swissranger specifically) to a Debian unstable box. I'm getting an error that the user does not have permissions to open the USB device (needs read/write access). Couldn't find any relevant group to add my user to to solve the problem. Any idea as to how to grant access? I've manged to get some information when running as sudo although it still was a bit problematic, and I'd rather explore the issue as a regular user and not root. Thanks ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il