Using U2F Token on Linux (udev)

Conor Patrick edited this page Jun 23, 2016 · 4 revisions

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.

Open /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.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.