Bug 194601 - can't use gphoto2 as user
Summary: can't use gphoto2 as user
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: gphoto2
Version: 5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Martin Bacovsky
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-06-14 11:15 UTC by Bob T.
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-08-10 12:05:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
output of gphoto2 --debug --get-all-files (14.77 KB, text/plain)
2006-06-14 11:15 UTC, Bob T.
no flags Details

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?


Note You need to log in before you can comment on or make changes to this bug.