Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Comment on Linux permissions #1

Open
arximboldi opened this issue Jun 8, 2017 · 0 comments
Open

Comment on Linux permissions #1

arximboldi opened this issue Jun 8, 2017 · 0 comments

Comments

@arximboldi
Copy link

First of all, really cool project, congrats!

One thing about the permissions on Linux. The documentation says:

Note that by default on Linux, the USB port can only be used by root. Unless you change the device's permissions, you will need to sudo to execute the binary.

While sudo might be ok for a quick hack, the best way is to install some udev rules to give permissions to use the Push2 from any user (or some specific user if prefered). The easiest way to do this is to add a a file /etc/udev/rules.d/50-push2.rules with the following contents:

SUBSYSTEM=="usb", ATTR{idVendor}=="2982", ATTR{idProduct}=="1967", GROUP="plugdev"

This will make sure that Push is writable by any user that is in the plugdev group (normal users are usually there). To make the rule effective one can simply reboot or otherwise:

sudo udevadm control --reload-rules
sudo udevadm trigger

Maybe there could be a make install provided that does something like this or otherwise a pointer in the README so users do this themselves.

Cheers!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant