31 lines
1 KiB
Text
31 lines
1 KiB
Text
|
title:: HID permissions
|
||
|
summary:: Details how to configure your computer to set the permissions to access HID's
|
||
|
categories:: External Control>HID
|
||
|
related:: Guides/Working_with_HID, Classes/HID
|
||
|
|
||
|
section:: On Linux
|
||
|
|
||
|
You will have to set the permissions with udev to be correct, create a file in the folder: code:: /etc/udev/rules.d/ ::, and name it (e.g.) code:: 90-hidraw-permissions.rules ::
|
||
|
|
||
|
In the file, you will need this line:
|
||
|
|
||
|
code:: KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0664", GROUP="plugdev" ::
|
||
|
|
||
|
This will give read and write permissions to hidraw-devices to users that are in the code:: plugdev :: group on your system.
|
||
|
|
||
|
To check whether you belong to that group execute the command code:: groups :: in the terminal.
|
||
|
|
||
|
After you have added the udev rules file, you can access the device after plugging and replugging the device.
|
||
|
|
||
|
You can change the permission manually (as root) from the terminal with the command:
|
||
|
code::
|
||
|
sudo chmod 664 /dev/hidraw*
|
||
|
sudo chgrp plugdev /dev/hidraw*
|
||
|
::
|
||
|
|
||
|
Check the permissions with:
|
||
|
|
||
|
code::
|
||
|
"ls /dev/hidraw* -lah".unixCmd;
|
||
|
::
|