Red Hat Bugzilla – Bug 138809
Gphoto does not work as a normal user
Last modified: 2007-11-30 17:10:54 EST
Description of problem:
when gphoto is run as a normal user I get
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') ***
As root everything works
Version-Release number of selected component (if applicable):
And if you switch the camera off, and then on?
This problem is in /etc/hotplug/usb/usbcam
The script assumes the name of the current desktop user will be
available in a lock file in /var/lock/console/console.lock, but the
username nowadays appear as a separate file beside the lockfile. E.g.
when the user foo logs in, a file named /var/lock/console/foo appears.
There needs to be written a patch...
Please confirm the version of gphoto2 you are using with 'rpm -q gphoto2'.
This should have been fixed as a result of bug #130755.
[root@datacc mike]# /usr/lib/libgphoto2/print-usb-usermap |grep -A1
(even import dialogue comes up and all works)
The %post scriptlet of the package should have already done this:
postinstall scriptlet (using /bin/sh):
# add supported cameras to /etc/hotplug/usb.usermap
grep -v '^usbcam' /etc/hotplug/usb.usermap > /etc/hotplug/usb.usermap.tmp
/usr/lib/libgphoto2/print-usb-usermap >> /etc/hotplug/usb.usermap.tmp
mv /etc/hotplug/usb.usermap.tmp /etc/hotplug/usb.usermap
# register libraries
Please check the /root/install.log file that anaconda generated during
installation to see if there were any errors when installing the gphoto2 package.
Also: are there any other 'usbcam' entries in usb.usermap other than the ones
you have added?
yeah there were
I think I know what the issue is now.
I have to use a more recent version of libgphoto to support my camera
so this line isn't added
Just as a suggestion would it be an idea to split gphoto and libgphoto
into seperate RPM's
A more recent version of libgphoto2? We ship 2.1.4, and according to
http://sourceforge.net/projects/gphoto that is the more recent.
Do you mean CVS?
No feedback; closing.