LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Kodak C300 digital camera only accessed as root (https://www.linuxquestions.org/questions/linux-hardware-18/kodak-c300-digital-camera-only-accessed-as-root-562095/)

librano 06-15-2007 03:13 PM

Kodak C300 digital camera only accessed as root
 
hi everyone!

I am trying to get my Kodak C300 digital camera working with Ubuntu Edgy. I am able to import photos and movies from the camera when I run digikam with root privileges... everything works fine... however, as a normal user, Ubuntu detects the camera, pops up a dialogue to import the pictures but then comes up with this error

Code:

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.

What I get from this is that a normal user doesnt have full permissions on the USB device... how can I get this to work without having to resort to digikam with root privileges?

this thread http://www.linuxquestions.org/questi...d.php?t=541366 talks about downgrading libphoto... but since it works perfectly with root privileges i thought there might be another solution.

3point2 06-15-2007 06:19 PM

Try using the user management tool to add yourself to the 'usb' group and any others that seem relevant to using the camera. Does that help?

librano 06-15-2007 11:39 PM

hi... there is no usb group in my upgraded ubuntu system... from dapper to edgy... i have added myself to all the probable groups including the root group... and i still get the same error.

any other suggestions?

J.W. 06-16-2007 11:49 PM

This could simply be a permissions issue. When you mount your camera, are you giving Read privs to regular users?

3point2 06-17-2007 09:06 PM

When you plug in your camera, the relevant device node is created in /dev by a program called udev. It has a configuration file which tells it what permissions to use for what sorts of devices. It's possible that your camera's model is not in that configuration file, and so restrictive permissions are being used. I suggest you try figure out what is being created in /dev (it'll most likely start with usb or be in a subdirectory of /dev called usb) when you plug in your camera. Then do a 'chown' on that file so that it is owned by you. If you can then access the camera, you'll need to add a rule to a file somewhere under /etc/udev to make the change permanent.

librano 06-18-2007 03:11 AM

thanks people for your help... today i decided to have a serious go at fixing this and guess what... i plugged the camera in and it just worked...??? i dont know why... probably because the last time i accessed it first as root? i dont know... but as of now i simply plug the camera in and gthumb detects it, asks me for import options and imports without any hassles.

thank you for the help.


All times are GMT -5. The time now is 06:40 PM.