Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update udev rules to include GROUP #152

Open
TheOnAndOnlyZenomat opened this issue Sep 14, 2022 · 4 comments
Open

Update udev rules to include GROUP #152

TheOnAndOnlyZenomat opened this issue Sep 14, 2022 · 4 comments

Comments

@TheOnAndOnlyZenomat
Copy link

TheOnAndOnlyZenomat commented Sep 14, 2022

I don't know if this is the right place, but the PKGBUILD from the onlykey-udev AUR package, pointed to a rawgithubuserconent link under the trustcrypto user, under which I couldn't find a repo containing those rules, so I am opening this issue here.

With some commands, like onlykey-gpg init or onlykey-agent -c you get an error like this:

2022-09-14 14:15:37,533 ERROR        failed to connect                                                                                    [client.py:279]
Traceback (most recent call last):
  File "/home/zeno/.local/lib/python3.10/site-packages/onlykey/client.py", line 270, in _connect
    self._hid.open_path(self.path)
  File "hid.pyx", line 142, in hid.device.open_path
OSError: open failed
2022-09-14 14:15:39,135 ERROR        failed to connect                        

In my case this was caused, because the udev rules didn't specify a group. After I updated them to this:

SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", GROUP="plugdev", MODE:="0666"
KERNEL=="ttyACM*", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", GROUP="plugdev", MODE:="0666"

it worked.

@bryanpedini
Copy link

a rawgithubuserconent link under the trustcrypto user, under which I couldn't find a repo containing those rules

probably a gist then

@TheOnAndOnlyZenomat
Copy link
Author

I know I could put them in a gist, but because the linked gist is the main source for the udev file, I want the updated information in that gist, and not one I open myself

@onlykey
Copy link
Collaborator

onlykey commented Oct 17, 2022

We have a link to the UDEV rule here - https://docs.onlykey.io/linux.html

I think that is the same link used by the AUR. The AUR was not made by us but by an OnlyKey user contributor.

@TheOnAndOnlyZenomat
Copy link
Author

It is the link used in the AUR, but I thought, that you were in control of gist. And even if not, it would make sense to update the link in the docs to a new gist, or even a file in a repo, which can be easier updated, than a gist, containing the changes.
But maybe I am just missing something here, so sorry, if I am talking stupid stuff :D

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

No branches or pull requests

3 participants