kolinger / rd-usb

Web GUI for RuiDeng/Riden USB testers (UM34C, UM24C, UM25C, TC66C)
GNU General Public License v3.0
223 stars 29 forks source link

How to give permission #7

Closed HikaruG closed 4 years ago

HikaruG commented 4 years ago

Hello, First thank you for your effort creating this repo. However, I'm having trouble with it. I tried connecting to my UM25C without success, due to some permission issue. I saw that you wrote that one needs to give permission, but I do not know how I should be doing it. I'm sorry for this rather "beginner" question. permissionDenied_UM25C

kolinger commented 4 years ago

Hello, you need to give your user running rd-usb access to /dev/rfcomm0. You can do this in multiple ways. This is not specific to my application this is basic Linux behaviour.

For example - you can set chmod to be very open with sudo chmod 777 /dev/rfcomm0. This is just workaround - you need to do it every reboot. Or you can add your user to group dialout for example user with name "myname": sudo usermod -a -G dialout myname. But this is specific to your Linux distribution. It can be different.

Please look for guide on the internet for your specific Linux distribution. You will find many.

HikaruG commented 4 years ago

Thanks for your reply. That's intriguing because I already tried adding myself to the dialout group, and it unfortunately did not change the behavior... But understood, you confirmed me that it was not on the application side, so I will look for workarounds on the internet.

kolinger commented 4 years ago

Yes dialout may not work if your Linux is configured in different way.

You can see what group is your Linux using for rfcomm with command ls -l /dev/rfcomm0. You will see something like this:

ls -l /dev/rfcomm0
crw-rw-rw- 1 root somegroup 5, 0 Jul 24 16:59 /dev/rfcomm0

In middle you have root and somegroup. First is user and second is group. Add yourself to this group instead of dialout.