Skip to content

Usando USB ASP como não root

Olá,

Para utilizar o USB Asp sem ser root (ou seja como um usuário normal) você deve adicionar uma regra ao /etc/udev/rules.d/.

Para isso:

$ sudo pico /etc/udev/rules.d/99-usbasp.rules

Dentro dele adicione:

SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", SYSFS{idVendor}=="16c0", SYSFS{idProduct}=="05dc", MODE="0666"

Reinicie e você poderá utilizar seu USB Asp sem ser root.

Matheus

Published inArduino

2 Comments

  1. Jo bu Jo bu

    Well, that does not do the trick anymore:

    "In newer versions of udev the SYSFS field has changed to ATTR"

    so the rule now has to be:

    SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="16c0", ATTR{idProduct}=="05dc", MODE="0666", GROUP="uucp"

    or you will get this error:

    unknown key 'SYSFS{idVendor}' in /etc/udev/rules.d/99-USBasp.rules

  2. I pay a visit each day a few web sites and blogs
    to read articles or reviews, but this website gives feature
    based posts.

Leave a Reply

Your email address will not be published. Required fields are marked *