On Wed, 17 Jul 2002 17:30, Simon Brooke wrote:
> I have an Olympus 2100 UZ sitting on my USB bus, and if I use GPhoto2
> as root I can successfully download pictures from it. If I try as a
> user, I get :
>
> *** 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 (i.e. dc2xx) is using the device and you
> have read/write access to the device.
> *** Error ('Could not claim the USB device') ***
This is by design. Otherwise you could bypass security on devices like
mounted hard drives using direct commands.
> What do I need to do so that ordinary users (as opposed to just root)
> can download pictures?
Some suggestions:
1. Change the rights on the particular node (whichever /proc/bus/usb/X/Y entry
corresponds) to +w. See the manual entry for chmod. You can probably do this
automagically with an entry in /sbin/hotplug. THIS IS INSECURE UNLESS YOU ARE
THE ONLY PERSON WITH ACCESS TO THE SYSTEM.
2. Change the mount options for usbdevfs, using the devmode option:
mount /proc/bus/usb -o remount,devmode=0666
(see the manual entry for mount for more information). THIS IS EVEN MORE
INSECURE THAN THE FIRST OPTION.
3. Run the gphoto utility suid root. THIS IS VERY DANGEROUS IF THERE IS A BUG
IN THE GPHOTO UTILITY. (man chmod, s option)
4. Modify pam configuration (read the manual entry and probably the system
admin's guide) to configure the particular device node to belong to you when
you log in, if the device is connected. IF YOU MISCONFIGURE PAM, YOU MAY NOT
BE ABLE TO LOG IN.
Which one you do depends on your security situation, which you didn't mention,
so I can't (and wouldn't anyway) provide advice on selecting one of those
suggestions, or other options available to you.
Brad
--
http://conf.linux.org.au. 22-25Jan2003. Perth, Australia. Birds in Black.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users