Skip to content

Assign permissions on Linux

If you develop your host application on Linux and your process isn't running as root, you need to assign the process permissions to access the reader. The implementation depends on the physical interface you use.

RS-232/UART

In the /etc/udev/rules.d directory, place a file with the extension .rules containing the following line:
KERNEL=="ttyS0", MODE="0666"

USB

In the /etc/udev/rules.d directory, place a file with the extension .rules containing on of the following lines:

Default:

  • USB virtual COM port:
    KERNEL=="ttyACM*", ATTRS{idVendor}=="13ad", MODE="0666"
  • USB HID:
    KERNEL=="hidraw*", ATTRS{idVendor}=="13ad", MODE="0666"

When implementing a daemon:

  • USB virtual COM port:
    KERNEL=="ttyACM*", ATTRS{idVendor}=="13ad", OWNER="<daemon user account>"
  • USB HID:
    KERNEL=="hidraw*", ATTRS{idVendor}=="13ad", OWNER="<daemon user account>"
Title