Closed staebchen0 closed 2 years ago
after trying again, it works now. I always had before with an existing group (plugdev) My last attempt was to create a new group "usbrelay" and assign the pi user
If someone has the same problem, it would be worth a try ;-)
Hi, I'm a bit desperate now and looking for a solution. While searching I came across the following description of the problem. [(https://github.com/darrylb123/usbrelay/issues/15#issuecomment-558004832)]
Maybe someone can help me to solve the problem? I also posted my problem on Stackflow, so far without an answer.
here is my error description: I cannot address the USB relay with the pi user. (it only works with the root user) System Info: raspberry pi 4 pyhton 3.9
Test pi user:
Test root user: When I run the code with root privileges it works
I created the following role with root (there is no other way) 50-usbrelay.rules Folder: /etc/udev/rules.d
updated with:
sudo udevadm control --reload
I also changed the write permissions: root@raspi:/# cd etc/udev
the pi user is also in the "usbrelay" group, so it should be able to access it
I've also tried restarting the Pi and unplugging the USB relay cable and plugging it back in What do I have to do so that the pi user also has the right to execute?
Thanks in advance!