Quantcast

libusb write access

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

libusb write access

Dr. Igor Nikitin
Hello,

when starting my application using libftdi and libusb,
I have a problem with write access:
 
./application
libusb couldn't open USB device /dev/bus/usb/007/003: Permission denied.
libusb requires write access to USB device nodes.

sudo ./application
-> works

What should I change to make it working without sudo?
 
Cheers, Igor.
 

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: libusb write access

Florian Beier
You can change the rights via an udev rule.
Mine loooks like:

cat /etc/udev/rules.d/85-ftdi.rules
SYSFS{idVendor}=="0403", SYSFS{idProduct}=="6010", MODE="660", GROUP="ftdi-user"

Regards, Florian


On Wed, Mar 17, 2010 at 3:47 PM, Dr. Igor Nikitin
<[hidden email]> wrote:

> Hello,
>
> when starting my application using libftdi and libusb,
> I have a problem with write access:
>
> ./application
> libusb couldn't open USB device /dev/bus/usb/007/003: Permission denied.
> libusb requires write access to USB device nodes.
>
> sudo ./application
> -> works
>
> What should I change to make it working without sudo?
>
> Cheers, Igor.
>
>
> --
> libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
> To unsubscribe send a mail to [hidden email]
>
>



--

Dipl.-Inf. Florian Beier

Dept. of Computer Science V
ICM - Institute for Computational Medicine
University of Heidelberg

B6, 23-29 Building C
68131 Mannheim
Germany

Tel: +49-621-181-2738
Fax: +49-621-181-2591
Mail: [hidden email]

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]  

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: libusb write access

Xiaofan Chen
On Wed, Mar 17, 2010 at 11:23 PM, Florian Beier
<[hidden email]> wrote:
> You can change the rights via an udev rule.
> Mine loooks like:
>
> cat /etc/udev/rules.d/85-ftdi.rules
> SYSFS{idVendor}=="0403", SYSFS{idProduct}=="6010", MODE="660", GROUP="ftdi-user"
>

SYSFS is now deprecated for newer udev versions. Probably you want to
change it to ATTR{idVendor}=="0403", ATTR{idProduct}=="6010", ...

I wrote as simple wiki style article here.
http://code.google.com/p/picusb/wiki/libusb_and_udev


--
Xiaofan http://mcuee.blogspot.com

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]  

Loading...