Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Only root can download pictures from USB camera with GPhoto2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
JanErik
Guru
Guru


Joined: 28 Oct 2002
Posts: 488
Location: Finland

PostPosted: Sat Jul 09, 2005 7:54 pm    Post subject: Only root can download pictures from USB camera with GPhoto2 Reply with quote

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
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Sat Jul 09, 2005 7:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
JanErik
Guru
Guru


Joined: 28 Oct 2002
Posts: 488
Location: Finland

PostPosted: Sat Jul 09, 2005 8:16 pm    Post subject: Reply with quote

Actually, what has changed that doesn't allow a regular user to access USB cameras?
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Sat Jul 09, 2005 8:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Sat Jul 09, 2005 8:58 pm    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-p-2545791.html#2545791
Back to top
View user's profile Send private message
iswope
n00b
n00b


Joined: 25 Jan 2004
Posts: 7
Location: Chicago, IL USA

PostPosted: Sun Jul 10, 2005 1:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
tom_bxl
n00b
n00b


Joined: 08 Sep 2004
Posts: 47
Location: Brussels

PostPosted: Tue Jul 12, 2005 2:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum