From 6914080f904d7f4cfa043cf536e40ebea7349101 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Wed, 24 Apr 2013 15:17:24 +0200 Subject: Add udev example for root-less accessing the unifying receiver --- udev/42-logitech-unify-permissions.rules | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 udev/42-logitech-unify-permissions.rules (limited to 'udev') diff --git a/udev/42-logitech-unify-permissions.rules b/udev/42-logitech-unify-permissions.rules new file mode 100644 index 0000000..73a6cbe --- /dev/null +++ b/udev/42-logitech-unify-permissions.rules @@ -0,0 +1,13 @@ +# Allows non-root users to have raw access the Logitech Unifying USB Receiver +# device. For development purposes, allowing users to write to the receiver is +# potentially dangerous (e.g. perform firmware updates). + +# skip actual unified devices, only consider the receiver +DRIVERS=="logitech-djdevice", GOTO="not_unify_recv" + +# Only allow members of the "plugdev" group to access the receiver +SUBSYSTEM=="hidraw", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c52b", MODE="0660", GROUP="plugdev" +# Alternative: Allow every user on the system to access the receiver +#SUBSYSTEM=="hidraw", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c52b", MODE="0666" + +LABEL="not_unify_recv" -- cgit v1.2.1