Skip to content

Instantly share code, notes, and snippets.

@Magicking
Last active January 2, 2020 14:53
Show Gist options
  • Save Magicking/b34b50276e252fb152983d49e9a3a941 to your computer and use it in GitHub Desktop.
Save Magicking/b34b50276e252fb152983d49e9a3a941 to your computer and use it in GitHub Desktop.
Udev rules for KeepKey
# Udev rules for the KeepKey HSM
#
# This file must be placed at:
#
# /etc/udev/rules.d/98-keep-key.rules (preferred location)
#
# To install, type this command in a terminal:
# sudo cp 98-keep-key.rules /etc/udev/rules.d/98-keep-key.rules
#
# After this file is installed, physically unplug and reconnect the
# KeepKey device.
#
SUBSYSTEMS=="usb" ATTRS{idVendor}=="2b24" ATTRS{idProduct}=="0001" MODE:="0660" GROUP:="input"
SUBSYSTEMS=="usb" ATTRS{idVendor}=="2b24" ATTRS{idProduct}=="0002" MODE:="0660" GROUP:="input"
# HIDAPI/hidraw:
KERNEL=="hidraw*", ATTRS{idVendor}=="2b24" ATTRS{idProduct}=="0001" MODE="0660" GROUP="input"
KERNEL=="hidraw*", ATTRS{idVendor}=="2b24" ATTRS{idProduct}=="0002" MODE="0660" GROUP="input"
@Magicking
Copy link
Author

You have to be in the input group, you can check with the groups command.
You can add yourself to the group using the command below:

sudo usermod -a -G input $(id -u -n)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment