0 Using U2F Token on Linux (udev)
Conor Patrick edytuje tę stronę 2019-01-02 22:16:29 -05:00

Hard code method

Devices using the HID class for U2F tokens are initially only accessible to root users on Linux. To fix this, a udev rule must be added for each particular U2F token. For U2F Zero, do the following.

Create /etc/udev/rules.d/70-u2f.rules

Add the following:

KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="8acf", TAG+="uaccess"

Save and run:

sudo udevadm trigger

All U2F Tokens

A udev rule can dynamically detect if a USB device is a U2F token or not with the help of an extra program.

Check out u2f-hidraw-policy.