libusb couldn't open USB device /dev/bus/usb/002/006: Permission denied. libusb requires write access to USB device nodes

11,514

SYSFS was deprecated in favor of ATTR/ATTRS. See hotplug/udev.git

Try with:

ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", MODE="660", GROUP="ftdi-user"
Share:
11,514
keshaw
Author by

keshaw

Updated on September 18, 2022

Comments

  • keshaw
    keshaw over 1 year

    I am connecting my FTDI Device with Laptop USB. I was following all the steps given in the link How to build libftdi git under Linux

    But after installing.. When I was running ./eeprom it is throwing:

    Unable to open device -1: (libusb_open() failed)ftdi_read_eeprom: -2 (USB device unavailable)
    

    I installed FTDI D2XX driver from link:

    D2XX for Linux

    After installing, I was trying some examples to write in USB EEPROM.

    $sudo ./write
    

    It is throwing:

    libusb couldn't open USB device /dev/bus/usb/002/006: Permission denied.
    libusb requires write access to USB device nodes
    

    I was setting

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

    Then also, it is not working. Same error is coming.