digital camera and devd

2009-08-20 Thread Michal
Hello, I've got a Canon digital camera set up and working with gphoto2 via devfs+devd but it's not elegant/clean enough: attach 0 { device-name ugen[0-9]+; match vendor 0x0123; match product 0x3210; match sernum 1234567890; action devfs rule -s 10 add 100 path $device-name* user joe; \

Re: digital camera and devd

2009-08-20 Thread b. f.
How can I check exactly which /dev/usb* entry corresponds to my camera? If you are using the old USB stack, use usbdevs(8). If you are using the new USB stack from less than 5 months ago, then use usbconfig(8): usbdevs -v or usbconfig dump_device_desc (or other options visible with usbconfig

Re: digital camera and devd

2009-08-20 Thread RW
On Thu, 20 Aug 2009 19:54:37 + Michal m...@infosec.pl wrote: Hello, I've got a Canon digital camera set up and working with gphoto2 via devfs+devd but it's not elegant/clean enough: ... Problem with this solution is that it changes owner for all /dev/usb files i.e. usb, usb0, usb1,

Re: digital camera and devd

2009-08-20 Thread Roland Smith
On Thu, Aug 20, 2009 at 07:54:37PM +, Michal wrote: Hello, I've got a Canon digital camera set up and working with gphoto2 via devfs+devd but it's not elegant/clean enough: attach 0 { device-name ugen[0-9]+; match vendor 0x0123; match product 0x3210; match sernum

Re: digital camera and devd

2009-08-20 Thread Michal
Roland Smith wrote: I'm not exactly sure what you are trying to achieve here. But here is my €0,02: Create a group called 'usb'. Make every user that you want to be able to use usb devices a member of this group. Next, add the following rules to your active ruleset in /etc/devfs.rules: add

Re: digital camera and devd

2009-08-20 Thread Michal
RW wrote: I'm not very familiar with devfs+devd, but can you not use glabel to give the camera a persistent name. I should have mentioned that this camera works only in PTP mode so I cannot access it as a disk device. At first I thought that it's PITA but now I think it's even better

Re: digital camera and devd

2009-08-20 Thread Michal
b. f. wrote: How can I check exactly which /dev/usb* entry corresponds to my camera? If you are using the old USB stack, use usbdevs(8). If you are using the new USB stack from less than 5 months ago, then use usbconfig(8): usbdevs -v Yes, I should have mentioned beforehand that it's 7.2