[Pkg-phototools-devel] Bug#619074: libgphoto2-2: Cannot access Nikon D90 as normal user (regression)

Reid Priedhorsky reid at reidster.net
Sun Mar 20 22:55:23 UTC 2011


Package: libgphoto2-2
Version: 2.4.10.1-5
Severity: important


[I realize that there are already several related bugs. I couldn't figure out
if there was a more appropriate one to add this info to. Please feel free to
merge/re-severitize/etc. as you see fit.]

Sometime in the past few weeks, the permissions on my Nikon D90 stopped being
set correctly (i.e., r/w for group plugdev). (Whether this was before or after
I upgraded from Squeeze to Wheezy, I don't recall unfortunately.)

"gphoto2 --list-files" gives the classic "An error occurred in the io-library
('Could not claim the USB device'): Could not claim interface 0 (Operation not
permitted)".

I see that the camera (vendor 04b0, product 0421) is listed in
/lib/udev/rules.d/60-libgphoto2-2.rules.

Permissions are set as (the camera is device 007):

3 [~]$ ls -l /dev/bus/usb/002/
total 0
crw-rw-r-- 1 root root 189, 128 Mar 19 16:49 001
crw-rw-r-- 1 root root 189, 134 Mar 20 18:43 007

With the following line added to /etc/udev/rules.d/99-LOCAL.rules:

  ATTR{idVendor}=="04b0", ATTR{idProduct}=="0421", MODE="660", GROUP="plugdev"

then permissions are set correctly (camera now device 008):

4 [~]$ ls -l /dev/bus/usb/002/
total 0
crw-rw-r-- 1 root root    189, 128 Mar 19 16:49 001
crw-rw---- 1 root plugdev 189, 135 Mar 20 18:44 008

Happy to test; let me know what I can do.

Thanks for your hard work on Debian!

Reid


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages libgphoto2-2 depends on:
ii  adduser                       3.112+nmu2 add and remove users and groups
ii  libc6                         2.11.2-11  Embedded GNU C Library: Shared lib
ii  libexif12                     0.6.19-1   library to parse EXIF files
ii  libgphoto2-port0              2.4.10.1-5 gphoto2 digital camera port librar
ii  libjpeg62                     6b1-1      The Independent JPEG Group's JPEG 
ii  libltdl7                      2.2.6b-2   A system independent dlopen wrappe

Versions of packages libgphoto2-2 recommends:
ii  libgphoto2-l10n               2.4.10.1-5 gphoto2 digital camera library - l
ii  udev                          166-1      /dev/ and hotplug management daemo

Versions of packages libgphoto2-2 suggests:
ii  gphoto2                       2.4.10-2   The gphoto2 digital camera command

-- debconf-show failed





More information about the Pkg-phototools-devel mailing list