Clayton Bonser wrote:
> I have been trying to set up a box with Fedora Core 5 for my mother to
> use. I have encountered a problem getting the machine to recognise the
> camera when logged in as a non-root user.
> 
> I have installed gphoto2, as I found via google that the camera uses the
> PTP protocol, and gphoto2 should support this protocol.
> 
> After yum installed gphoto2, and the configuring was done, I issued the
> command:
> 
> gphoto2 --get-all-raw-data
> 
> and the camera's memory was copied to the root /home directory.
> 
> However, when logged in as a non-root user, an error message was
> returned, thus: 
> 
> *** Error ***
> An error occurred in the io-library ('Bad parameters'): Could not find
> USB devic e (vendor 0x40a, product 0x568). Make sure this device is
> connected to the compu ter.
> *** Error (-2: 'Bad parameters') ***
> 
> Doing su does not resolve the problem. The command only works when
> logged in as root after booting, or logging out entirely as non-root
> user.

Did you issue an "su -" or just "su"?

> Because this error does not occur as root user, it appears that the
> problem is a permissions one. No amount of gooling returns a
> satisfactory fix, but rather, confusing and seemingly conflicting
> advice.

I'm assuming, based on the error above, that the camera connects via
USB.  I would look at the end of dmesg or your system log when you
connect the camera, and see what device file is used for the camera.
Probably something like /dev/sda1.

Then run "ls -l" on that device file to see what the permissions are and
what the group is.  The group is likely to be "USB" or "disk" or
something.  If the group is "root", then you should chown the file to
root:disk.  Finally, add this user to /etc/groups.  This is all assuming
that the file has group read permission.  If not, run "chmod g+r
/dev/sda1" or whatever the file in question is.

That may or may not fix it, but it would be the first thing I would look
at.  The other problem is that any permissions changes you make to that
device file may not survive to the next time you plug the camera in.

Let us know if any of this is confusing to you.

Chad Martin



To unsubscribe from this list, please email [EMAIL PROTECTED] & you will be 
removed. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/LINUX_Newbies/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/LINUX_Newbies/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to