Bug 194601

Summary: can't use gphoto2 as user
Product: [Fedora] Fedora Reporter: Bob T. <rdtennent>
Component: gphoto2Assignee: Martin Bacovsky <mbacovsk>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: hdegoede
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-08-10 12:05:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
output of gphoto2 --debug --get-all-files none

Description Bob T. 2006-06-14 11:15:02 UTC
Description of problem: Access to pictures works as root, but not as user.




Version-Release number of selected component (if applicable):2.1.99-8 and
2.1.99-14 (rawhide)


How reproducible: always


Steps to Reproduce:
1. gphoto2 --get-all-files
2.
3.
  
Actual results:

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') ***  




Expected results: downloading all the pictures; this is what happens when I do
this as root.


Additional info: This may be a duplicate of bug 189936. This was originally
submitted on 2006-06-12 (bug 194926) but lost in a hardware crash.

Camera detection works:

% gphoto2 --auto-detect
Model                          Port                                            
----------------------------------------------------------
Canon Digital IXUS 55 (PTP mode) usb:

Comment 1 Bob T. 2006-06-14 11:15:04 UTC
Created attachment 130822 [details]
output of gphoto2 --debug --get-all-files

Comment 2 Martin Bacovsky 2006-08-10 12:05:25 UTC
It seems that uour problem and its solution is described in gphoto FAQ.
See http://www.gphoto.org/doc/manual/FAQ.html#FAQ-could-not-claim-USB.

If it is not that case, please, reopen this bug and we will try to fix that.

Comment 3 Bob T. 2006-08-10 13:15:27 UTC
The FAQ links to

http://www.gphoto.org/doc/manual/permissions-usb.html

which talks mainly about using hotplug. As far as I can tell, there is no RPM
for Fedora that provides hotplug. The file
 
/proc/sys/kernel/hotplug

exists but is empty. Should I use the insecure method:

  allow a certain user and/or group or the whole world access to all USB devices

or is there a more secure alternative in Fedora?