libftdi Archives

Subject: Re: Permissions issues?

From: "J.C. Wren" <jcwren@xxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Fri, 7 Aug 2009 21:24:19 -0400
Yea, the file originally installed by libftdi had 6010 as the product ID, which I found odd.

From lsusb:
     Bus 002 Device 003: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC

OK, emerge strace and ran it with that, and here's what it's opening:

open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/usr/lib/libftdi.so.1", O_RDONLY) = 3
open("/lib/libc.so.6", O_RDONLY)        = 3
open("/lib/libusb-0.1.so.4", O_RDONLY)  = 3
open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 3
open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 3
open("/dev/bus/usb/001", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 3
open("/dev/bus/usb/001/001", O_RDWR)    = 4
open("/dev/bus/usb/001/001", O_RDWR)    = 3
open("/dev/bus/usb/002", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 3
open("/dev/bus/usb/002/005", O_RDWR)    = 4
open("/dev/bus/usb/002/004", O_RDWR)    = 4
open("/dev/bus/usb/002/003", O_RDWR)    = 4
open("/dev/bus/usb/002/002", O_RDWR)    = 4
open("/dev/bus/usb/002/001", O_RDWR)    = 4
open("/dev/bus/usb/002/005", O_RDWR)    = 3
open("/dev/bus/usb/002/004", O_RDWR)    = 3
open("/dev/bus/usb/002/003", O_RDWR)    = 3
open("/dev/bus/usb/002/002", O_RDWR)    = 3
open("/dev/bus/usb/002/001", O_RDWR)    = 3
open("/dev/bus/usb/002/003", O_RDWR)    = 3
open("/dev/bus/usb/002/003", O_RDWR)    = 3

What's odd/wrong is that /dev/bus/usb/002/003 is owned by root, and in the usb group.  Shouldn't udev be putting it in the plugdev group?  Adding myself to the usb group fixed the problem, but I'd prefer to understand what I'm doing wrong or incorrectly expecting udev to do.

--jc

On Fri, Aug 7, 2009 at 9:10 PM, Michael Plante <michael.plante@xxxxxxxxx> wrote:
I apologize.  I was looking at only part of what I had.  I don't know.  Can you see the permissions on the file libusb actually tries to open?
-----Original Message-----
From: Michael Plante [mailto:michael.plante@xxxxxxxxx]
Sent: Friday, August 07, 2009 8:07 PM
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Subject: RE: Permissions issues?

Is that product ID correct?  I have 6010, not 6001, on my system. 
-----Original Message-----
From: jcwren@xxxxxxxxx [mailto:jcwren@xxxxxxxxx]On Behalf Of J.C. Wren
Sent: Friday, August 07, 2009 7:31 PM
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Subject: Permissions issues?

I've got a 99-libftdi.rules file with the following line:

SUBSYSTEM=="usb_device", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", MODE="0664", GROUP="plugdev"

And my user is a member of plugdev: 

plugdev:x:1003:haldaemon,jcw

But when I try to perform an operation on the device, I get

can't open ftdi device: (-8) inappropriate permissions on device!

What might I be doing wrong here?

Thanks,
--jc



libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx


=


libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx





libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx


Current Thread