View previous topic :: View next topic |
Author |
Message |
JanErik Guru
Joined: 28 Oct 2002 Posts: 488 Location: Finland
|
Posted: Sat Jul 09, 2005 7:54 pm Post subject: Only root can download pictures from USB camera with GPhoto2 |
|
|
After I upgraded some packages, perhaps most significant the 2.6.12-gentoo-r4 kernel, only root can access my camera with GPhoto2.
As a normal user I get
Code: | *** 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') ***
|
Probably just a simple permissions problem, how do I fix this? |
|
Back to top |
|
|
Sadako Advocate
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Sat Jul 09, 2005 7:57 pm Post subject: |
|
|
I had the exact same problem recently and posted about it, and another user gave me the solution.
See the thread here. _________________ "You have to invite me in" |
|
Back to top |
|
|
JanErik Guru
Joined: 28 Oct 2002 Posts: 488 Location: Finland
|
Posted: Sat Jul 09, 2005 8:16 pm Post subject: |
|
|
Actually, what has changed that doesn't allow a regular user to access USB cameras? |
|
Back to top |
|
|
Sadako Advocate
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Sat Jul 09, 2005 8:55 pm Post subject: |
|
|
I'm not certain, but odds are it came with either the recent baselayout or udev updates, probably the latter. _________________ "You have to invite me in" |
|
Back to top |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
|
Back to top |
|
|
iswope n00b
Joined: 25 Jan 2004 Posts: 7 Location: Chicago, IL USA
|
Posted: Sun Jul 10, 2005 1:36 pm Post subject: |
|
|
Had the same problem but, like the dork I am, forgot to check my groups.
#gpasswd -a username usb
did the trick.
My problem was with accessing my dvdrw drive after a kernel upgrade so I obviously used a different command sequence but you get the gist. |
|
Back to top |
|
|
tom_bxl n00b
Joined: 08 Sep 2004 Posts: 47 Location: Brussels
|
Posted: Tue Jul 12, 2005 2:05 pm Post subject: |
|
|
Hi,
I faced exactly the same problem due to a switch of kernel where I also moved to udev. You may access your camera in two way, mass storage or PTP (some cameras do not provide the choice). Fixing the problem is quite different depending on the acces method:
- Mass storage. You basically see the camera as device (something like /dev/sdx) that you mount as a standard mount. In case of permisision problem hear, check the udev rules and make sur your user belong to the appropriate group
- PTP. In this case, libgphoto accesses the camera directly without mounting it anywhere. I prefer this method since you can also control the camera using gphoto2. In this case I fixed it my replacing the usbcam script that sets the permissions to the console owner with the usbcam.group script and assigned my user to the camera group (as described in http://www.gphoto.org/doc/manual/permissions-usb.html)
Hope it helps,
Tom |
|
Back to top |
|
|
|