Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Jul 2005 22:22:54 +0300
From:      "Vladimir Chukharev" <chu@h33.erkki.ton.tut.fi>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: [gphoto-devel] Re: usb degradation with FreeBSD 4 -> 5 upgrade
Message-ID:  <op.stj5ggwxsh9hi4@localhost>
In-Reply-To: <op.steoextish9hi4@localhost>
References:  <op.stag2loash9hi4@localhost> <op.staqdzuksh9hi4@localhost> <20050704064811.GA2784@jet.franken.de> <op.steoextish9hi4@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 04 Jul 2005 23:26:47 +0300, Vladimir Chukharev <chu@h33.erkki.ton.tut.fi> wrote:

> On Mon, 04 Jul 2005 09:48:11 +0300, Marcus Meissner <marcus@jet.franken.de> wrote:
>
>> On Sat, Jul 02, 2005 at 08:19:01PM +0300, Vladimir Chukharev wrote:
>> ...

>> It cannot even send a single message, so either your libusb, or other
>> lowlevel components are broken.
>>
>> Try
>> export USB_DEBUG=255
>> gphoto2 --debug --summary
>>
>> and check the libusb debug output.
>
> OK, thanks a lot! It practically immediately shed light to the fact
> that I have no permission to use the usb devices. After a small fight
> I could use gphoto2 (and then gtkam) as root. I think I will manage
> to put more permissions for normal users later.
>
> Thanks again!

Well, now I can use gtkam as root to get photos out of my camera.
But still not as ordinary user.

By default the created on camera connection devices /dev/ugen0{,.1,.2,.3}
are owned by root:operator and have pervissions crw-r--r--. It
was easy to hack /etc/usbd.conf to change the permissions to crw-rw-rw-,
but it is not enough. Somewhere in the middle of communication with
the camera the device permissions of ugen0.* are reset back to 644 and
the program fails. Results from 'ls -Fail /dev/u*' before and after
gtkam run follow.

chu@chu:~ 22:09:38 $ ll /dev/u*
      106 crw-rw-rw-  1 root  operator  226,   0 Jul  7 18:26 /dev/ugen0
      107 crw-rw-rw-  1 root  operator  225,   1 Jul  7 18:26 /dev/ugen0.1
      108 crw-rw-rw-  1 root  operator  225,   2 Jul  7 18:26 /dev/ugen0.2
      109 crw-rw-rw-  1 root  operator  225,   3 Jul  7 18:26 /dev/ugen0.3
       99 crw-r--r--  1 root  operator  227,   0 Jul  7 18:26 /dev/ums0
33554436 lrwxr-xr-x  1 root  wheel            6 Jul  7 21:26 /dev/urandom@ -> random
       30 crw-rw----  1 root  operator  241, 255 Jul  7 18:26 /dev/usb
       29 crw-rw----  1 root  operator  241,   0 Jul  7 18:26 /dev/usb0
       31 crw-rw----  1 root  operator  241,   1 Jul  7 18:26 /dev/usb1
       32 crw-rw----  1 root  operator  241,   2 Jul  7 18:26 /dev/usb2
       33 crw-rw----  1 root  operator  241,   3 Jul  7 18:26 /dev/usb3
chu@chu:~ 22:15:37 $ ll /dev/u*
      106 crw-rw-rw-  1 root  operator  226,   0 Jul  7 18:26 /dev/ugen0
      110 crw-r--r--  1 root  operator  225,   1 Jul  7 18:26 /dev/ugen0.1
      111 crw-r--r--  1 root  operator  225,   2 Jul  7 18:26 /dev/ugen0.2
      112 crw-r--r--  1 root  operator  225,   3 Jul  7 18:26 /dev/ugen0.3
       99 crw-r--r--  1 root  operator  227,   0 Jul  7 18:26 /dev/ums0
33554436 lrwxr-xr-x  1 root  wheel            6 Jul  7 21:26 /dev/urandom@ -> random
       30 crw-rw----  1 root  operator  241, 255 Jul  7 18:26 /dev/usb
       29 crw-rw----  1 root  operator  241,   0 Jul  7 18:26 /dev/usb0
       31 crw-rw----  1 root  operator  241,   1 Jul  7 18:26 /dev/usb1
       32 crw-rw----  1 root  operator  241,   2 Jul  7 18:26 /dev/usb2
       33 crw-rw----  1 root  operator  241,   3 Jul  7 18:26 /dev/usb3

Can somebody help me to find the reason for this please?

-- 
V.Chukharev



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.stj5ggwxsh9hi4>