[Pkg-kde-extras] Bug#451783: digikam: permission problem accessing usb, although given for group?

Philipp Marek philipp at marek.priv.at
Sun Nov 18 13:50:13 UTC 2007

X-Reportbug-Version: 3.39
X-Debbugs-Cc: philipp at marek.priv.at
Package: digikam
Version: 2:0.9.2-5+b1
Severity: normal

Trying to access a Canon EOS 350D doesn't work if the
permissions are granted through a group:
	/dev/bus/usb# lsusb
	Bus 002 Device 003: ID 04a9:30ef Canon, Inc. EOS 350D (ptp)
	/dev/bus/usb# ls -la 002/
	insgesamt 0
	drwxr-xr-x 2 root root          80 18. Nov 14:40 .
	drwxr-xr-x 4 root root          80 18. Nov 13:30 ..
	crw-rw---- 1 root root    189, 128 18. Nov 13:30 001
	crw-rw-r-- 1 root plugdev 189, 130 18. Nov 14:41 003
Capturing via digikam gives an error.

	/dev/bus/usb/002# chmod 666 003
it works as normal ... although the group should suffice:
	$ id
	uid=1000(flip) gid=1000(flip) Gruppen=6(disk),20(dialout),24(cdrom),

Strangely the only process opening that is digikam:
	/dev/bus/usb/002# lsof /dev/bus/usb/002/003
	digikam 7396 flip   23u   CHR 189,130      27197 /dev/bus/usb/002/003
	digikam 7396 flip   25u   CHR 189,130      27197 /dev/bus/usb/002/003
	digikam 7396 flip   27u   CHR 189,130      27197 /dev/bus/usb/002/003
	digikam 7396 flip   29u   CHR 189,130      27197 /dev/bus/usb/002/003
	digikam 7396 flip   31u   CHR 189,130      27197 /dev/bus/usb/002/003
	digikam 7396 flip   33u   CHR 189,130      27197 /dev/bus/usb/002/003
	digikam 7396 flip   35u   CHR 189,130      27197 /dev/bus/usb/002/003
Which has the required access rights:
	/dev/bus/usb/002# grep Groups /proc/7396/status
	Groups: 6 20 24 25 29 44 46 100 1000
	/dev/bus/usb/002# grep plugdev /etc/group

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.21-2-amd64 (SMP w/1 CPU core)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages digikam depends on:
ii  kdebase-kio-plugins     4:3.5.8.dfsg.1-2 core I/O slaves for KDE
ii  kdelibs4c2a             4:3.5.8.dfsg.1-4 core libraries and binaries for al
ii  libacl1                 2.2.45-1         Access control list shared library
ii  libart-2.0-2            2.3.19-3         Library of functions for 2D graphi
ii  libattr1                1:2.4.39-1       Extended attribute shared library
ii  libaudio2               1.9a-1           Network Audio System - shared libr
ii  libc6                   2.6.1-6          GNU C Library: Shared libraries
ii  libexif12               0.6.16-2         library to parse EXIF files
ii  libexiv2-0              0.15-1           EXIF/IPTC metadata manipulation li
ii  libfam0                 2.7.0-13         Client library to control the FAM 
ii  libfontconfig1          2.5.0-1          generic font configuration library
ii  libfreetype6            2.3.5-1+b1       FreeType 2 font engine, shared lib
ii  libgcc1                 1:4.2.2-3        GCC support library
ii  libgphoto2-2            2.4.0-7          gphoto2 digital camera library
ii  libgphoto2-2-dev        2.4.0-7          gphoto2 digital camera library (de
ii  libgphoto2-port0        2.4.0-7          gphoto2 digital camera port librar
ii  libice6                 2:1.0.4-1        X11 Inter-Client Exchange library
ii  libidn11                1.1-1            GNU libidn library, implementation
ii  libjasper1              1.900.1-3        The JasPer JPEG-2000 runtime libra
ii  libjpeg62               6b-14            The Independent JPEG Group's JPEG 
ii  libkdcraw2              0.1.2-1          Raw picture decoding C++ library (
ii  libkexiv2-3             0.1.6-1          Qt like interface for the libexiv2
ii  libkipi0                0.1.5-2          library for apps that want to use 
ii  liblcms1                1.16-7           Color management library
ii  libltdl3                1.5.24-1         A system independent dlopen wrappe
ii  libpcre3                7.3-2            Perl 5 Compatible Regular Expressi
ii  libpng12-0              1.2.15~beta5-3   PNG library - runtime
ii  libqt3-mt               3:3.3.7-9        Qt GUI Library (Threaded runtime v
ii  libsm6                  2:1.0.3-1+b1     X11 Session Management library
ii  libsqlite3-0            3.5.1-1          SQLite 3 shared library
ii  libstdc++6              4.2.2-3          The GNU Standard C++ Library v3
ii  libtiff4                3.8.2-7          Tag Image File Format (TIFF) libra
ii  libx11-6                2:1.0.3-7        X11 client-side library
ii  libxcursor1             1:1.1.9-1        X cursor management library
ii  libxext6                1:1.0.3-2        X11 miscellaneous extension librar
ii  libxft2                 2.1.12-2         FreeType-based font drawing librar
ii  libxi6                  2:1.1.3-1        X11 Input extension library
ii  libxinerama1            1:1.0.2-1        X11 Xinerama extension library
ii  libxrandr2              2:1.2.2-1        X11 RandR extension library
ii  libxrender1             1:0.9.4-1        X Rendering Extension client libra
ii  libxt6                  1:1.0.5-3        X11 toolkit intrinsics library
ii  zlib1g                  1: compression library - runtime

Versions of packages digikam recommends:
ii  kdeprint                4:3.5.8.dfsg.1-2 print system for KDE
ii  kipi-plugins            0.1.4-1+b2       image manipulation/handling plugin
ii  konqueror               4:3.5.8.dfsg.1-2 KDE's advanced file manager, web b

-- no debconf information

Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

More information about the pkg-kde-extras mailing list