Tech Support > Operating Systems > Linux / Variants > Using USB devices as users other then root
Using USB devices as users other then root
Posted by Alex on February 22nd, 2004


Hi all,

I'm trying to use gtkam as a non-root user, but it won't work. As
root all is great, but when I run gtkam as a non-root user, I get this
error:
** (gtkam:20227): WARNING **: Could not find '' in port info list
(Unknown port)!

How can I determine what the device in /dev is assigned to my digital
camera when it's connected and turned on? I'm assuming this device is
owned by root with 700 or something similarly restrictive.

Suggestions? Thanks.

Alex.

Posted by Peter Christy on February 22nd, 2004


Is it a USB or serial camera you're trying to install? And are you running
devfs or not?

There is some very good documentation on the gphoto home-page (www.gphoto.org)
which takes you through setting up permissions for both serial and usb
devices......

--
Pete
christy@NOattglobalSPAM.net
(make the obvious amendments to reply!)

Posted by steelneck on February 22nd, 2004


Alex wrote:
I posted my solution to this problem in the
thread "gtkam and libgphoto" for a couple of
days ago. It is about the permissions to USB.

I solved it by mounting /proc/bus/usb with
umask=022, that gave me the permissions i
needed.

Posted by Marcel van Osenbruggen on February 27th, 2004


Alex wrote:

I added 2 lines to /etc/hotplug/usb.agent to overcome this problem ...

# change ownership to console-user
console_user=$( stat -c %U /dev/console )
chown $console_user $DEVICE

These lines are at the end of the add) action ...

The one that is on the console will be the one that connected the
usb-cam ...


--

// Marcel van Osenbruggen marcel@panix.nl \\