[Pkg-phototools-devel] Bug#620941: libgphoto2-2: permissions not set correctly on USB devices

Jameson Graef Rollins jrollins at finestructure.net
Tue Apr 5 07:20:13 UTC 2011


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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

It seems that the permissions on my camera's USB device is not being
set correctly.  When trying to access the camera I get the following
error:

servo:~ 0$ gphoto2 -L
            
*** Error ***              
An error occurred in the io-library ('Could not claim the USB device'): Could not claim interface 0 (Operation not permitted). Make sure no other program or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device.
*** Error (-53: 'Could not claim the USB device') *** 

For debugging messages, please use the --debug option.
Debugging messages may help finding a solution to your problem.
If you intend to send any error or debug messages to the gphoto
developer mailing list <gphoto-devel at lists.sourceforge.net>, please run
gphoto2 as follows:

    env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt -L

Please make sure there is sufficient quoting around the arguments.

servo:~ 1$ 

I get no such error when I execute the same command as root.

Unfortunately, I'm unclear on exactly how the USB devices are
determined here, but by date at the very least I can see that the
relevant created device is this one:

servo:~ 0$ ls -al /dev/bus/usb/001/009
crw-rw-r-- 1 root root 189, 8 Apr  5 00:12 /dev/bus/usb/001/009
servo:~ 0$ 

As you can see, the group ownership is "root", as opposed to
"plugdev", which is should be.

I'm not sure how related this bug is to #586988.  That bug was for a
different version of libgphoto2, and the udev rules are in a different
place now.

Thanks for the help.

jamie.

- -- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (600, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
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:
pn  libgphoto2-l10n               <none>     (no description available)
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

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJNmsKqAAoJEO00zqvie6q8plYQAKhBcbUMQubvvYejOHX0BXAa
/9Ae+ohReIOu38Opx58HAOaxka4tcx9+2bhJI/o5MBbfmNNriStvWI5RUuClmtgB
Mky8yJrG4rCkdf1P2oiN+GsaC1wgsuWkK8cnsEjXoTAx4NDMz2mYtLRQ/zKYVQ9P
mKvvy12+znMNNpleo3kxkrBgvgk9mDrtUm/b1zAKIUeDMii2dNbGt9j70BQA8S52
pvqFkU8aIdRJiniM3TehURMr+X8ukm3yg/M1Gor+IZ8imrPgwAQq8Ou4HBnRaqtd
sfLBXTlMEPjddSRj+JSgWNlI6EmDDZcz9IN2D2BP6HLP8fb6ibmWEu3IcNdo8lbm
8jKGAVBfJxTQrG1l25RFSmkMw/2l17eQVFrYMYrZotPYXd+X5m8GArIrhZ2h3Cd2
kvRyreBaaEbjv+tLBnygBVCi6a2Uc/5z53ryJR5ymMS1YIM8mbJ4a0trHF6e48S/
YTp5FfnIZwhFVdwZGoyViQj+f/9wVBAcayGFPhM5SsbBhY3uWJdqzJJdCALCQIOy
qPoIpPjR9e0LDI1AgGlPwZw/AZUbP7QM1YHGUCu+jiA6cXoRHSwFtObwxRM9Bm0B
r+Lc7fkOROx9/53iAfZTZt8vOKV03tJlWlAXqP/wMwUbKpwUYRgAqdPT7xEXHHS0
0cMwZGhWAm9mVKdPOAmO
=v7Mn
-----END PGP SIGNATURE-----





More information about the Pkg-phototools-devel mailing list