[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: gphoto2 problem: usb access for non root users



no way also with gphoto2-2.1.99-5
before upgrade:
- plug digicamera
 In dmesg
usb 2-2: new full speed USB device using ohci_hcd and address 2
usb 2-2: configuration #1 chosen from 1 choice
[gcecchi fedora fedora]$ ll /proc/bus/usb/002/
total 0
-rw-r--r-- 1 root    root 43 Jan 31 18:44 001
-rw-r--r-- 1 gcecchi root 57 Jan 31 20:12 002
[gcecchi fedora fedora]$ ll /dev/bus/usb/002/
total 0
crw------- 1 root root 189, 128 Jan 31 18:44 001
crw------- 1 root root 189, 129 Jan 31 20:12 002

- unplug digicamera
 in dmesg
usb 2-2: USB disconnect, address 2
[gcecchi fedora fedora]$ ll /dev/bus/usb/002/
total 0
crw------- 1 root root 189, 128 Jan 31 18:44 001
[gcecchi fedora fedora]$ ll /proc/bus/usb/002/
total 0
-rw-r--r-- 1 root root 43 Jan 31 18:44 001

- upgrade gphoto2
[root fedora RPMS]# rpm -Uvh gphoto2-2.1.99-5.i386.rpm
Preparing...                ########################################### [100%]
   1:gphoto2                ########################################### [100%]

- replug digicamera

usb 2-2: new full speed USB device using ohci_hcd and address 3
usb 2-2: configuration #1 chosen from 1 choice
[gcecchi fedora fedora]$ ll /dev/bus/usb/002/
total 0
crw------- 1 root root 189, 128 Jan 31 18:44 001
crw------- 1 root root 189, 130 Jan 31 20:19 003
[gcecchi fedora fedora]$ ll /proc/bus/usb/002
total 0
-rw-r--r-- 1 root    root 43 Jan 31 18:44 001
-rw-r--r-- 1 gcecchi root 57 Jan 31 20:19 003
[gcecchi fedora fedora]$ gphoto2 --auto-detect
Model                          Port
----------------------------------------------------------

>From changelog of gphoto2:
* Mon Jan 30 2006 Bill Nottingham <notting redhat com> 2.1.99-5
- set permissions on /dev/bus/usb/XXX as well - that's what new
  libusb uses by default

It seems that hal/udev set permissions for gcecchi into the wrong directory....
I'm not sure if the current udev rule is this line inside
/etc/udev/rules.d/50-udev.rules

ACTION=="add", SUBSYSTEM=="usb_device", PROGRAM="/bin/sh -c 'K=%k;
K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'",
NAME="%c"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]