[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Access to USB camera requires root access



On Wed, May 17, 2006 at 09:22:37PM -0700, Christopher Nelson wrote:
> On Wed, May 17, 2006 at 08:27:01PM -0700, David E. Fox wrote:
> > 
> > Hello. I am a newbie when it comes to using USB devices.
> > 
> > Nevertheless, I opted for a Kodak easyshare C310. The camera is
> > supported well enough by linux, using gphoto2. It seems to be a PTP
> > device, not a mass storage device.
> > 
> > Plugging in the cable, I get message that the device is detected, but
> > nothing is displayed relative to storage (no /dev/sda1, etc.) so I
> > guess I can infer PTP from that.
> > 
> > /proc/bus/usb has entries in there, and it seems that /proc/bus/usb is
> > mounted as a usbdevfs (I think that's right). gtkam / gphoto2 can
> > access the device, but only if I use the tools as root. Otherwise, I
> > get permission denied errors.
> > 
> > I understand permissions generally, but how does one exactly change the
> > permissions on files within /proc? That seems to make no sense. A
> > 'directory' seems to be there, but only when gphoto2 or gtkam is in
> > operation, and it's something like store_20000 according to gtkam
> > 
> > usbfs is indeed mounted. Do I need something in /etc/fstab, then?
> 
> Unless the easyshare's have changed, all you should need to do is an
> 'adduser <youraccount> camera' and then refresh permissions (I usually
> log out then back in, but I think there's more elegant ways).  Try if
> that works, if not come back.

You can use "newgrp camera" to switch groups without having to logout.

Attachment: signature.asc
Description: Digital signature


Reply to: